diff options
author | Kevin Dalley <kevind@rahul.net> | 2002-03-15 14:20:02 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:02 +0000 |
commit | ac8459519a9ef2a1ee635509b52a653da1bfe9d5 (patch) | |
tree | 9ed2df2144d6ad3bb7cf1d43243d815a8eb90059 /po/README.ADD_NEW_LANGUAGE | |
parent | 8b372c9248930ae29763202121434d3d676d0f30 (diff) | |
parent | e7e90b72fd3161c5d55fed49e100781dfa3e9408 (diff) |
Imported Debian patch 0.84-2debian/0.84-2
Diffstat (limited to 'po/README.ADD_NEW_LANGUAGE')
-rw-r--r-- | po/README.ADD_NEW_LANGUAGE | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/po/README.ADD_NEW_LANGUAGE b/po/README.ADD_NEW_LANGUAGE deleted file mode 100644 index da658fa..0000000 --- a/po/README.ADD_NEW_LANGUAGE +++ /dev/null @@ -1,69 +0,0 @@ - -How to add a new language to xsane: ------------------------------------ - -SHORT DESCRIPTION: ------------------- - -XSane uses gettext for supporting translation into different languages. -*** BUT ***: -I don`t use the standard routines to create the empty translation(*.po) file. -My way is more flexible when changes in the original textes are made: - -All texts that are printed from xsane are #DEFINEd in xsane-text.h. -Every text that is added to xsane will be added in frontend/xsane-text.h -AND in po/newlanguage.in.in. - -******* Please don`t edit or create a *.po file by hand! ******** - -The files *.po are created form the files *.po.in . In xsane and in the -*.po.in files we use the #defined labels of the text instead of the text. -This way the original text can be changed without all language files -have to be changed! - -po.in2po uses the gcc preprocessor to replace the #defined labels by the -original (up to date) text and creates the *.po files. - -make_newlanguage.po.in creates the file newlanguage.po.in, the gcc preprocessor -is used to add the recent original texts as comments. - - - -WHAT DO YOU HAVE TO DO TO CREATE ADD A NEW LANGUAGE? ----------------------------------------------------- - -Take the file newlanguage.po.in and copy it to "language".po.in -where "language" is the abbrevation that represents you language -(eg. fr.po.in for french, de.po.in for german,...). - -Edit the file "language".po.in and type in the translation -in the lines: -msgstr "text" - -If that is done: - - if you have gcc installed, call po.in2po "language" - - if you don`t have gcc see if you have a C preprocessor you can use - if not, I will transform it for you - -now change to the xsane directory and do -edit configure.in and add "language" to ALL_LINGUAS, then do - make distclean - ./configure - make -and as root - make install - -(You have to install xsane, otherwise the language files will not be found!) - -set environment variable LANG to your language -(eg. export LANG=de) and call xsane - -If you want to make your translation public -please send your "language".po.in file to: -Oliver Rauch <Oliver.Rauch@Wolfsburg.DE> -If you have any problems please also contact -me on the email-address above! - -Bye -Oliver Rauch - |