Localize the gallery content ...
|Posted: Mon, 2003-08-18 05:09|
Having a localized version of the Gallery software is great ... but still, when you fill in the album names, photo title, description or custom fields for your gallery you are using a single language.
Therefore, say you are creating an album titled "Mes vacances au bord de la mer" (French), when an American guy visits your site, he still sees "Mes vacances au bord de la mer" (which probably means guiberish for him).
Hence a suggestion: let users enter titles and descriptions in multiple languages.
This could be easilly done using the existing data structure and a separator for the different languages, per example:
"Mes vacances au bord de la mer |en_US:My vacation by the sea".
Hence gallery would select "My vacation by the sea" if the interface language is 'en_US', and "Mes vacances au bord de la mer" otherwise (default language).
Simple it is ... and easilly implemented to with a 10 lines function and a few modifications in the albums.php, view_albums.php and view_photos.php scripts. Moreover, users do not have to change anything in their gallery data, just add translations as they have time to.
A demo is available at: http://art.baudard.net.
It lets you switch languages on the fly using the top-left flags, and you will see the gallery name, album names, photo titles and all custom atgtributes are translated on the fly (please be patient as I do translate all data ...).
You can get back to me if you are interested with the hack, I will send you detailled instructions.
Bharat, is this something you would consider for the next release (multi-language) of Gallery?