Difference between revisions of "Translating"

From Gestinux Wiki
Jump to navigation Jump to search
(Links)
Line 7: Line 7:
 
== Where do you start translating, and what should you then move on to translate thereafter? ==
 
== Where do you start translating, and what should you then move on to translate thereafter? ==
  
Ideally, you should start [[Translating / en # translate software | to translate the software]] itself, before starting to translate any documentation.
+
Ideally, you should start [[Translating#Translating the software|to translate the software]] itself, before starting to translate any documentation.
  
The translated software will be used to [[Translating / en # Provide translations Policy | create a set of test data]] and make fresh screenshots showing the newly translated language.
+
The translated software will be used to [[Translating#Providing translation data|create a set of test data]] and make fresh screenshots showing the newly translated language.
  
Then you can gradually [[Translating / en # Translate documentation | translate the documentation]].
+
Then you can gradually [[Translating#Translating the documentation|translate the documentation]].
  
 
== Translating the software ==
 
== Translating the software ==
Line 17: Line 17:
 
Only version 1.0 of Gestinux needs to be translated. The following paragraphs cover the various steps involved in completing your translation task.
 
Only version 1.0 of Gestinux needs to be translated. The following paragraphs cover the various steps involved in completing your translation task.
  
If you understand English, you can consult the [[internationalization Programming | internal translation mechanism]] for more information.
+
If you understand English, you can consult the [[Internationalisation_programmation|internal translation mechanism]] for more information.
  
 
=== The code for your language ===
 
=== The code for your language ===
Line 25: Line 25:
 
Languages ​​are identified in accordance with standard Gestinux [http://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html POSIX] codes, which all have the double xx_YY format.
 
Languages ​​are identified in accordance with standard Gestinux [http://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html POSIX] codes, which all have the double xx_YY format.
  
The lowercase xx part of the code identifies the primary language, according to the  [http://fr.wikipedia.org/wiki/Liste_des_codes_ISO_639-2 ISO-639-1] standard.
+
The lowercase xx part of the code identifies the primary language, according to the  [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO-639-1] standard.
The uppercase YY part identifies any possible language variant (usually with a country code), according to the [ISO-3166 http://fr.wikipedia.org/wiki/ISO_3166-1] standard.
+
The uppercase YY part identifies any possible language variant (usually with a country code), according to the [http://en.wikipedia.org/wiki/ISO_3166-1 ISO-3166-1] standard.
  
 
You should use the referenced ISO codes. If you invent a new code, the risk is that they may be formalized differently later.
 
You should use the referenced ISO codes. If you invent a new code, the risk is that they may be formalized differently later.
Line 37: Line 37:
 
* Sv_SE: Sweden "Sweden"
 
* Sv_SE: Sweden "Sweden"
  
If you are in any doubt, ask for confirmation on the [http://gestinux.net/forum/viewforum.php?f=2 forum].
+
If you are in any doubt, ask for confirmation on the [http://gestinux.net/forum/viewforum.php?f=8 forum].
  
 
=== The source file to translate ===
 
=== The source file to translate ===
Line 60: Line 60:
 
This must be done before you complete the translation, and the earlier the better.
 
This must be done before you complete the translation, and the earlier the better.
  
If you know how to use SVN, ask to be given a "developer" profile, otherwise explain what you are doing on the forum and attach the file to your message translation. Other developers will use SVN directly. In either case, use the [http://gestinux.net/forum/viewforum.php?f=2 forum] to communicate with the other developers.
+
If you know how to use SVN, ask to be given a "developer" profile, otherwise explain what you are doing on the forum and attach the file to your message translation. Other developers will use SVN directly. In either case, use the [http://gestinux.net/forum/viewforum.php?f=10 forum] to communicate with the other developers.
  
 
=== Initial Setup ===
 
=== Initial Setup ===
Line 86: Line 86:
 
=== Installing new translations ===
 
=== Installing new translations ===
  
If possible, get another native speaker to read and check your work. Once the translation is complete, unlock the file in SVN if you know how, or ask via the [http://gestinux.net/forum/viewforum . php? forum f = 6] for another developer to do this for you.
+
If possible, get another native speaker to read and check your work. Once the translation is complete, unlock the file in SVN if you know how, or ask via the [http://gestinux.net/forum/viewforum.php?f=10 forum] for another developer to do this for you.
  
 
If you contribute a commonly used language, your translation will be added to the next version of Gestinux.
 
If you contribute a commonly used language, your translation will be added to the next version of Gestinux.
Line 109: Line 109:
 
Currently there are about 100 pages to translate, but some are more important than others.
 
Currently there are about 100 pages to translate, but some are more important than others.
  
See [[Help: Contents / fr | how to create or edit pages]] of this wiki.
+
See [[Help:Contents|how to create or edit pages]] of this wiki.
  
There is a way to list the remaining untranslated pages (or those whose original has been modified after translation). For now, this method is not available online, so if you would value this facility, ask on the [http://gestinux.net/forum forum].
+
There is a way to list the remaining untranslated pages (or those whose original has been modified after translation). For now, this method is not available online, so if you would value this facility, ask on the [http://gestinux.net/forum/viewforum.php?f=8 forum].

Revision as of 09:11, 5 February 2013

 Français

{{#CustomTitle:How to translate Gestinux}}

This page explains how to translate Gestinux without knowing much about Pascal or other programming languages or the Lazarus IDE.

We ask that you translate only into your native language. Ideally, you should understand French because Gestinux was originally written in French.

Where do you start translating, and what should you then move on to translate thereafter?

Ideally, you should start to translate the software itself, before starting to translate any documentation.

The translated software will be used to create a set of test data and make fresh screenshots showing the newly translated language.

Then you can gradually translate the documentation.

Translating the software

Only version 1.0 of Gestinux needs to be translated. The following paragraphs cover the various steps involved in completing your translation task.

If you understand English, you can consult the internal translation mechanism for more information.

The code for your language

Before starting a new translation, you must discover what code applies to the language you are translating.

Languages ​​are identified in accordance with standard Gestinux POSIX codes, which all have the double xx_YY format.

The lowercase xx part of the code identifies the primary language, according to the ISO-639-1 standard. The uppercase YY part identifies any possible language variant (usually with a country code), according to the ISO-3166-1 standard.

You should use the referenced ISO codes. If you invent a new code, the risk is that they may be formalized differently later.

Language code examples:

  • Fr_FR: French "de France"
  • Fr_CA: Quebec
  • En_US: English (United States of America)
  • Sv_SE: Sweden "Sweden"

If you are in any doubt, ask for confirmation on the forum.

The source file to translate

Gestinux 1.0 supports translations in a "text" xx_YY.ini file.

In general, these files are in a folder named languages ​​at the same level as the executable Gestinux. However, to comply with Debian Linux rules (including Ubuntu), the files for these distributions are in / usr / share / gestinux / languages

These files are installed as write-only. Do not try to modify or unprotect them at this location. If you want to improve an existing (perhaps partial) translation, you should copy that file to a folder you choose, where you have write permissions.

You can also create a file within your personal documents. The first three lines must read:

[General]

LanguageCode =xx_YY

LanguageName =name of language (in English)


Once you have created this file, you should put it in the Gestinux directory sources (managed by SVN) and lock it to prevent anyone else editing the same file simultaneously. This must be done before you complete the translation, and the earlier the better.

If you know how to use SVN, ask to be given a "developer" profile, otherwise explain what you are doing on the forum and attach the file to your message translation. Other developers will use SVN directly. In either case, use the forum to communicate with the other developers.

Initial Setup

From the Gestinux menu choose Settings Languages tab and Add a translation:

File:Languages-logo.png

  • The language reference is necessarily one of the languages ​​installed with gestinux. It will be your source. If possible, choose French, since the English pages are currently not complete.
  • Find your translation file (created as described in the previous section) by clicking the selection button.
  • Check the box "Use translation" for translations of this file to be used. Otherwise the reference language will be used.

Entering a new translation

You can translate globally by clicking the Translate button. In this case, you will have a list (to the left) of the various application windows, as well as some sections unrelated to a window. Global translation is required for sections that do not correspond to a window, and to check you have not overlooked any section. You can use the Next Missing button to find the first missing translation.

It is also possible to press CTRL+F4 from any application window to view and translate the section corresponding to that window. In this case, you will see only that window listed at the left. This method has the advantage that once the translation you can use the F4 key to toggle between viewing the base language and your language translation (and vice versa).

GTranslator.png

Anyway, for the selected section, a list of key translation is displayed. The reference translation (which cannot be changed) is displayed below, and you can enter or edit the translation in your language. Registration is automatic when you change key.

The symbol <CR> skips a line, and should be used for messages.

Installing new translations

If possible, get another native speaker to read and check your work. Once the translation is complete, unlock the file in SVN if you know how, or ask via the forum for another developer to do this for you.

If you contribute a commonly used language, your translation will be added to the next version of Gestinux.

If you contribute a rare language translation, or you don't want to wait for the next Gestinux version, it is possible to make a package that includes an additional language for various target systems (Windows, Debian, ...). You can figure out how to do this yourself or ask a developer.

When you run it for the first time on a workstation, Gestinux tries to activate the correct translation automatically, depending on the computer's language. Unfortunately, Windows does not know the POSIX language codes, and there are cases where this is not automatic. A slight software modification is required that can be obtained from the developers. This problem does not exist on Linux systems.

Providing translation data

A country list has to be created for each language available in Gestinux. This is contained in the xx_YY_countries.txt file that Gestinux loads automatically when its database is created (or audited) provided that you have earlier selected the appropriate language.

It is also helpful if you can create test cases in the language translated for the country (or countries) that use that language. You can export the database so that it can be hosted on gestinux.net and so become accessible to anyone worldwide.

If your country has state-specific tax(es), these can also be integrated into the software. If you do not make a about editing, ask a developer on the forum, sending examples.


Translating the documentation

Having translated the program software (or possibly before) it will also be helpful if you can translate the documentation (which is in the form of a wiki).

Currently there are about 100 pages to translate, but some are more important than others.

See how to create or edit pages of this wiki.

There is a way to list the remaining untranslated pages (or those whose original has been modified after translation). For now, this method is not available online, so if you would value this facility, ask on the forum.