Configurer les langues : Différence entre versions

De PGVWiki
Sauter à la navigation Sauter à la recherche
Ligne 39 : Ligne 39 :
  
 
====Fichier image du drapeau====
 
====Fichier image du drapeau====
Nom et chemin d'accès au fichier image du drapeau pour cette langue.
+
Dans cette case s'affichent le nom et le chemin d'accès au fichier image du drapeau pour cette langue.
  
 
Les images de ces drapeauw sont disponibles sur le Web.  
 
Les images de ces drapeauw sont disponibles sur le Web.  

Version du 1 janvier 2008 à 17:58

Cette page est utilisée pour déterminer quels choix de langues sont disponibles pour vos utilisateurs. Par exemple, vous pouvez décider que seuls l'anglais et l'allemand seront disponibles. Cela pourrait être utile si, par exemple, vous ne pouvez pas communiquer avec vos utilisateurs en Hongrois.

Vous utilisez également cette page pour ajuster certains paramètres de PhpGedView vis à vis d'une langue. Par exemple, vous définissez ici comment définit le format des dates et des heures dans chacune des langues que vous avez choisies.

Les langues qui sont actives et grisées ne peuvent pas être supprimées parce qu'elles sont utilisées par le logiciel. Regardez en haut de la table pour connaîtres les langues qui sont utilisées. Quand une langue n'est plus utilisées vous pourrez la désactiver.

Toutes vos modifications seront enregistrées dans un nouveau fichier qui s'appelle lang_settings.php et qui est créé dans le répertoire ./index/. Toutes vos modifications ultérieures seront enregistrées dans ce nouveau fichier et PhpGedView n'utilisera que ce seul fichier. Vous pouvez revenir à la configuration d'origine par défaut du logiciel en supprimant ce fichier lang_settings.php

Si vous devez rendre compte de difficultés avec le paramétrage des langues, pensez à informer l'équipe de PhpGedView ssi ce nouveau fichier est toujours présent ou non.

De l'aide contextuelle est disponible sur chaque écran; assurez-vous de la présence d'une bulle d'aide contextuelle, et cliquez sur le symbole ? qui se situe à côté du sujet qui vous pose problème.

Sélection des langues

Erreur lors de la création de la miniature : Fichier manquant
Cliquer sur l'image pour l'agrandir


Les langues actives sont affichées dans la colonne de gauche. La petite case blanche dans la colonne "actif" de la langue choisie par défaut par l'administrateur, ne peut pas être désélectionnée. Les langues supplémentaires peuvent être activées/désactivées en cliquant dans la petite case blanche correspondante dans la colonne "actif". les fichiers de paramétrage des langues peuvent être modifiés en cliquant sur le lien Language files can be edited by clicking on the Editer qui apparaît dans la colonne "Editer les préférences".

Configuration des langues supportées

Erreur lors de la création de la miniature : Fichier manquant
Cliquer sur l'image pour l'agrandir


Actif

Permet de choisir une autre langue, si l'administrateur l'autorise.

Nom d'origine de la langue en Français

Comment se nomme cette langue dans cette langue ?

En anglais, l'anglais se nomme : English En allemand, l'allemand se nomme : Deutsch etc.

Raccourci pour les fichiers de langues

Raccourci du code langue dans PhpGedView. Habituellement il s'agit du premier code dans le fichier des 'Codes de Langues' à définir dans le champ suivant. Par exemple, l'abréviation utilisée pour le français est fr, en conséquence les fichiers pour le français sont nommés comme suit: configure_help.fr.php, countries.fr.php, facts.fr.php, help_text.fr.php, et lang.fr.php

Codes de langue

Ces codes permettent à PhpGedView de détecter la langue par défaut du navigateur. PhpGedView détermine la langue qui est requise par le navigateur web en comparant le code de la langue du navigateur web avec cette liste. Les codes à rentrer ici doivent être séparées par un point virgule: ';'

Fichier image du drapeau

Dans cette case s'affichent le nom et le chemin d'accès au fichier image du drapeau pour cette langue.

Les images de ces drapeauw sont disponibles sur le Web.

Quand vous avez trouve l'image du drapeau qui vous convient, faites un clic-droit sur l'image et sauvegardez la dans un répertoire temporaire. Ensuite, ouvrez cette image avec un éditeur d'image (IrfanView est recommandé sous Windows), réduisez sa taille à 50x32 pixels, qui est la taille normalement utilisée par PhpGedView, puis enregistrez-là au format .GIF dans le répertoire images/flags.

Bien que vous puissiez donner à cette image le nom que vous voulez, vous devez choisir un nom qui est compatible avec le code à 2 lettres du pays. Par exemple, la Croatie est représentée par le code hr, donc le drapeau Croate devrait normalement être nommé hr.gif.

Date format

