• Resolved kingfelix23

    (@kingfelix23)


    There is an error in the swedish translation when the form is submitted.

    Text in green box is missing half a word. It says “Formul?ret framg?ngsrikt ins” but it should say”Formul?ret framg?ngsrikt inskickat”

    I changed it to the correct formulation in both the .mo and the .po file but it still shows the wrong text. Any ideas?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you’re using WordPress 4.6 or later, then translations are loaded from /wp-content/languages/plugins/, if present. And it just so happens that there was a language pack built for Swedish in August last year.
    Now the Swedish language pack is there, although the translation is now only at 5% since a lot of new strings have been added into the plugin. What’s weird, though, is that the translation of that string already looked good.
    You can look here: https://translate.www.ads-software.com/projects/wp-plugins/form-maker/
    I fixed a couple of other strings, so hopefully a new language pack should become available any minute. Check your updates’ screen.

    Now a quick message to the developer of this plugin.
    There’s a place in your code where you say this:
    alert("' . addslashes((__('The', WDFMInstance(self::PLUGIN)->prefix)) . $label . (__('value must be between', WDFMInstance(self::PLUGIN)->prefix)) . ($param['w_range_min'] ? $param['w_range_min'] : 0) . '-' . ($param['w_range_max'] ? $param['w_range_max'] : "any")) . '");
    Breaking out “The” in this way makes it impossible to translate this thing in a good way. Please use printf() and give a source string like this:
    “The value of %1$s must be between %2$s and %3$s.”

    /Tobi from the Swedish translation team

    Thread Starter kingfelix23

    (@kingfelix23)

    Perfekt, det f?rklarar saken. Tack f?r snabbt svar. Jag m?rkte det var en del andra konstiga ?vers?ttningar men de syns inte, utan det var just den d?r som stack ut.

    Thread Starter kingfelix23

    (@kingfelix23)

    Hej, jag bytte ?ven i den mappen och str?ngen blir fortfarande fel. Som du skriver s? ser den bra ut nu p? alla st?llen men blir fortfarande fel meddelande

    There may be some peculiarities around how Javascript handles strings and translations. Let’s hope the plugin developer may be able to chime in here.

    Plugin Support Zhanna Khachatryan

    (@zhannak)

    Hi @tobifjellner and @kingfelix23,

    Thanks for reporting the issue and commenting.

    We’ll solve the problem in our upcoming updates.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Language problems (swedish)’ is closed to new replies.