Deutsch | Start | Layout-preview | Basic-configuration | Layout-settings | Player | Style-editor | Thumbs | Virtual Database | Text-database | Intern | Googlemaps | Languages
Multi-language possibilities of PPG 11
    With the multi-language version it is possible to provide the gallery for up to four languages. It would be also possible to provide more than 4 languages.

Up to now it is only working with MySQL database. The text-database version will follow later, also a Virtual Database version limited in the functionality .

The functional elements of the gallery are translated on the basis of language-files. Up to now there are German, English, Italian and Spanish language-files. Other languages will follow, besides, I depend on cooperation. It would be interesting to add French, Dutch and Danish.

The names of the panoramas and regions and also the texts to the panoramas and regions can be inserted in the database in several languages.

When the user call index.php or the pure Domain "/" an examination of the browser-language takes place. If this language is offered, the user is passed to the appropriate language version.
The language files and the flag-gifs are situated in the folder "inc/lang/".

Thanks to Coke for the english, Thomas Krüger und his wife for the italian und spanish translations of the language-file,
Xavier Spertini for french .
I myself bear the blame for the very bad translation of the documentation you are reading.
Language file In the language files some entries should be edited to your needs. Thus the used character set (charset), the date format, a language can be entered to Google Maps, the name of your gallery should be entered.

Umlauts and special characters can be mapped (ä => ae etc.). The abbreviation with two letters (de, en, it, es) serves for the detection of the data bank fields belonging to the language.
The head of the file "Deutsch.php"
Konfiguration The languages can be determined in the module 01. The entered names must correspond to the name of the language file and the flag file in the folder inc/lang.

Set the basic language of the gallery, which determins the structure of the database with regions and subregions. This must not be German. The links and URLs are generated in this language.

Of course it is possible to enter only two languages. Just leave the other language-entries in config-module 01 empty.
Settings in module 01-config.inc.php
t
Table "daten" The MySQL data ase is extended compared with the "normal" version.

In the table "daten" as well as in the table "region" translation fields can be defined.

There is a SQL file daten.sql In the folder "auxiliary files". This file generates both necessary tables "region" and "daten" for the demo panorama with the appropriate fields for the languages German, English, Italian and Spanish. Use PHPMyAdmin to enter this sql-file to your database and edit the field-names to your needs

The content of the field "Name" with the panoramic name must be entered in the basic language of the gallery. If the other language name fields are empty, this field "Name" is also presented in these languages.

The type of the fields should correspond to the displayed screenshot. The order of the fiiels doesn´t matter. Change the leading language-abbreviations to your choosen languages.
Datum = date
Kurztext = short text
Langtext = long text
The table "daten" with German, English, Italian, Spanish.
Table "region" There is a SQL file daten.sql In the folder "auxiliary files". This file generates both necessary tables "region" and "daten" for the demo panorama with the appropriate fields for the languages German, English, Italian and Spanish. Use PHPMyAdmin to enter this sql-file to your database and edit the field-names to your needs

The content of the field "Name" with the panoramic name must be entered in the basic language of the gallery., also the field "Unterregions" (subregions).

If the other language name fields are empty, this field "Region" is also presented in these languages.

If you want the names of the subregions to get translated, the respective subregion must get it´s own entry. Otherwise the name entered in the field of the superior main region "Unterregions" is used.

The order of the fiiels doesn´t matter. Change the leading language-abbreviations to your choosen languages.
The table "region" with Deutsch, Englisch, Italienisch, Spanisch
Other language-related files The modules 31 Hometext, 32 Impressung and 34 overview texts are prepared for 4 languages (1-4). Change the text between the between the PHP-script separations. If e.g., only two languages are used, the last both blocks can remain empty.