On 4/2/07, Andrew Fyfe <andrew@neptune-one.net> wrote:
Giovanni Scafora wrote:
Add gettext support to gensync.
Signed-off-by: Giovanni Scafora <linuxmania@gmail.com>
diff --git a/scripts/gensync b/scripts/gensync index f99cf59..fa88f32 100755 --- a/scripts/gensync +++ b/scripts/gensync @@ -20,28 +20,37 @@ # USA. #
+# gettext initialization" +source gettext.sh + +TEXTDOMAIN=gensync +export TEXTDOMAIN +TEXTDOMAINDIR='@localedir@' +export TEXTDOMAINDIR +
Is there any reason why we can't use a common TEXTDOMAIN for all the scripts. I think with a little tidying up we'll find that there's a lot of standard messages in the scripts, and it would be easier for translators to maintain if it was all in the same .mo file.
Yes, this is something I forgot in my last email. We definitely want to have one textdomain, which will more than likely be 'pacman'. There are still quite a few details to work out with regards to translations- adding the gettext calls is only part of the issue. More than likely our po directory will need to move to the root of the checkout. -Dan