Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brady Vercher

    (@bradyvercher)

    Hi katazina,

    Thanks for letting me know about the issue. I’ve updated the code on GitHub. Let me know if this looks like it’ll help and I can release it here as well.

    Cheers,
    Brady

    Thread Starter katazina

    (@katazina)

    Hi,

    modify the load_textdomain line to this:
    load_textdomain( ‘simple-image-widget’, WP_LANG_DIR . ‘/simple-image-widget/simple-image-widget-‘ . $locale . ‘.mo’ );

    I don’t know why, but it needs the plugin name and the “-“
    If it is in, then it will be working.

    Plugin Author Brady Vercher

    (@bradyvercher)

    If you’re using the version from GitHub, just change the name of your translation file to remove the plugin name and dash and everything will work.

    While testing, I realized that the widget was loading before the text domain, so the name and description weren’t being filtered. The latest update fixes that issue as well.

    – Brady

    Thread Starter katazina

    (@katazina)

    Sorry for the late answer, it’s ok ?? Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't add new translation’ is closed to new replies.