Viewing 4 replies - 1 through 4 (of 4 total)
  • Change Line 361 of ssquiz.php

    load_plugin_textdomain( 'ssquiz', false, plugins_url( 'ssquiz/lang' ) );

    to

    load_plugin_textdomain( 'ssquiz', false, dirname(plugin_basename( __FILE__ ) ) .'/lang');

    btw while the plugin works great, it needs some fixing in the localization. Some Fields Arent Translated but can be dirty hacked to make it work.

    by example in client-quiz, __(“Answered questions”) must be changed to __(“Answered questions”, ‘ssquiz’) in order to make it work

    Thread Starter fredericesp

    (@fredericesp)

    Hello kvanbiesen,

    this solve the problem, could you explain why ?

    thank you very much.

    Great plugin 😀

    well i’m pretty new @ wordpress(only start looking at it 1 week ago), so i’m still trying to figure everything out myself.

    i think, this is explanation..

    let say your site = http://somewpsite.com

    the plugins_url function gives the full path to the lang dir. so it will be the absolute path
    http://somewpsite.com/wp-content/plugins/ssquiz/lang/ssquiz-es_ES.mo wich it will look for.

    Most likely it wont be able to fetch this, well maybe it can, but it wont find the Po files.

    if you change it by my command, it will look in the folders using relative paths (relative from the folder its located..). and then it will know how to find every file.

    Btw a lot of __() need to be replaced, otherwise it will be partial your language, partial english..

    Other then that, Its an awesome plugin. easy, works fine (in english, multilang needed some fixing)

    Thread Starter fredericesp

    (@fredericesp)

    Yes, I change all __() in client-quiz.php and work properly.

    thank you again for your help and I think it help you to, like this you can update your plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Language Spanish not working’ is closed to new replies.