diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-10 05:14:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-10 05:14:00 +0000 |
commit | fa949b6b7fa553547f26305d4227e8baa0091c1f (patch) | |
tree | 9199255f7d3e0f276f6f53000f13fb0081f3c4c5 /pot/Makefile.am | |
download | bibletime-fa949b6b7fa553547f26305d4227e8baa0091c1f.tar.gz bibletime-fa949b6b7fa553547f26305d4227e8baa0091c1f.zip |
Added initial Trinity version of BibleTime
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/bibletime@1173688 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'pot/Makefile.am')
-rw-r--r-- | pot/Makefile.am | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pot/Makefile.am b/pot/Makefile.am new file mode 100644 index 0000000..95ff7f5 --- /dev/null +++ b/pot/Makefile.am @@ -0,0 +1,30 @@ +# make messages.pot +# the -x is for skipping messages already translated in kdelibs + +messages: + echo Preparing documentation files handbook.pot and howto.pot... + mkdir -p tmp/ + for XML_FILE in `cd ..; find docs -name "*.docbook"`; do\ + echo " creating temporary POT file tmp/$$XML_FILE.pot";\ + (cd tmp; mkdir -p `dirname $$XML_FILE.pot`; xml2pot ../../$$XML_FILE > $$XML_FILE.pot;)\ + done + echo merging POT files... + msgcat --force-po -o handbook.pot `find tmp/docs/handbook -name "*.pot"` + msgcat --force-po -o howto.pot `find tmp/docs/howto/ -name "*.pot"` + rm -r ./tmp/ + echo Finished creating handbook.pot and howto.pot.\n + echo Preparing program messages file messages.pot... + echo Before we start, run make to generate all the auto-generated .cpp and .h files + (sleep 5; cd ..; make) #needed for .ui files + echo Now extract the messages... + perl ./extractrc ../bibletime/xml/*.rc > ../bibletime/rc-dummy.cpp + perl ./preparetips ../docs/tips > ../bibletime/tips-dummy.cpp + $(XGETTEXT) -C -F -L C++ -ki18n -kI18N_NOOP -x `kde-config --prefix`/include/kde/kde.pot `find .. -type f -not -name clanguagemgr.cpp -and -name \*.cpp -or -name \*.h -or -name \*.cc` -o messages.pot + recode iso8859-1..utf-8 messages.pot + cp ../bibletime/backend/clanguagemgr.cpp clanguagemgr.cpp + $(XGETTEXT) --from-code=utf-8 --join-existing -C -F -L C++ -ki18n -kI18N_NOOP -x `kde-config --prefix`/include/kde/kde.pot clanguagemgr.cpp -o messages.pot + rm clanguagemgr.cpp + echo Finished creating messages.pot. + + + |