Translate custom template with WPML

To translate custom page templates you must select “Synchronize page template” in WPML options. For it to actually work the page template markup must be localized or internationalized using a recognized format, for example http://codex.wordpress.org/I18n_for_WordPress_Developers, and then have an accompanying .mo/.po file . WPML also has an addon called “String Translation module” which can scan … Read more

Problem with Language translation

You shouldn’t be editing the core translation files to translate a plug-in or theme. Here’s a (not so brief) run-down of how translations of plug-ins and themes work…. When a theme or plug-in wants to allow some text to be translated it wraps it inside a function like __(‘This text can be translated’,’my-theme-or-plugin’); Translation functions … Read more

qTranslate 2.5.28 and WordPress 3.3.1 issues [closed]

In /wp-content/plugins/qtranslate/qtranslate_wphacks.php, line 89, change this: // do some crazy js to alter the admin view $content .=”<script type=\”text/javascript\”>\n// <![CDATA[\n”; $content .=”function qtrans_editorInit1() {\n”; // include needed js functions $content .= $q_config[‘js’][‘qtrans_is_array’]; $content .= $q_config[‘js’][‘qtrans_xsplit’]; $content .= $q_config[‘js’][‘qtrans_split’]; $content .= $q_config[‘js’][‘qtrans_integrate’]; $content .= $q_config[‘js’][‘qtrans_use’]; $content .= $q_config[‘js’][‘qtrans_switch’]; $content .= $q_config[‘js’][‘qtrans_assign’]; $content .= $q_config[‘js’][‘qtrans_save’]; $content .= … Read more

How to install a translation for a WP plugin?

This Plugin uses load_plugin_textdomain(), which by default uses the Plugin’s root directory as the path for the translation files. So: simply add the translation files you downloaded to the Plugin root directory, and you should be good to go. Edit And you’re using WordPress in es_ES? No, I just want to translate that plugin. It … Read more

how to translate countries output from wp database?

you need to have the actual translations somewhere in a .mo file. for your plugin / theme. 1) when you setup the codes, you can also “mark them for translation” http://codex.wordpress.org/I18n_for_WordPress_Developers#Marking_Strings_for_Translation 2) create the translations for the languages somehow – various tools. eg this one: http://wordpress.org/extend/plugins/codestyling-localization/ 3) in your plugin must tell wp to load … Read more