Difference between revisions of "Po generation tool"

 
Line 1: Line 1:
 
[[Category:Tools]]
 
[[Category:Tools]]
 +
[[Category:Internationalization]]
 
== Overview ==
 
== Overview ==
 
The Po Generation Tool is an auxiliary tool of [[Internationalization|i18n library]] used extracting manifest strings from compilable Eiffel classes. Only those manifest strings which are parsed as arguments into features of `translate' and `translate_plural' are extracted. The output is an [http://www.gnu.org/software/gettext/manual/html_node/gettext_9.html#SEC9 .po file] with void translations. The tool is being used for internationalization of EiffelStudio. The output file is the initial [https://origo.ethz.ch/eiffelsoftware/es/trunk/Delivery/studio/lang/po_files/estudio.pot estudio.pot] which is completed by appending other useful entries. See [[EiffelStudio_Internationalization|EiffelStudio Internationalization]]
 
The Po Generation Tool is an auxiliary tool of [[Internationalization|i18n library]] used extracting manifest strings from compilable Eiffel classes. Only those manifest strings which are parsed as arguments into features of `translate' and `translate_plural' are extracted. The output is an [http://www.gnu.org/software/gettext/manual/html_node/gettext_9.html#SEC9 .po file] with void translations. The tool is being used for internationalization of EiffelStudio. The output file is the initial [https://origo.ethz.ch/eiffelsoftware/es/trunk/Delivery/studio/lang/po_files/estudio.pot estudio.pot] which is completed by appending other useful entries. See [[EiffelStudio_Internationalization|EiffelStudio Internationalization]]

Revision as of 06:56, 25 January 2007

Overview

The Po Generation Tool is an auxiliary tool of i18n library used extracting manifest strings from compilable Eiffel classes. Only those manifest strings which are parsed as arguments into features of `translate' and `translate_plural' are extracted. The output is an .po file with void translations. The tool is being used for internationalization of EiffelStudio. The output file is the initial estudio.pot which is completed by appending other useful entries. See EiffelStudio Internationalization

Usage

 Usage:
         po_generation_tool [OPTION] [INPUTFILE]...
 
 Extract translatable strings from given input Eiffel class files (*.e).
 INPUTFILE ...   input files
 -f              add list of input files
 -D              add list of directories to list for input files search
 -o              write output to specified file
                 If output file is -, output is written to standard output.
                 If output file is not specified, 'po_file.pot' will be generated as default name.
 -h              display this help and exit

Limitations

  • The tool now is not smart enough to identify a call of `translate' or `translate_plural' is from an indentifier of type I18N_LOCALE. This means that any call of the same name with `translate' and that takes one manifest string argument or of the same name with `translate_plural' and that takes two manifest string arguments is extracted.
  • Suggestion: Do not use a feature with signature like "translate (a_string: STRING_GENERAL)" or "translate_plural (a_string1: STRING_GENERAL; a_string2: STRING_GENERAL)", if i18n library is used.