Build 307 – improving of Gettext localization .po files

Choosing of programming language

Earlier builds of  Sisulizer 2010 expected you use  C/C++ as programming language using Gnu gettext routines. From build 307 Sisulizer honors that gettext .po files are popular among developers of a wide range of programming languages. Just specify your programming language via menu “Project” -> “Edit source” -> your PO source file -> “Options” -> “Programming language” combo box. Source properties dialog is also available via “Properties” item in context menu of source node in Sisulizer’s Project Tree.

Below is a list of supported programming languages:

  • Visual Basic / VBScript
  • C++ / C
  • C#
  • Delphi / Pascal
  • Java
  • JavaScript
  • PHP
  • Python
  • RGS
  • SQL

Gettext localization is also a popular solution for web solutions based on non-Windows operating systems, such as Linux. Above list contains also languages popular in developing of advanced web solution, for example PHP, Perl, Pthyton, SQL and this Sisulizer feature can significantly improve localization of applications not based on Windows  environment.

When you select appropriated programming language, you can validate translations for potential mistakes of programing language items included to PO strings. You can check for these potential bugs, if you select “Inconsistent format string” in “Validate Translation” dialog available via “Validation” menu.

Plural forms

With build 307 our developers significantly improved support of plural items included to Gettext source files. Now you can localize also plural items, but first you need to select number of plural forms supported in your source PO file by using menu “Project” -> “Edit source” -> your PO source file -> “Options” -> “Plural forms”. Source properties dialog is also available via “Properties” item in context menu of source node in Sisulizer’s Project Tree.

For each plural message Sisulizer adds as many rows as specified in this field. If you plan to support only Western and Asian languages 2 is enough. 3 covers most languages excluding Arabic, Slovenian and Welsh. 4 covers all but Arabic. If you want to correctly translate to all Arabic forms set this to 6.

Janusz Grzybek

Leave a Reply