Outils de traduction : Différence entre versions

De PGVWiki
Sauter à la navigation Sauter à la recherche
Ligne 14 : Ligne 14 :
 
Ce paramétrage ne sera valide que durant votre session courante PhpGedView.
 
Ce paramétrage ne sera valide que durant votre session courante PhpGedView.
  
===PhpGedView Translations forum on SourceForge===
+
===Forum traduction===
Put link in here
+
Ce [http://sourceforge.net/forum/forum.php?forum_id=294245 lien] ouvre une nouvelle fenêtre. Vous serez redirigé vers le forum de traduction de, où vous pouvez discuter des sujets relatifs aux traductions.
 +
 
 
===Language File Edit Utility===
 
===Language File Edit Utility===
 
[[image:4_translator_tools_4.jpg|center]]
 
[[image:4_translator_tools_4.jpg|center]]

Version du 2 janvier 2008 à 10:18

Editer fichiers traduction.png


Utilitaire de suppression du BOM

Editer fichiers traduction1.png


Cet outil effectue la suppression du BOM* dans les fichiers de langues.

  • BOM = Byte Order Mark : 3 octets ajoutés au tout début d'un fichier par certains éditeurs de texte. Ce marqueur sert à mémoriser le format du fichier (ANSI, UTF-8...). La présence du BOM provoque une erreur d'affichage PHP, il est donc nécessaire de le supprimer.

Help Text Debug Option

Editer fichiers traduction2.png


Quand vous autorisez cette option, les noms des variables de langues utilisées dans les textes d'aide s'afficheront dans la fenêtre d'aide sous forme de popup. Celà aidera les traducteurs à déterminer le nom de la variable lorsque le texte a besoin d'être adapté.

Ce paramétrage ne sera valide que durant votre session courante PhpGedView.

Forum traduction

Ce lien ouvre une nouvelle fenêtre. Vous serez redirigé vers le forum de traduction de, où vous pouvez discuter des sujets relatifs aux traductions.

Language File Edit Utility


You can use this utility to edit the contents of a language file by using the contents of the English one.

You will see the contents of the original English language file and the contents of the same file type (there are four of these) in your chosen language. You click on the message text shown below the English version. This opens a new window where you can modify the text. You can save the changes or abandon them.

Language To Edit

In this list box you select the language whose messages you want to edit.

Language File To Edit

PhpGedView has implemented support for many different languages. This has been achieved by keeping all text that is visible to users in files completely separate from the main program. There is a set of five files for each supported language, and the various texts have been separated into one of these files according to function. When a given text is not yet available in translated form, PhpGedView will use the English version.

The files in each language set are:

  • configure_help.xx.php This file contains terms, common expressions, and Help text for use during configuration of PhpGedView. The Help text is not intended to be viewed by ordinary users.
  • countries.xx.php This is a list of country names, taken from the Web site of the Statistics Division, United Nations Department of Economic and Social Affairs. This is the relevant link to the English list. The list is available in either English or French.
  • facts.xx.php This file contains the textual equivalents of the GEDCOM Fact codes found in the GEDCOM 5.5.1 Standard. It also contains additional Fact codes not found in the Standard but used by various genealogy programs.

An English copy of the GEDCOM 5.5.1 Standard can be downloaded in PDF (Portable Document Format).

  • help_text.xx.php This file contains Help text for ordinary users. Some Help topics in this file address the needs of administrators, and are hidden from users who do not have Admin rights.
  • lang.xx.php Many terms and common expressions are found in this file.

Hide Translated

If set to Yes you will only see those messages of your selected language file which have not been translated. This means the new message does not appear in the target language file.

Some language files contain English text for various untranslated messages. This routine cannot identify these untranslated items, since they already are present in the target file. The assumption is, "If the message is present in the target file, it must have been translated."

Language To Export


From this list box you can select the language whose messages you want to export.

The routine currently only exports the contents of the configure_help_text.php file. The output is an HTML file that you can print from your browser.

Language File Comparison Utility


This utility will compare two sets of language files to produce a list of the additions and subtractions between them.

Read also the file LANG_CHANGELOG.txt for changes to the English version. The English files should be used as the reference from which all others are produced.

Source Language

From this list box you can select the language whose messages you want to compare with those of another language.

All changes and additions to language files are first made to the English language files, so you would normally select English as one of the languages to compare.

Secondary Language

From this list box you can select the language which you want to compare with the language selected in the Source list box.

After you have made your choice, click the Compare button to get a list of all additions and subtractions in all four files of both languages.

To refresh your memory

Addition means: It is in the Source file, but not in the Secondary file.

Subtraction means: It is not in the Source file, but it is in the Secondary file. This might happen when a given message is no longer used and therefore was removed from the English files. You can safely remove the corresponding message from the secondary language files.

Return To Admin Menu

Link to return to the Admin Menu