• Resolved spaniole

    (@spaniole)


    Where to change the month name in “Answer before 11. June…” (example) at the Bonus questions section, need to be in another language, please. I can see in some earlier versions of Football Pool, it was like 2018-06-11.

    After every update of Football Pool, I have to hardcode translate the following text (can see in the PO file for my language (Danish), it’s all okay, but the translations are not displayed at all, can’t figure out why).
    ../football-pool/pages/class-football-pool-pool-page.php
    You have to be a registered user and logged in to play in this pool.

    ../football-pool/widgets/widget-football-pool-shoutbox.php
    save

    ../football-pool/pages/class-football-pool-statistics-page.php
    You can select other users in the chart settings.
    No users selected
    The top 5 players are shown below

    ../football-pool/classes/class-football-pool-matches.php
    Match statistics

    ../football-pool/pages/class-football-pool-statistics-page.php
    No settings available

    Thanks for a great plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AntoineH

    (@antoineh)

    Where to change the month name in “Answer before 11. June…” (example) at the Bonus questions section, need to be in another language, please. I can see in some earlier versions of Football Pool, it was like 2018-06-11.

    I changed this code to follow the date and time settings of WordPress. But for the frontend of your site, you can override this date format with a constant in wp-config.php, e.g.:
    define( 'FOOTBALLPOOL_QUESTIONDATETIME_FORMAT', 'Y-m-d' );

    After every update of Football Pool, I have to hardcode translate the following text (can see in the PO file for my language (Danish), it’s all okay, but the translations are not displayed at all, can’t figure out why).
    ../football-pool/pages/class-football-pool-pool-page.php
    You have to be a registered user and logged in to play in this pool.

    Do you also create a new compiled translation (mo-file)?

    p.s. It is best that you do not change the files in the plugin directory, these get overwritten on every update of the plugin by WP. So, if you want to keep your own translations, store your files in a sub-folder of the general languages folder of WP. Path in standard installs: /wp-content/languages/football-pool/

    If your files are stored there, they don’t get overwritten. And these translations get preference over the translations in the plugin folder.

    p.s.2. If you think that your translations are better or more complete, I can also include yours in the plugin install. Or I can ask the translation team to make you plugin translation editor.

    Thread Starter spaniole

    (@spaniole)

    Thanks for the date format.

    New MO file has been compiled, no change, still miss the translations as described.
    I’m aware of that the files been overwrited at update, but for full translation in danish, I have to hardcode some translation – but that’s okay, their not so many entries to change. The Football Pool’s da_DK PO file appears to be sufficient, but nevertheless, the translations is not displayed 100%, strange!

    Plugin Author AntoineH

    (@antoineh)

    I just changed my install to Dansk to see what happens and I indeed noticed that the shoutbox widget save button was not translated. When I opened the translation file I saw that this translation was labelled as “needs work” (“fuzzy” in older versions of Poedit). When I made this translation final and saved to a mo-file, the correct translation was shown on the button. Maybe you can check this for the other translations?

    Thread Starter spaniole

    (@spaniole)

    I’ll check it out, thanks for helping.
    My da_DK PO & MO files I do use, can be seeing here -> https://www.dropbox.com/s/za7tp8zaw2827jl/football-pool-da_DK.zip?dl=0 – and I think the aforementioned texts, has been full translated, but do not being displayed as expected.

    Plugin Author AntoineH

    (@antoineh)

    What also may help, is to update the po catalogue from the pot file before you translate. I updated your po file and uploaded it to my dropbox.

    Thread Starter spaniole

    (@spaniole)

    Thumbs up – I’ll be testing it at the next update of Football Pool. Thank you so much.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Translation’ is closed to new replies.