• Hi,
    I’ve just uploaded expound theme which I really like, but I’ve got problem with “continue reading” on the front page – I’d like it to be in Polish. I don’t know any codes and I have no idea what to do with it;)

    Could anyone help me step by step? Can it be done simply somewhere in wordpress.com cockpit? I would be really grateful for any help! It can be useful for others that aren’t similar with programming too:)

    Thanks!

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

    you can first create a child theme of Expound, see how – http://codex.wordpress.org/Child_Themes

    After that upload featured-content.php to your child theme and find this code:

    <a class="button-primary" href="<?php the_permalink(); ?>"><?php _e( 'Continue reading &rarr;', 'expound' ); ?></a>

    It would be around line 24. Replace the “Continue reading” text with the Polish translation.

    A much better solution is this:
    Expound is ready for translation (at least in those parts that are visible to the public, including the button you´re asking about.)

    1. Download the program poedit.
    1b. … and read a bit more how to use it.
    2. Then find the catalog /languages/ under the theme and make a local copy of the file expound.pot
    3. Under preferences, instruct poedit to automatically save a mo-file whenever a po-file is saved.
    4. Now, in po-edit, create a new “Catalogue from POT file”.
    5. In the catalogue properties, indicate language as pl_PL
    save the file with the name pl_PL.po
    6. Plural settings: If Polish uses the same plurals as in Russian, then you should enter the following under plural forms:
    nplurals=3; plural=(n%10==1 && n%100!=11) ? 0 : ((n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20)) ? 1 : 2);
    This will create 3 forms of plural aware phrases:
    1, 21, 31, 41…
    2, 3, 4, 22, 23, 24, 32, 33…
    everything else (5-19, 25-30…)

    And now you can just make the translation and save it.
    For this to work, your wordpress installation needs to be instructed to use Polish. If you installed a Polish version from the start, then that is already done. Otherwise, you may need to edit one line in the file wp-config.php

    define ('WPLANG', 'pl_PL');

    Keep a copy of your translation. There´s a risk that it will disappear when the theme is updated (or if you need to reinstall the theme.)

    You may also want to share your work with others, by sending the po- and mo-files to the themes author, so that he can include Polish in the theme during next update. 🙂

    Thread Starter Juu_

    (@juu_)

    Thank you all for the suggestions, I’ll try to do it over the weekend!

    It seems that the plural rules for Polish are a bit simpler, than in Russian:
    nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);

    (This was according to http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html?id=l10n/pluralforms)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing the "continue reading" button on front page – step by step’ is closed to new replies.