|
summary
Current locale:
en_US
Priority:
1.0 |
localization
Currently installed locales
Updating localesTo update existing locales with new messages from the code, first cd to the locale/ directory: $ cd trunk/community/website/locale/ After that, you will find some scripts there. So, run: $ ./update-messages $ ./update-locales ......done ... $ svn ci -m "Catalogs updated" ... Commit of revision xxx done. $ After that, pick up your favourite editor, edit your .po file, and commit it! Add new locale
To add a new locale, please use your authenticated SVN access. $ svn co svn+ssh://myaliothlogin@svn.debian.org/svn/debian-med/trunk/community/website/locale/ After this, create a new directory for your locale (let's suppose it's fr_FR): $ mkdir -p fr_FR/LC_MESSAGES/ Next step is actually adding the .po catalog. Copy the .pot template to your newly created directory, and start translating: $ cp messages.pot fr_FR/LC_MESSAGES/messages.po $ cd fr_FR/LC_MESSAGES/ $ vi messages.po Now you need to compile the catalog you've just translated, and add everything under SVN control (we're in the LC_MESSAGES/ directory in this example): $ msgfmt messages.po $ ls messages.mo messages.po $ cd ../../ # up to the locale/ directory $ ls it_IT/ fr_FR/ messages.pot $ svn add fr_FR/ A fr_FR/ A fr_FR/LC_MESSAGES/ A fr_FR/LC_MESSAGES/messages.mo A fr_FR/LC_MESSAGES/messages.po $ Now it's time to commit the changes: $ svn commit -m "Adding fr_FR locale" Sending locale/fr_FR/ Sending locale/fr_FR/LC_MESSAGES/ Sending locale/fr_FR/LC_MESSAGES/messages.mo Sending locale/fr_FR/LC_MESSAGES/messages.po Sending data .... Commit of Revision xxx done. $ Please note that the automatic loading of locales has not been tested yet. Please send an e-mail to debian-med@lists.debian.org if you encounter any problems. |