From: short <> Date: Tue, 4 Dec 2001 21:47:19 +0000 (+0000) Subject: :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Tue Dec 4 22:45 CET 2001 X-Git-Tag: orig2001_12_04_22_45~2 X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=commitdiff_plain;h=f38db065f681dff9c932499a640d02bf914cd513;ds=sidebyside :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Tue Dec 4 22:45 CET 2001 --- diff --git a/Docs/gettext-howto b/Docs/gettext-howto index c24e67d..1c78ab1 100644 --- a/Docs/gettext-howto +++ b/Docs/gettext-howto @@ -100,3 +100,25 @@ SnowWhite:/tmp/gnokii$ The second line is in czech language :-) There are some problems - for example with "Mar" which is substitute by the C preprocessor. +6. How to use locale in the gnokii code + +It's simple. Instead uf using: +"some string" +use: +_("some string") + +In some cases _() cannot be used but the text still needs to be localized. +In such cases use: +N_("some string") +For more detailes refer to gettext info pages. + +When sending us the patches and writing code for gnokii follow the rules: + - do NOT translate DEBUG output (usually done by dprintf()), + - translate all other output + - do not output to stdout, unless you are in the application level code + (gnokii/*.c, gnokiid/*.c, xgnokii/*.c, smsd/*.c) + +-- +$Id$ +Pavel Janik +Pawel Kot diff --git a/VERSION b/VERSION index b790e70..15a1a14 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.0pre2 +0.4.0pre5