• Hello, there is a tiny bug regarding the translation of particular string: “Next quote”.

    Since you have

    $quotescollection_next_quote = __(‘Next quote’, ‘quotes-collection’).’ »’;

    at the very top of your plugin, you call the __ function before the init hook is actually invoked. Therefore, at that point the dictionaries haven’t been loaded yet, and the string “Next quote” doesn’t get translated.

    To fix it, I changed the line above to a simple

    $quotescollection_next_quote = NULL;

    Then I added this

    global $quotescollection_next_quote;
    $quotescollection_next_quote = __(‘Next quote’, ‘quotes-collection’).’ »’;

    right after

    load_plugin_textdomain(‘quotes-collection’, ‘wp-content/plugins/quotes-collection/languages/’);

    I should have probably filed a bug somewhere and proposed a decent patch, but I am in kinda rush 🙂

    Cheers,

    Vincenzo

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Quotes Collection] [Bug] "Next quote" never translated’ is closed to new replies.