NeiL created a Spanish localization for the wp-andreas09 i10n theme.
Thank you very much!
You can download the language file at the theme page. Please follow the link above.
NeiL created a Spanish localization for the wp-andreas09 i10n theme.
Thank you very much!
You can download the language file at the theme page. Please follow the link above.
Dragomán György sent me a hungarian language file for the wp-andreas09 i10n theme.
Thank you very much!
You can download the language file at the theme page. Please follow the link above.
Ainslie Johnson hat gestern ein weiteres Theme für WordPress veröffentlicht. Das Theme WP-Andreas06 basiert auf einem Design von Andreas Viklund.

Unterstützte Sprachen: Deutsch, Englisch, Holländisch und Tschechisch.
Theme Seite: WP-Andreas06 WordPress Theme
Die deutsche Übersetzung stammt von mir. Bei Fragen dazu stehe ich gerne zur Verfügung.
To display a random image from my coppermine gallery inside my blog, I found Brad Guilford’s plugin CoppermineSC 0.4.3.
The installation was easy and everything seemed to be working.
But then I noticed that some thumbnails were broken. Although the link to the image was working.
I managed to track the error down to “special” characters in the filepath, like the german Umlaute (öäüß), which I used for the album and category names.
The fix was simple:
I replaced the original code in line 717
$uri = $config[0].$separatorslash.$config[1].$image->filepath;
with
$tmpfilepaths = explode("/", $image->filepath);
$cleanfilepaths = array();
foreach($tmpfilepaths as $val) {
$cleanfilepaths[] = rawurlencode($val);
}
$newfilepath = implode ("/", $cleanfilepaths);
$uri = $config[0].$separatorslash.$config[1].$newfilepath;
As you can see, it is a simple fix. Take the filepath, split it up. Encode each part and join the parts back together.
This patch is just working for the thumbnail display! There are more places like this inside the plugin-code.
But as I am lazy and only need a working thumbnail display, I didn’t do more changes to the code ![]()
Note: This is a translation of my post WordPress Themes lokalisieren. Thanks to Ainslie Johnson for reviewing my translation.
A few days ago the WP-Andreas09 theme for wordpress became available. This is based on a design by Andreas Viklund, Ainslie Johnson did a very good job of converting it for wordpress.
Unfortunately the language used inside the templates was English, as it is for most themes available. To make a translation you need to go through each template file, find the English words and translate one by one.
In wordpress itself, localization is done by .po/.mo files. Hence there are localization files for a number of languages already. All you have to do, is to copy this file to your directory, change a parameter and wordpress can speak a new language.
So, why not use this mechanism for themes? There are very few existing themes working this way. More precisely, I only know of two Giraffe and NIkynik Blue. Even then, I was unable to find detailed documentation on how these themes were built.
Theme localization is very easy to do, when you manage to understand how wordpress and gettext work together.
(weiterlesen…)
Nutzungsbedingungen | Datenschutzhinweis | Kontakt | Impressum
© 2009 Tim Zylinski | ZYUI Theme | Webhosting: Webfaction