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

WPML icl_register_string() throws fatal error but works [closed]

You should always use the wpml functions as following: (the HowTo linked by you actually suggests this 🙂 if( function_exists(‘icl_register_string’) ) { icl_register_string( ‘Match Previous Order’ , ‘match_order’, ‘Do you want these items to match a previous order from Direct Linen? If yes, use “Additional Notes” to explain.’ ); } This will ensure that you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)