• Resolved qwertysimo

    (@qwertysimo)


    Hi, I have finished Slovak translation but there is a problem. Some strings remain in English on live site although they are translated in po/mo file. To be specific, these remain in English:

    – plugin description
    – descriptions of both widgets
    – substituted {ACTION} in notification email

    I tried reactivate the plugin but no help. Any idea what to try? Thanks.

    http://ww.wp.xz.cn/extend/plugins/subscribe2/

Viewing 15 replies - 1 through 15 (of 37 total)
  • @qwertysimo,

    If you have translated these strings but they remain in English it may be a browser or server caching issue, try a force page reload in your browser or a different browser. Other than that maybe wait 24 hours.

    Thread Starter qwertysimo

    (@qwertysimo)

    I tried to clean browser cache (no caching on server) and other browser as well before I posted. Did not work.

    When I change a string that displays correctly translated and refresh page in browser, this change shows up. I do not think this issue is related to caching.

    Any other tips to try? Thanks.

    @qwertysimo,

    What version of Subscribe2 are you using?

    Thread Starter qwertysimo

    (@qwertysimo)

    Subscribe2 8.9.1 with WordPress 3.5.1 (Slovak version) – today I tried to install original English package for WordPress, with new database schema and tables, but still no progress.

    If you want you can access my PC to see the issue yourself.

    Thread Starter qwertysimo

    (@qwertysimo)

    If I manualy edit file subscribe2.php and change line
    Description: Notifies an email list when new entries are posted.
    my update shows up in browser after refreshing a page.

    What to do to make system to pickup a message from .po/.mo?

    #. Description of the plugin/theme
    msgid "Notifies an email list when new entries are posted."
    msgstr "Pri zverejnení nového obsahu pošle notifikáciu na e-mailové adresy."

    @qwertysimo,

    In the wp-config.php file of your WordPress install do you have a WP_LANG defined as the Slovak language code?

    Where have you put the Subscribe2 translation file you have created?

    Thread Starter qwertysimo

    (@qwertysimo)

    wp-config.php:
    define (‘WPLANG’, ‘sk_SK’);

    Translation is placed here:
    wp-content\plugins\subscribe2\subscribe2-sk_SK.po
    wp-content\plugins\subscribe2\subscribe2-sk_SK.mo

    As I wrote, this issue is related only to few messages; other messages show up translated as expected.

    What else to try?

    @qwertysimo,

    That’s very strange, you are doing everything right. I’m not at a computer at the moment where I can do much more but if you can share you *.po and *.mo files with me I’ll see if I can recreate this issue later today.

    To share the files open a ticket here:
    http://plugins.trac.ww.wp.xz.cn/

    Make sure to mark the ‘component’ as ‘subscribe2’ and then attach the 2 files.

    Thread Starter qwertysimo

    (@qwertysimo)

    Ticket #1688 created with both files attached. See you later. Thanks.

    @qwertysimo,

    Thanks for the files, I haven’t had a chance to check anything yet but just a thought of something to try.

    In the wp-content/plugins/subscribe2/classes folder you’ll find a file called class-s2-core.php, edit that and find these 2 lines:

    add_action('init', array(&$this, 'load_translations'), 5);
    add_action('init', array(&$this, 'load_strings'));

    And comment them out by putting // at the start of the line.

    Then in the __construct() function a little further down add these two lines:

    $this->load_translations();
    $this->load_strings();

    Does that help?

    Thread Starter qwertysimo

    (@qwertysimo)

    No, it did not help.

    @qwertysimo,

    Okay, I have installed your translation files on my test setup at home and the {ACTION} substitution works for me as do the Widget translations.

    The plugin description doesn’t work but that’s because I have missed some information from the plugin header that I’ll need to read up about and fix.

    @qwertysimo,

    Update, I’ve got the plugin header translation working, you need to add this line to the plugin header in the Subscribe2.php file:

    Text Domain: subscribe2

    You may also need this line if you store the translation files in a subfolder (in this case called languages)

    Domain Path: /languages/

    Thread Starter qwertysimo

    (@qwertysimo)

    Hi again,

    I can confirm: adding “text domain” works – plugin description shows localized. Thanks.

    Other thing, probably similiar issue. Can you check the Widgets page? Descriptions “Subscriber Counter widget for Subscribe2” and “Sidebar Widget for Subscribe2” stay in English.

    I will recheck {ACTION} behaviour in the morning.

    Thread Starter qwertysimo

    (@qwertysimo)

    This is related to widget issue:
    When you add widget to sidebar, text “You may manage your subscription options from your” stays in English as well.

Viewing 15 replies - 1 through 15 (of 37 total)

The topic ‘[Plugin: Subscribe2] Localization problems’ is closed to new replies.