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: uppercase in 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
.pot translatable strings template.
- Add
el.^(po mo) localization files for Greek locale. Thanks Demetris at op111.net.
Simplish version 2.1.5
Simplish 2.1.5 spruces up support for WordPress version 2.7 features, and is only compatible with WordPress versions ≥ 2.7. The changes are focused on complete support for features, removing compatibility code for older WordPress versions, and fixing a few bugs.
post_class()everywhere but the page template</a>that slipped into the 2.1.4 release (validation)ol/ullielements (thanks Demetris @ op111.net)ol/ullielementsNOTICEnote.wp_logout_url()in sidebar logout linkget_search_form()ocomments.phpfile, and much compatibility code fromfunctions.php(removes support for wp < 2.7)wp_list_pages()calls with newwp_page_menu()to allow in-function “Home” linkDownload Simplish version 2.1.5 here, or see it soon in the WordPress themes directory.