Hello, World!, or καλημέρα κόσμε!
The latest work on Simplish tried to scratch out the last un-gettext’d strings in the theme and finally generate a localization template (
.pot file). The internationalization infrastructure is now in place, and Simplish is ready for translation into your language.
2.1.7 ships with a Greek (
el) localization provided by Demetris from op111.net. To activate a translated version of the theme, follow these instructions to set your
WPLANG and make WordPress run in your locale. If a
.mo file for the locale exists in the
simplish/languages subdirectory (true only for
el right now), the theme will load it.
Adding your own language to Simplish
To translate Simplish into your language, use the included
languages/simplish.pot template to generate a
.po file with the letter-encoding for your locale (e.g.,
fr_FR for the “French, France” locale). Then provide a translation for each string, saving the resulting
.po and .mo files in the theme's
You can place a pointer to your translated .po file in the comments for inclusion in future versions of Simplish, or send them or a pointer via email. Given demand, we'll add features to the git repo available at
git://labs.utopian.net/simplish to make for easier collaboration, but for now, git-format patches to add your translation will certainly be warmly received.
Farewell, valid Galleries
Unlike earlier versions, 2.1.7 uses the built-in WordPress gallery shortcode function instead of a custom version. This enables the settings for number of columns and other layout options that previously didn't work with the custom gallery implementation. Unfortunately, unlike the former
sp_vallery() function in Simplish, the core WordPress gallery does not emit valid XHTML.
We expect WordPress's gallery shortcode will be changed to create valid XHTML at some point. Until then, any page/post including an image gallery will be invalid markup, unless a plugin or other workaround is used. The Cleaner Gallery plugin by Justin Tadlock has worked well for us.
Changes in version 2.1.7
- Move most view-bottom prev/next navigation out to an included template,
- Delete the
sp_vallery()function & don't filter WP core's gallery shortcode.
- Wrap user-visible strings with gettext
- Change post byline to use a dash (
-) to avoid issue with context of "at" in multiple languages, in absence of support in themes for gettext "contexts".
- Stop using CSS
text-transform: uppercasein archive headings to avoid issue with accented characters in uppercase in many non-English languages.
languages/subdirectory and code to get locale files from there.
- Generate gettext
.pottranslatable strings template.
el.^(po mo)localization files for Greek locale. Thanks Demetris at op111.net.