qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
553 stars 105 forks source link

Translating error message #227

Closed herrvigg closed 6 years ago

herrvigg commented 6 years ago

Issue by derekyws Monday Aug 24, 2015 at 09:40 GMT Originally opened as https://github.com/qTranslate-Team/qtranslate-x/issues/227


I am using Avada with qtranslate X and WooCommerce for my estore. Because my store only allow customers to purchase 1 item at a time I inserted some lines in Avada's Theme.php to put on that restriction. I manage to translate all my strings into multiple languages but I can't find a method to translate the error messages such as "Whoa hold up. You can only have 1 item in your cart" Do I have to modify a PO file or are there different methods to translate these lines? Thanks

herrvigg commented 6 years ago

Comment by johnclause Sunday Oct 11, 2015 at 06:22 GMT


po file is the easiest, or you can insert lines like __('[:en]EN[:de]DE[:]')

I am closing this issue for now to save the future clicks, we can still write into a closed issue, or we can re-open it, if needed.