mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Add framework to support translations via gettext
create xca.pot without any translations support for es.po being translated from external and then converted via xca_es.ts to xca_es.qm
This commit is contained in:
parent
58a5557f96
commit
2db45cfff9
5
Makefile
5
Makefile
@ -109,6 +109,11 @@ xca.dmg: xca-$(VERSION)-SnowLeopard.dmg
|
||||
xca-$(VERSION)-SnowLeopard.dmg: $(DMGSTAGE)
|
||||
hdiutil create -ov -srcfolder $< $@
|
||||
|
||||
trans:
|
||||
$(MAKE) -C lang po2ts
|
||||
lupdate-qt4 $(TOPDIR)/xca.pro
|
||||
$(MAKE) -C lang xca.pot
|
||||
|
||||
.PHONY: $(SUBDIRS) $(INSTDIR) xca.app setup.exe doc lang macdeployqt/macdeployqt
|
||||
|
||||
doc lang headers: local.h
|
||||
|
||||
@ -3,9 +3,11 @@ ifeq ($(TOPDIR),)
|
||||
TOPDIR=..
|
||||
endif
|
||||
|
||||
LANGUAGES=de es ru
|
||||
PO_LANGUAGES=es
|
||||
LANGUAGES=de ru $(PO_LANGUAGES)
|
||||
QM_XCA=$(patsubst %, xca_%.qm, $(LANGUAGES))
|
||||
QM_QT=$(patsubst %, qt_%.qm, $(LANGUAGES))
|
||||
TS_XCA=$(patsubst %, xca_%.ts, $(PO_LANGUAGES))
|
||||
|
||||
%.qm: %.ts
|
||||
$(LRELEASE) $< -qm $@
|
||||
@ -22,6 +24,14 @@ app:
|
||||
(cd $(SYSROOT)/Developer/Applications/Qt/translations && \
|
||||
install $(QM_QT) $(APPDIR)/Resources )
|
||||
|
||||
|
||||
po2ts: $(TS_XCA)
|
||||
xca_%.ts: %.po
|
||||
lconvert -i $< -of ts -o $@
|
||||
|
||||
xca.pot: xca.ts
|
||||
lconvert -i $< -of po -o $@
|
||||
|
||||
clean:
|
||||
$(RM) $(QM_XCA)
|
||||
|
||||
|
||||
4380
lang/es.po
Normal file
4380
lang/es.po
Normal file
File diff suppressed because it is too large
Load Diff
4317
lang/xca.pot
Normal file
4317
lang/xca.pot
Normal file
File diff suppressed because it is too large
Load Diff
3801
lang/xca_es.ts
3801
lang/xca_es.ts
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user