serendipity_event_usergallery fully translated into German
Posted: Sat Aug 23, 2008 10:41 pm
Hi!
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
Who's responsible for the plugin; should I provide a link to the changed files...?
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):
Does this conform with the s9y coding rules? (I'm referring to the fact that I added constants and the names convention of these.) Another question is if some of these constants should better be placed in serendipity_lang_XX.inc.php, because maybe they could be needed in other plugins or the core itself. I also searched the serendipity language file for some existing constants I could use but found no @define I needed (except "@define('IMAGE', 'Bild')").
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
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