This field defines the date format to be used by PhpGedView when displaying dates from the database.

   * Standard format
     Symbols you can use are:
     D for day
     M for month
     Y for year.
     You can change the order of these symbols, and you can add delimiters to the format.
     For the examples below, assume that the date in the database is 1965.08.20, which is actually recorded as DATE 20 Aug 1965.
     The standard setting for the English date display format is D M Y, which produces 20 August 1965.
     The German date format is usually D. M Y, resulting in 20. August 1965 when displayed by PhpGedView. The eighth month is called "August" in German.
     In Hungarian, the format normally is Y. M D. producing 1965. augusztus 20. when displayed by PhpGedView. In Hungarian, month names do not have an initial capital letter, and the eighth month is called "augusztus".
   * Alternative format
     To show dates in special ways not handled by the Standard format, use these codes:
     d - day of the month, 2 digits, leading zero; i.e. 01 to 31
     D - day of the week, textual, 3 letters; e.g. Fri
     F - month, textual, long; e.g. January
     j - day of the month, no leading zeros; i.e. 1 to 31
     l (lowercase "L") - day of the week, textual, long; e.g. Friday
     M - month, textual, 3 letters; e.g. Jan
     Y - year, 4 digits; e.g. 1999
     R - French Revolutionary format (see note)
     y - year, 2 digits; e.g. 99
     For example, the date format D j F Y could result in Thu 9 January 1806 while the same date displayed according to the formula l d M Y would result in Thursday 09 Jan 1806
   * French Revolutionary format
     The format code R works in all languages, but produces output when the date is in the range 1792.09.22 to 1805.12.31. The R code produces only French text, and the order of Day, Month, and Year cannot be changed. The output of the R formatting code is underlined to distinguish it from the regular date.
     The R formatting code is considered to be normal text when the date format contains only D, M, and Y codes as described in the topic Standard format above. In other words, for the R code to be recognized, the date format needs to contain a code from the Alternative format list that doesn't appear in the Standard format list.
     For example, the date format D M Y R will produce 13 October 1797 R in English for the date 1797.10.13. If, on the other hand, the date format were j F Y R, the same date would result in 13 October 1797 22 Vendemiaire An 6 in English.

Time format

This field defines the time format to be used by PhpGedView.

Symbols you can use are: a - lowercase Ante meridiem and Post meridiem; i.e. am or pm A - uppercase Ante meridiem and Post meridiem; i.e. AM or PM B - Swatch Internet time; i.e. 000 through 999 c - ISO 8601 date (added in PHP 5); e.g. 2004-02-12T15:19:21+00:00 d - day of the month, 2 digits, leading zero; i.e. 01 to 31 D - day, textual, three letters; e.g. Mon F - month, textual, long; e.g. January g - hour, 12-hour format, no leading zero; i.e. 1 through 12 G - hour, 24-hour format, no leading zero; i.e. 0 through 23 h - hour, 12-hour format, leading zero; i.e. 01 through 12 H - hour, 24-hour format, leading zero; i.e. 00 through 23 i - minutes, leading zero; i.e. 00 to 59 I (capital "i") - daylight saving time indicator; 1 if Daylight Saving Time, 0 otherwise. j - day of the month, no leading zero; i.e. 1 to 31 l (lowercase "L") - day of the week, textual, long; e.g. Friday L - leap year indicator; 1 if it is a leap year, 0 otherwise. m - month, numeric, leading zero; i.e. 01 through 12 M - month, textual, 3 letters; e.g. Jan n - month, numeric, no leading zero; i.e. 1 through 12 O (capital "o") - difference between local and Greenwich time (GMT) in hours; e.g. +0200 r - RFC 2822 formatted date; e.g. Thu, 21 Dec 2000nbsp;16:01:07 +0200 s - seconds, leading zero; i.e. 00 through 59 S - day of the month suffix, English only, 2 characters; i.e. st, nd, rd or th. Works well with j t - number of days in the given month; i.e. 28 through 31 T - time zone setting of this machine; e.g. CEST, EST, MDT U - seconds since the start of the Unix Epoch (January 1 1970 00:00:00 GMT) w - day of the week, numeric; i.e. 0 (for Sunday) through 6 (for Saturday) W - ISO-8601 week number of year, weeks starting on Monday; e.g. 42 (the 42nd week in the year) Y - year, 4 digits; e.g. 1999 y - year, 2 digits; e.g. 99 z - day of year, numeric, no leading zeros; i.e. 0 (1 Jan) through 364 (31 Dec when not a leap year) or 365 (31 Dec in leap years) Z - time zone offset in seconds. The offset for time zones west of Greenwich is always negative, and for those east of Greenwich the offset is always positive. i.e. -43200 through 43200

You can change the order of these symbols, and you can add delimiters to the format.

For example, in German this field normally contains H:i:s to produce a display like 09:01:25. English usually defines the time format as g:i:sa to produce a display like 9:01:25am.

In the 24-hour system, midnight is 00:00. In the 12-hour system, midnight is 12:00am and noon is 12:00pm.

Week starting day

The day of the week that starts a new week in this language. Most languages start the week on Sunday, but some start on Monday or other days.

Text direction

Identifies which direction is used to write text in the chosen language. Most languages are written from left to right. Arabic and Hebrew are examples of languages that are written in the opposite direction (right to left).

Surname first

In some languages the surname should be displayed first instead of the default to display it last. Enabling this option will display the surname first. Hungarian, Chinese, and Japanese are examples where the surname (the family name) is usually given first.

Alphabet upper case

Upper case alphabet letters in this language. This alphabet is used while sorting lists of names.

Alphabet lower case

Lower case alphabet letters in this language. This alphabet is used while sorting lists of names.

Language files

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.