Title: Strings with variables?
Last modified: September 7, 2020

---

# Strings with variables?

 *  Resolved [Mateusz Zadorożny](https://wordpress.org/support/users/mateuszz/)
 * (@mateuszz)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/strings-with-variables/)
 * Hey,
 * I am trying to translate some strings from woocommerce – but I can’t translate
   string with variable:
 * `%d left in stock`
 * I set translation like:
 * `Only %d pcs. available`
 * But it does not seem to translate the string at all. Other strings like (can 
   be backordered) or Related products are translated fine.
    -  This topic was modified 5 years, 8 months ago by [Mateusz Zadorożny](https://wordpress.org/support/users/mateuszz/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [Mateusz Zadorożny](https://wordpress.org/support/users/mateuszz/)
 * (@mateuszz)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/strings-with-variables/#post-13371047)
 * **SOLVED**
 * `%s in stock` was the string to translate!
    -  This reply was modified 5 years, 8 months ago by [Mateusz Zadorożny](https://wordpress.org/support/users/mateuszz/).

Viewing 1 replies (of 1 total)

The topic ‘Strings with variables?’ is closed to new replies.

 * ![](https://ps.w.org/say-what/assets/icon-256x256.jpg?rev=970013)
 * [Say What?](https://wordpress.org/plugins/say-what/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/say-what/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/say-what/)
 * [Active Topics](https://wordpress.org/support/plugin/say-what/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/say-what/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/say-what/reviews/)

## Tags

 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 1 reply
 * 1 participant
 * Last reply from: [Mateusz Zadorożny](https://wordpress.org/support/users/mateuszz/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/strings-with-variables/#post-13371047)
 * Status: resolved