• Hello.

    pll_register_string() is don’t working.
    push “Submit” but none saveing.

    Maybe, The long “string”, is bad.
    short “string” is no problem.

    Its code of functions.php:

    pll_register_string('footer_address', 'あいうえおかきくけこさしすせそ<br>〒000-000 東京都渋谷区渋谷一丁目1-1 (TEL) 00-0000-0000', 'Footer', true);

    Try it.

    How to do?

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey Sakadon,
    where are you using it? And where did you press “submit” ?
    You should be able to register it by putting into the functions.php of your theme

    Thread Starter sakadon

    (@sakadon)

    Hello, Razique.

    > where are you using it?

    pll_register_string() I wrote to mytheme dir functions.php
    Thereby, registered strings translation.

    > And where did you press “submit” ?

    It is cutdown, sorry.
    “Submit” is [Settings]->[Languages]->[Strings translation] “Save changes” button.

    Then, initialized translations…

    Plugin Author Chouby

    (@chouby)

    Hi!

    There should be no reachable limit for the size of the string. I tested your code and did not run into any issue. Maybe there is a problem with a specific character in a translation. Could you check?

    Thread Starter sakadon

    (@sakadon)

    Hello Chouby

    oh really?
    What to do check?

    Thread Starter sakadon

    (@sakadon)

    Maybe, max_post_size is a problem?
    But is maybe…

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

The topic ‘pll_register_string() do not work. if long string is bad?…’ is closed to new replies.