From 83fc1a851c69e13808d14f2d5a284c3369409018 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 14 Mar 2010 14:11:52 -0700 Subject: NEW FEATURE: added localization support using gettext to add support for localization --- TRANSLATION | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 TRANSLATION (limited to 'TRANSLATION') diff --git a/TRANSLATION b/TRANSLATION new file mode 100644 index 0000000..38bbaaa --- /dev/null +++ b/TRANSLATION @@ -0,0 +1,23 @@ +Translation: + +to update the pot file run: + +xgettext -L PHP -n --package-name=edoko --msgid-bugs-address=arun@nubati.net *php */*php +mv messages.po po/messages.pot + + +To start a new translation use something like (here shown to create de.po): + +cd po +msginit -i messages.pot -o de.po + +To update a po file run: + +cd po +msgmerge de.po messages.pot + +Start editing and then after updating a po run: + +msgconv -t ISO-8859-1 de.po > de.po.new && mv de.po.new de.po +msgfmt -cv -o de.mo de.po +mv de.mo ../locale/de/LC_MESSAGES/edoko.mo \ No newline at end of file -- cgit v1.2.3-18-g5258