Title: create string
Last modified: August 10, 2017

---

# create string

 *  Resolved [stavroch](https://wordpress.org/support/users/stavroch/)
 * (@stavroch)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/create-string/)
 * 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)

 *  [itbutler](https://wordpress.org/support/users/itbutler/)
 * (@itbutler)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/create-string/#post-9398550)
 * 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](https://wordpress.org/support/users/stavroch/)
 * (@stavroch)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/create-string/#post-9398621)
 * Thank you!

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

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

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [stavroch](https://wordpress.org/support/users/stavroch/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/create-string/#post-9398621)
 * Status: resolved