I'm new to serendipity and fiddled with it about the last three days. Since I want to use s9y as both a blog system and a gallery, I experimented with several ways to add a photo gallery (Gallery2/Coppermine/serendipity_event_usergallery) and read some posts about it.
Although the serendipity_event_usergallery plugin is not the "state-of-the-art" way to include photos (no comment or rating functions etc...), it is very simple to handle. So I decided to use this for the first time.
This was the chance for me to fully translate the language file lang_de.inc.php into German, because it was only partly translated before.
Now I wanted to make my work available to the s9y community, so please tell me what to do
But before that I've to mention some notes about my changes:
1.
In the template file plugin_usergallery.tpl there were some words like "images", "Page", "of", "totaling" in English plain text. So I added the following lines to the language file(s):
Code: Select all
//Several consants used in the template (in German, for example)
@define('PLUGIN_EVENT_USERGALLERY_TPL_IMAGES', 'Bilder');
@define('PLUGIN_EVENT_USERGALLERY_TPL_TOTALING', 'insgesamt');
@define('PLUGIN_EVENT_USERGALLERY_TPL_OF', 'von');
@define('PLUGIN_EVENT_USERGALLERY_TPL_PAGE', 'Seite');
2. In the template file I now consider the singular/plural forms of "image". So if a directory has exactly one image, it will output "image" (or "Bild"), else "images" (or "Bilder"). This means there are changes to the .tpl file, too.
3. What about the other existing language files (Japanese and Turkish)? There I added my constants, but there should be someone who translates them
Regards,
dietmar