• Resolved Micemade

    (@anydog)


    Hi ! Hope someone can help !
    I translated .po (and .mo) file in /lang folder of NextGEN plugin folder and it works locally, but it won’t work on hosting company server.
    I checked code with load_textdomain funcion and it should work –
    load_plugin_textdomain('nggallery', false, dirname( plugin_basename(__FILE__) ) . '/lang'); , but it doesn’t.

    Anyone ? Help ? :/
    Thanks,
    Alen

Viewing 1 replies (of 1 total)
  • Thread Starter Micemade

    (@anydog)

    oh, got it … for anyone as stupid as I am. You must have following suffix of .mo (and .po) file >> hr_HR.mo (or de_DE for german. etc….). So for example, in lang folder of NextGEN gallery there should be (for croatian and german) these files: nggallery-hr_HR.mo and nggallery-de_DE.mo
    Oh, yes, also, the wp-config.php file must have these languages set:

    define ('WPLANG', 'hr_HR');
    define ('WPLANG', 'de_DE');

    I had hr.mo instead hr_HR.mo on my local machine (WinXP/XAMPPP). The server is Linux so therefore it requires hr_HR (de_DE, en_EN etc…)

    Happy coding and WP-ing !
    Bye

Viewing 1 replies (of 1 total)
  • The topic ‘NextGEN Gallery lang problem’ is closed to new replies.