GNU Health/Localization

From Wikibooks, open books for an open world
Jump to: navigation, search

Translating GNU Health[edit]

The language of the GNU Health user interface is controlled through gettext language packs.

Since GNU Health version 1.6.3, these language packs are not included in the source files anymore but managed, stored and distributed through an online translation platform. This makes maintaining translations easier and faster, and it makes your GNU Health installation leaner, since it contains only the languages needed by your health institution.

The official GNU Health translation portal is at gnusolidario.org Pootle server

There is a mailing list for all translation related discussions at https://lists.gnu.org/mailman/listinfo/health-i18n . If you are a GNU Health translator, you should subscribe to this mailing list.

When translating GNU Health to your language, please start from the health module which contains the core of GNU Health.

Installation of Language Packs[edit]

Symbol version newer.svg

This section applies to version 3.0 of GNU Health.

We will go through an example on how to enable the Spanish language and to install the language pack for the module ICD-10 for it. For this example, we will work on the demo database gnuhealth_demo_generic.

Step 1: Declare your language in Tryton and make it translatable. This can be done in the Administration → Localization → Languages section.

Set the language as translatable

Remember the code of the language (in this case es_ES).

Check language code

Step 2: Download and uncompress the language pack file for your language and for the specific resource from [ GNU Pootle server].
With the GNU Health administrator user (gnuhealth) execute the following commands .

Note : Substitute the language sample code (es_ES) by your language.


./gnuhealth-control getlang es_ES

This installs all the modules translation files for the Spanish Spain (es_ES) language.

Step 3: Change your user preferences to your new language and timezone:

GNU Health user language preferences

Step 4: Log out and stop your Tryton server (if it's running).

Step 5: Update your module with the following command:

 ./trytond --update=health_icd10 --database=gnuhealth_demo_generic

Step 6: Start your sever with the new language for your module installed.

Setting the User Language[edit]

Please remember that the language is a user preference. In the same database, you can have different users using different languages.

Scheduler · Modules

Scheduler · GNU Health · Modules