From 518e67dc7e2e8949a1677d0e0429ea6300d3d8b9 Mon Sep 17 00:00:00 2001 From: Daniel Tiefnig Date: Tue, 14 Dec 2010 16:28:21 +0000 Subject: [PATCH] fixed README to conform with installation directory structure wasn't meant to be released, actually --- lib/csc/I18N/README | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/csc/I18N/README b/lib/csc/I18N/README index 8bdc7c0..9101e55 100644 --- a/lib/csc/I18N/README +++ b/lib/csc/I18N/README @@ -1,21 +1,27 @@ I18N support for Sipwise NGCP CSC -To update the language strings in this directory you'll first need +1) Regenerate messages.pot if you have modified template files: + +To update the language strings in messages.pot you'll first need xgettext.pl from the liblocale-maketext-lexicon-perl package. - NOTE: 'xgettext' from the gettext package won't work! Don't try to - use it here. +NOTE: 'xgettext' from the gettext package won't work! Don't try to use + it here. + +Then run + xgettext.pl -o I18N/messages.pot root/layout/* root/tt/* +in the /usr/share/ngcp-www-csc/lib/csc directory. This will update +messages.pot with all new, changed and removed strings. -Start with running - xgettext.pl -o lib/csc/I18N/messages.pot root/layout/* root/tt/* -in the CSC trunk (or branch) directory. This will update messages.pot -with all new, changed and removed strings. +2) Update or create $LANG.po files for translation: -Then change to lib/csc/I18N/ and run +Change to the I18N directory and run msgmerge --update $LANG.po messages.pot -for all the .po files. (replace $LANG with the language code) +for all the existing .po files. (replace $LANG with the language code) +To create a new language, just omit the "--update" option and specify a +new filename. Finally edit the .po files and do the translation. Remove old strings by deleting the "#~ " quoted lines. NOTE: To find strings which require attention, look for empty msgstr - entries and for entries marked "fuzzy". Don' forget to remove + entries and for entries marked "fuzzy". Don't forget to remove the "fuzzy" marks when you're done.