Hello, all;
this feature already exists but not completely in 4images 1.7.4. Upload the language pack you need to use to your site.
Then type:
http://www.your_site.com/your_gallery/index.php.l=spanish to get the interface displayed in spanish, for example.
In addition, V@no (whoelse?) did a MOD to have any text with multilanguage support
here.
I have tested V@no's MOD here:
http://amissc.free.fr/test/ and got entire satisfaction.
But there are many files to modify. I moded them all (I suppose and hope I had not forgotten anything) and posted them in a ZIP archive
here for 4images 1.7.4 users.
Bonuses:You want to add your own text and have it multilingual compliant.
Lets say your text label is "Welcome" and its content is "Welcome to our site...Blah blah blah..."
- Open the file includes/page_header.php
Find:
"direction" => $lang['direction']
));
and replace by:
"direction" => $lang['direction'],
"lang_welcome" => $lang['welcome'], //we declare here the title
"lang_welcome_text" => $lang['welcome_text'] //here we declare the welcome text
));
You now have to insert the translation in each
lang/language/main.php file.
Find, in main.php:
//-----------------------------------------------------
//--- Paging ------------------------------------------
//-----------------------------------------------------
and add just before:
english example:
//-----------------------------------------------------
//--- Personnal texts ----------------------------------------
//-----------------------------------------------------
$lang['welcome'] = "Welcome";
$lang['welcome_text'] = "This is a welcome text";
french example:
//-----------------------------------------------------
//--- Textes persos ----------------------------------------
//-----------------------------------------------------
$lang['welcome'] = "Bienvenue";
$lang['welcome_text'] = "Ceci est un texte de bienvenue";
...and so on with the several languages you use.
You can now insert in your HTML template files the tags
{lang_welcome} and
{lang_welcome_text} where you want them to be displayed, and keeping multilanguage support.
You also want to have header images or banner images including text translated when people click on a language flag.
Edit your image in your favourite image editor, and (sorry), make every translation needed. For instance, if your image is called "whatamess.jpg", containing your site slogan, edit it and custom in each language you need to use.
If you custom it in spanish, save it as "whatamess.jpg" in your_template/images_spanish/ folder.
If you custom it in french, save it as "whatamess.jpg" in your_template/images_french/ folder.
Then, insert it in your HTML template fie code:
<img src="{template_lang_image_url}/whatamess.jpg" alt="" />
The script will scan every language_images folder and display it, if only you have made a localized image.