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:
Christian Hohnstaedt 2010-08-19 22:49:57 +02:00
parent 58a5557f96
commit 2db45cfff9
6 changed files with 8714 additions and 3803 deletions

View File

@ -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

View File

@ -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

File diff suppressed because it is too large Load Diff

4317
lang/xca.pot Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -158,4 +158,4 @@ SOURCES += lib/asn1int.cpp \
widgets/MW_menu.cpp \
widgets/NewCrl.cpp \
widgets/kvView.cpp
TRANSLATIONS += lang/xca_de.ts lang/xca_es.ts lang/xca_ru.ts
TRANSLATIONS += lang/xca_de.ts lang/xca_es.ts lang/xca_ru.ts lang/xca.ts