qTranslate-Team / qtranslate-x

Wordpress plugin: Adds user-friendly and database-friendly multilingual content management and translation support.
http://qtranslatexteam.wordpress.com/about/
GNU General Public License v3.0
206 stars 149 forks source link

Translating error message #227

Closed derekyws closed 9 years ago

derekyws commented 9 years ago

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

johnclause commented 9 years ago

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.