• Resolved stavroch

    (@stavroch)


    How can I create one string ex “Nothing Found” and that string to translate it in other languages?

    Also I would like to use this string in php file.

    How can I do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try this

    Add this to function.php

    “pll_register_string(Nothing Found, Nothing Found);”
    (without a code).

    And go to language>String translations> edit/apply changes.

    Then do the echo

    echo pll__(‘Nothing Found’);

    Thread Starter stavroch

    (@stavroch)

    Thank you!

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

The topic ‘create string’ is closed to new replies.