New answers tagged localization
No you can't this way. See documentation : $echo = text_function(); printf( __( 'My string is %s', 'my-text-domain' ), $echo );
I managed to make it work: In wpconfig.php file I set define('DB_COLLATE', 'utf8_croatian_ci'); Do an SQL query on database in PhpMyadmin with: ALTER TABLE wp_posts CONVERT TO CHARACTER SET utf8 COLLATE utf8_croatian_ci I tried setting with utf8_unicode_ci first, sorting was slightly better but not quite accurate.
If Wordpress is installed in your language, that shouldn't be a problem. You are missing the order parameter: $args = array( 'category_name' => $slug, 'paged' => get_query_var('paged'), 'posts_per_page' => 20, 'orderby' => 'title', 'order' => 'ASC' ); $query = new ...
You can do this with the WordPress tools, without POEdit. First, do an svn checkout of http://develop.svn.wordpress.org/trunk/: svn co http://develop.svn.wordpress.org/trunk/ wpdev Then, switch to the i18n tools directory in it: cd wpdev/tools/i18n/ Then just run the makepot.php over your theme's directory: php makepot.php wp-theme /path/to/your/theme ...
Here is how you can create a .pot file for your theme with Poedit (free edition, version 1.6.10) on OS X. Best practise is to save language files in a folder named "languages" in your theme directory. If you haven't already, create it before you start. In Poedit: In the "File" menu select "New" Select the language that you used in your theme (probably ...
Top 50 recent answers are included