Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi vitaljik,

    I’m sorry but I may not be much help with this. I’ve done all the technical steps needed for the translation (as far as I can tell), but I’ve never had to translate a product before so I’m not sure about the final details.

    I believe the .mo files are supposed to go into the same /languages/ folder as the .pot file. But that’s all I know. Is your WordPress localized to es_ES as well?

    Thread Starter vitaljik

    (@vitaljik)

    My WordPress is es_ES localized. This is nice article explaining how and from where to load language files.

    In wp-content/languages/themes I have genesis-es_ES.mo and twentytwelve-es_ES.mo these are working and they correspond to their text domain.

    In wp-content/languages/plugins I have wmd_prettyplugins-es_ES.mo and wp_localseo-es_ES.mo and both of them are working nicely. However they are not named as their text domain “pretty-plugins” or “dh-local-seo“.

    I am far from being an expert but I think that plugin decides what filename he looks for for its language files.

    Food and Drink Menu defines its textdomain as fdmdomain and loads the textdomain from the languages folder in the plugin directory. So you’ll want to have your .mo file in wp-content/plugins/food-and-drink-menu/languages/, as far as I can tell.

    Looking at the article you posted, I use load_plugin_textdomain(), not load_textdomain(), if that helps you at all:

    load_plugin_textdomain( FDM_TEXTDOMAIN, false, plugin_basename( dirname( __FILE__ ) ) . "/languages" );

    Thread Starter vitaljik

    (@vitaljik)

    Ok, I changed the name to fdmdomain-es_ES.mo in
    wp-content/languages/plugins
    and it works brilliantly. thanks

    Thread Starter vitaljik

    (@vitaljik)

    After some looking around it doesnt translate in a few places Not a big deal, probably fix for the updates. Cheers

    Woops! Thanks for pointing that out. I’ve fixed it now and it will go out with the next update. If you want to make the change yourself, have a look at the changes in this commit.

    Thread Starter vitaljik

    (@vitaljik)

    Thanks mate. Excellent plugin and excellent support. Really looking forvard to your reservations plugin.

    Thread Starter vitaljik

    (@vitaljik)

    I updated, but that did not fixed it.

    Sorry, I meant that I released the reservations plugin that you mentioned in your last post. I still haven’t put out the version of Food and Drink Menu with the translation fix.

    Thread Starter vitaljik

    (@vitaljik)

    ahhh, ok. ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Translation .mo filename’ is closed to new replies.