From: Christian Dywan Date: Sun, 2 Nov 2008 23:19:11 +0000 (+0100) Subject: Add file TRANSLATE with tips for translating Midori X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32d8503bfc4d9bc4681766a9fc92d7c4841e06a5;p=midori Add file TRANSLATE with tips for translating Midori --- diff --git a/TRANSLATE b/TRANSLATE new file mode 100644 index 00000000..133ed47b --- /dev/null +++ b/TRANSLATE @@ -0,0 +1,20 @@ +This file is licensed under the terms of the expat license, see the file EXPAT. + ++++ Translating Midori +++ + +If you want to translate Midori, you need a few preparations. + +First enable localization file updates when building: + +./waf configure --enable-update-po && ./waf build + +If you want to add a new language 'aa', create it like this: + +msginit -l aa_CC -o aa.po -i midori.pot && sed -i 's/PACKAGE/midori/g' aa.po + +To check your language 'aa' for errors, do this: + +msgfmt -c --check-accelerators=_ aa.po + +As a general rule, your localization should be based off of the +current state of the git repository. diff --git a/wscript b/wscript index b4d2af6c..72201fe0 100644 --- a/wscript +++ b/wscript @@ -170,7 +170,8 @@ def build (bld): bld.add_subdirs ('katze midori icons') - install_files ('DOCDIR', '/' + APPNAME + '/', 'AUTHORS ChangeLog COPYING EXPAT README') + install_files ('DOCDIR', '/' + APPNAME + '/', \ + 'AUTHORS ChangeLog COPYING EXPAT README TRANSLATE') if bld.env ()['RST2HTML']: # FIXME: Build only if needed