[Scummvm-devel] Enhancement to I18N

Eugene Sandulenko sev at scummvm.org
Sat Aug 20 15:26:41 CEST 2011


Hi Team,

I just committed a small update to po/module.mk but which has a nice
impact on our translators.

The update adds a command line switch to xgettext for including
comments to the .po files.

Thus, if you want some explanation to accompany your string, just add
a comment to the preceding line and tag it with 'I18N'.

Example from engines/mohawk/dialogs.cpp:

  	// I18N: Option for fast scene switching
	_zipModeCheckbox = new GUI::CheckboxWidget(this, 15, 10, 300, 15,
_("~Z~ip Mode Activated"), 0, kZipCmd);

Will result in:

  #. I18N: Option for fast scene switching
  #: engines/mohawk/dialogs.cpp:92 engines/mohawk/dialogs.cpp:171
  msgid "~Z~ip Mode Activated"
  msgstr ""

I will go now and add some more of these, but please consider
revisiting your engines and giving a helping hand to the translation
team.

Also my next step is to update relevant Wiki page:

  http://wiki.scummvm.org/index.php/Supporting_GUI_Translation


Eugene




More information about the Scummvm-devel mailing list