Title: Custom strings
Last modified: July 11, 2024

---

# Custom strings

 *  [kiskitrains](https://wordpress.org/support/users/kiskitrains/)
 * (@kiskitrains)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-strings-2/)
 * Hi all, would it be possibe to add another string “Delivery date” to string for
   translation? Or is it possible to add it locally? I can modify my own template
   with adding my own string, but this way it won´t be translated.
 * Perhaps in the next version??
 * Kiski

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

 *  Plugin Contributor [dwpriv](https://wordpress.org/support/users/dwpriv/)
 * (@dwpriv)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-strings-2/#post-17884159)
 * Are you using a translation plugin like LocoTranslate to do the translations?
 *  Thread Starter [kiskitrains](https://wordpress.org/support/users/kiskitrains/)
 * (@kiskitrains)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-strings-2/#post-17884318)
 * Currently I´m not doing any custom translations. It´s just that my country request
   a delivery date to be on invoices, and while I can create my own template and
   add it to the invoice, it will still be in my own language. And because I also
   have clients from other countries, they will get the invoice in english language.
   With custom invoice this particular sentence would be in my native language, 
   while the rest of invoice would be in english. That´s not good.
 *  Plugin Contributor [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * (@dpeyou)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/custom-strings-2/#post-17891307)
 * Hey [@kiskitrains](https://wordpress.org/support/users/kiskitrains/),
   **The Dirty
   Way:**If you are adding the text to be translated via a custom template or code
   snippet, to make it translatable, you need to use [gettext hooks](https://developer.wordpress.org/reference/hooks/gettext/).
   These will allow setting the translation per language, using the $domain variable.**
   The Cleaner Way:**In order to have multilingual documents where you can also 
   translate added text like in your case – via a process called ‘String Translation’–
   you need to use a multilingual plugin like [Polylang](https://wordpress.org/plugins/polylang/).
   [Multilingual Documents with Polylang – Custom Block Translation – WP Overnight Documentation](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/using-polylang-to-generate-multilingual-pdf-documents/#custom-block-translation)
   This itself requires access to the [Professional extension](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-professional/)
   of our plugin to guarantee support. Support for paid software is banned in these
   forums so please email us at [support@wpovernight.com](https://wordpress.org/support/topic/custom-strings-2/support@wpovernight.com?output_format=md)
   for more info regarding this paid software. 🙂

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

The topic ‘Custom strings’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/custom-strings-2/#post-17891307)
 * Status: not resolved