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.
Download
Download Simplish version 2.1.7 here, or see it soon in the WordPress themes directory.
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 languages subdirectory.
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,
prevnextnav.php. - Delete the
sp_vallery()function & don't filter WP core's gallery shortcode. - Wrap user-visible strings with gettext
_e()and__()macros. - 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. - Add
languages/subdirectory and code to get locale files from there. - Generate gettext
.pottranslatable strings template. - Add
el.^(po mo)localization files for Greek locale. Thanks Demetris at op111.net.
Congratulations! or: Συγχαρητήρια!
There is something I’ve already said to Josh, and I’ll say it here too for people thinking about translating Simplish:
Thanks to the brevity and simplicity of its strings, Simplish is *very* easy to translate, and even easier by using the “Translation Memory” of poEdit. (Maybe I’ll write a quick howto on poEdit and the Translation Memory — it’s a great time-saver.)
And, if I may, there is a typo in the announcement: warmly rec*ie*ved — :-)
Hi!
I am currently translating this theme to swedish beacause I love it so much. I dont seem to find the tag for the “submit” button down below. Is it a bug or am I just out of date?
Really glad you like the theme! (Jeffrey Hardy designed the “looks”, so credit belongs to him).
You have discovered a bug – I missed the “Submit” button and did not enable it for translation. There is another missed string in
comments.phpthat needs to be added to the translation template, as well.I will fix these items and provide a new
.pottemplate inside a “2.1.8RC” Simplish shortly.Thanks for the report, and for working on a Swedish translation!