karthick dev
asked 9 years ago

I have follow the translation guide , My site language is define in en_US , I would like to translate some of text in Danish , I have find those changes in po file in DWfocus/language directory , I had follow the instruction described here
http://www.designwall.com/guide/how-to-translate-wordpress-theme/ ,
After updating mo file translation is not working , Any idea , Am i need to change the admin language to danish for this .

1 Answers
DominicStaff
answered 9 years ago

Hi,
Have you tried select the language in the General settings.
See the screenshot: http://prntscr.com/81taz9
If it does not help, please let us know.
Regards,

karthickdev
replied 9 years ago

Yes but if i changes the lang to danish then my admin language will be changes to danish right , Is there any other way to make this translation works, thanks.

dominic Staff
replied 9 years ago

You can do the following:

  • Get the the language pack (e.g. de_DE.mo) from wordpress.org. If the language pack isn’t available as a standalone download, you could also use the .mo file which is bundled in the WordPress ZIP-file for your language. Located under wp-content/languages.
  • Move the .mo file to wp-content/languages/ of your default (english) WordPress installation.
  • Change the WPLANG constant in wp-config.php to the new locale (e.g. de_DE)
  • In your functions.php add the following filter:
    **functions.php***
add_filter('locale', 'wpse27056_setLocale');
function wpse27056_setLocale($locale) {
    if ( is_admin() ) {
        return 'en_US';
    }

    return $locale;
}

Or you can use plugins for that: http://wordpress.org/extend/plugins/kau-boys-backend-localization/
Hope this helps !

Powered by DW Question & Answer Pro