• Resolved lalalapo

    (@lalalapo)


    Hi,

    first of all I want to wish you merry Christmas.

    I have two points: Within my installation the Show past events / Hide past events links are not translated, although all strings are translated. I don’t know why. Can you help me?

    The Show past events / Hide past events are useful in the actual month. But these links are also displayed if I switch to the next month. This not so useful because in this case there are no past events (all events are upcoming). In my option it would be good to have these links only in the actual month.

    Best regards

    lalalapo

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter lalalapo

    (@lalalapo)

    I fixed the first point myself by updating the language files

    /wp-content/languages/plugins/r34ics-de_DE.po and
    /wp-content/languages/plugins/r34ics-de_DE.mo

    Perhabs you can fix the secound point:)

    • This reply was modified 4 years, 2 months ago by lalalapo.
    Plugin Author room34

    (@room34)

    Can you share your translations for those two phrases? I’ve been using machine translations and for some reason Poedit has failed to translate those two phrases in German.

    Good point on the second item… I’ll work on fixing that.

    Thank you and Merry Christmas as well!

    Thread Starter lalalapo

    (@lalalapo)

    Hide past events -> Vergangene Termine ausblenden
    Show past events -> Vergangene Termine anzeigen

    In my own translation I added an “also”:

    So I use the string “Auch vergangene Termine anzeigen” wich would be in English then “Also show past events”

    Plugin Author room34

    (@room34)

    Hmm… it turns out I was mistaken about those translations being missing. I checked the .po files and I have these translations in place:

    Vergangene Ereignisse ausblenden
    Vergangene Ereignisse anzeigen

    Obviously these are slightly different and since I don’t speak German, I’d be happy to replace my machine translations with yours.

    Digging in a bit more, I think I’ve found a problem with the JavaScript localization that is causing these phrases not to be translated. I’m working on a fix now.

    • This reply was modified 4 years, 2 months ago by room34.
    Plugin Author room34

    (@room34)

    OK, I think I’ve found the problem… partially. There are five variants of German in the language options in WordPress:

    Deutsch
    Deutsch (Sie)
    Deutsch (Schweiz)
    Deutsch (Schweiz, Du)
    Deutsch (?sterreich)

    I assume the first is for Germany; I know Schweiz is Switzerland and ?sterreich is Austria. I do not know the distinctions for “(Sie)” and “(Schweiz, Du)”.

    I have three translation files in the plugin, for the codes de_DE, de_CH and de_AT, for Germany, Switzerland and Austria. I do not have translation files for “(Sie)” and “(Schweiz, Du)”.

    I found that if I set my site’s language to “Deutsch”, “Deutsch (Schweiz)” or “Deutsch (?sterreich)” these phrases get translated, but if I set it to “Deutsch (Sie)” or “Deutsch (Schweiz, Du)”, they do not.

    I will do a bit of my own research to better understand these distinctions and try to accommodate them in the plugin, but I appreciate any additional help you can offer!

    Plugin Author room34

    (@room34)

    OK, I believe I have this sorted out now. I assume you are either using “Deutsch (Sie)” or “Deutsch (Schweiz, Du)”, in which case my translation files weren’t being loaded at all. (Month and day names are not part of the plugin’s translations because they are built into WordPress itself.)

    A new version of the plugin will be available shortly that adds these two new translation files for “Deutsch (Sie)” (German, Germany, formal) and “Deutsch (Schweiz, Du)” (German, Switzerland, informal).

    One note: I checked my machine translations again and also looked them up in Google Translate, and it appears that “Termine” translates to “appointments” whereas “Ereignisse” translates to “events”. Is that correct? In particular uses it may be preferable to say “appointments” but for the general purposes of this plugin I think the broader “events” is the word I prefer to use.

    Thanks!

    Thread Starter lalalapo

    (@lalalapo)

    One note: I checked my machine translations again and also looked them up in Google Translate, and it appears that “Termine” translates to “appointments” whereas “Ereignisse” translates to “events”. Is that correct? In particular uses it may be preferable to say “appointments” but for the general purposes of this plugin I think the broader “events” is the word I prefer to use.

    This is correct. In my case I prefer the word appointent, but event is also possible.

    To the translations files:

    wp-content/plugins/ics-calendar/i18n/languages/r34ics-de_DE.po and
    wp-content/plugins/ics-calendar/i18n/languages/r34ics-de_DE.mo are translated.

    But in my installation, I had also the following files which were used:
    /wp-content/languages/plugins/r34ics-de_DE.po and
    /wp-content/languages/plugins/r34ics-de_DE.mo

    I deleted this last two files and then the correct translation files are used.

    I don’t know why I had these last tow translation files. The loco-translate plugin wich I use also changes the first two files.

    Difference between “Deutsch (Sie)” und “Deutsch” is that Deutsch (Sie) is used in a more formal context, “Deutsch” is not formal, there the “Du” form is used. This is a differentiation in German. This is important if you directly adress the visitor (formal or not formal).

    • This reply was modified 4 years, 2 months ago by lalalapo.
    Thread Starter lalalapo

    (@lalalapo)

    The Show past events / Hide past events are useful in the actual month. But these links are also displayed if I switch to the next month. This not so useful because in this case there are no past events (all events are upcoming). In my option it would be good to have these links only in the actual month.

    Thanks for fixing this pont:).

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Show past events / Hide past events’ is closed to new replies.