<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.phpgedview.net/en/index.php?action=history&amp;feed=atom&amp;title=Languages</id>
	<title>Languages - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.phpgedview.net/en/index.php?action=history&amp;feed=atom&amp;title=Languages"/>
	<link rel="alternate" type="text/html" href="https://wiki.phpgedview.net/en/index.php?title=Languages&amp;action=history"/>
	<updated>2026-04-30T00:25:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.phpgedview.net/en/index.php?title=Languages&amp;diff=11137&amp;oldid=prev</id>
		<title>Mnoorenberghe: updating link since SF.net now requires the trailing slash</title>
		<link rel="alternate" type="text/html" href="https://wiki.phpgedview.net/en/index.php?title=Languages&amp;diff=11137&amp;oldid=prev"/>
		<updated>2008-08-07T03:28:43Z</updated>

		<summary type="html">&lt;p&gt;updating link since SF.net now requires the trailing slash&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;PhpGedView has built-in support for multiple languages. &lt;br /&gt;
&lt;br /&gt;
==Language configuration tools==&lt;br /&gt;
You will find the tools for managing languages in the admin menu:&lt;br /&gt;
*'''[[Add files and settings for a new language|Add files and settings for a new language]]'''&lt;br /&gt;
*'''[[Configure supported Languages|Configure supported languages]]'''&lt;br /&gt;
*'''[[Translator tools|Translator tools]]'''&lt;br /&gt;
:*''Byte Order Mark (BOM) check''&lt;br /&gt;
:*''Help Text Debug Option''&lt;br /&gt;
:*''Language File Edit Utility''&lt;br /&gt;
:*''Language File Export Utility''&lt;br /&gt;
:*''Language File Comparison Utility''&lt;br /&gt;
:*''[http://sourceforge.net/forum/forum.php?forum_id=294245 PhpGedView Translations forum on SourceForge]''&lt;br /&gt;
&lt;br /&gt;
==Language encoding==&lt;br /&gt;
PHP supports UTF-8 Unicode encoding and that is the recommended character encoding for GEDCOMs with PhpGedView. PHP does not support UTF-16 encoding.  If you have characters in your GEDCOM outside the standard ASCII alphabet, you should probably use the UTF-8 encoding.  There are many differences between UTF-8 and UTF-16, but anything that you can encode in UTF-16 you should be able to encode in UTF-8.  It is also quite easy to convert from UTF-16 to UTF-8.  Simply open your Unicode GEDCOM file in Windows Notepad and select &amp;quot;File-&amp;gt;Save As..&amp;quot; from the menu and choose UTF-8 as the encoding option.  You shouldn't lose any of the characters in the translation. Read more on UTF-8, UTF-16 and other Unicode encodings in the [http://en.wikipedia.org/wiki/Unicode Wikipedia article on Unicode]&lt;br /&gt;
&lt;br /&gt;
==Editing language files==&lt;br /&gt;
&lt;br /&gt;
Note: Make this a separate article&lt;br /&gt;
&lt;br /&gt;
Note:  If you want to use the language editing features you will need to set Write permissions for all of the files in the &amp;quot;languages&amp;quot; folder.&lt;br /&gt;
&lt;br /&gt;
Discussion and questions about the multiple language features of PhpGedView, including translations, should be posted in the Translations forum available from the PhpGedView project page here:&lt;br /&gt;
http://sourceforge.net/forum/forum.php?forum_id=294245&lt;br /&gt;
&lt;br /&gt;
To translate PhpGedView into another language that is not currently supported you must first login to PhpGedView as an administrator and go to the Language Edit Utility by clicking on &amp;quot;Admin-&amp;gt; Translator Tools&amp;quot;.  At the bottom of that page is an option to Add a new language.  Choose your language from the dropdown list and click on the &amp;quot;Add new Language&amp;quot; button.  &lt;br /&gt;
&lt;br /&gt;
A popup window will appear that allows you to edit the default settings for your language.  Each of the settings has online help available by clicking on the &amp;quot;?&amp;quot;.  You might want to look at the settings for some of the other languages on the edit language page to see how they are set up.  &lt;br /&gt;
&lt;br /&gt;
When you have finished editing the settings, click the Save button.  This will create a new lang_settings.php file in the index directory.  You will notice that your language now appears in the supported languages list.&lt;br /&gt;
&lt;br /&gt;
Next create a copy of the &amp;quot;configure_help.en.php&amp;quot;, &amp;quot;facts.en.php&amp;quot;, &amp;quot;help_text.en.php&amp;quot;, and &amp;quot;lang.en.php&amp;quot; files located in the &amp;quot;languages&amp;quot; folder and change the &amp;quot;en&amp;quot; part to match the two letter language code of your language.  &lt;br /&gt;
&lt;br /&gt;
The &amp;quot;facts&amp;quot; file contains all of the translations for the various GEDCOM tags such as BIRT = Birth.  The &amp;quot;lang&amp;quot; file contains all of the language variables used throughout the site.  The &amp;quot;configure_help.en.php&amp;quot; and &amp;quot;help_text.en.php&amp;quot; provide configuration and help instructions.&lt;br /&gt;
&lt;br /&gt;
You can translate these files using the online Language File Edit utility.  Just select your language from the drop-down list and then select the file you want to edit and click the Edit button.  Your file will be compared to the English language file so that you can easily translate the files online.&lt;br /&gt;
&lt;br /&gt;
You can also translate these files manually by opening them in any text editor.  If you manually edit the files, you must be sure to save them in the UTF-8 character set.  Some text editors like Windows Notepad add a 3-byte Byte-Order-Mark (BOM) to files they save in UTF-8.  PHP does not like the BOM and it should be removed before testing the files in PhpGedView.  PhpGedView's Translator Tools section has a utility program&lt;br /&gt;
to remove these BOMs.&lt;br /&gt;
&lt;br /&gt;
You should obtain a flag file from http://w3f.com/gifs/index.html and size it to match the other flags in the images/flags directory.&lt;br /&gt;
&lt;br /&gt;
To help maintain languages, a language change log is provided in the languages directory.  This change log is named LANG_CHANGELOG.txt.  All changes to the English language files are recorded here.&lt;br /&gt;
&lt;br /&gt;
If you make a new translation of PhpGedView or update another translation, and would like to contribute it to the community please post your language files and your index/lang_settings.php file to the Patches section of the SourceForge project site at http://www.sourceforge.net/projects/phpgedview/&lt;br /&gt;
&lt;br /&gt;
The list of language files:&lt;br /&gt;
&lt;br /&gt;
{{Language Files}}&lt;br /&gt;
&lt;br /&gt;
==Language extensions==&lt;br /&gt;
&lt;br /&gt;
Language extension files are custom PHP files that you can use to make your own language specific extensions to PhpGedView.  To add a language file extension, create a new PHP file called lang.xx.extra.php [extra.xx.php for versions of PGV after 4.0] replacing the &amp;quot;xx&amp;quot; with the code for the language you want to extend.  These files are not automatically included with the package so that when you upgrade, your extensions are not overwritten.&lt;br /&gt;
&lt;br /&gt;
If this file exists for the language that is chosen, it is the very last thing that is loaded before the display starts.  These files were designed to be language file extensions, but you could easily use them to make settings changes based on the chosen language.&lt;br /&gt;
&lt;br /&gt;
What sort of things can you do with language extensions?&lt;br /&gt;
 - Customize any of the text that appears on the site,&lt;br /&gt;
 - Change configuration options based on language,&lt;br /&gt;
 - Change to a different GEDCOM when someone views your site in a different language.&lt;br /&gt;
&lt;br /&gt;
The only settings that you should not override in this file are the Privacy settings.&lt;br /&gt;
&lt;br /&gt;
If, for example, you wanted to change the GEDCOM title when you changed the language, you could change the title for each language by adding the following line to your lang.xx.extra.php:&lt;br /&gt;
    $GEDCOMS[&amp;quot;surname.ged&amp;quot;][&amp;quot;title&amp;quot;] = &amp;quot;Title in Chinese&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
In this file you could also change the text on the buttons:&lt;br /&gt;
    $pgv_lang[&amp;quot;view&amp;quot;]=&amp;quot;Show&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
With this file you could also change the GEDCOM that is displayed when the language is selected.  Suppose you had a GEDCOM that was in German and one that was in English.  In the lang.de.extra.php file you could add the following lines:&lt;br /&gt;
    if ($GEDCOM==&amp;quot;english.ged&amp;quot;) {&lt;br /&gt;
      header(&amp;quot;Location: $SCRIPT_NAME?$QUERY_STRING&amp;amp;ged=german.ged&amp;quot;);&lt;br /&gt;
      exit;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
These lines say that if we are using the German language files, but are using the English GEDCOM, then we need to reload the page with the German GEDCOM.  You need to reload the page so that the configuration settings for the GEDCOM get loaded.  This assumes that you have both &amp;quot;english.ged&amp;quot; and &amp;quot;german.ged&amp;quot; imported into the database and that the english.ged and the german.ged have the same people in them, just in a different language.  &lt;br /&gt;
&lt;br /&gt;
Thus I0001 in english.ged should refer to the same I0001 in german.ged.&lt;br /&gt;
&lt;br /&gt;
[[Category:PhpGedView|Languages]]&lt;/div&gt;</summary>
		<author><name>Mnoorenberghe</name></author>
		
	</entry>
</feed>