From 32d8503bfc4d9bc4681766a9fc92d7c4841e06a5 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 3 Nov 2008 00:19:11 +0100 Subject: [PATCH] Add file TRANSLATE with tips for translating Midori --- TRANSLATE | 20 ++++++++++++++++++++ wscript | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 TRANSLATE 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 -- 2.39.5