Need help converting a plugin to use the getText syntax
-
Hi,
After looking hard I finally found a custom tabs plugin for woocommerce that allows more than just one tab, and it’s free.
The problem is that when you use non English characters is stops working, I found the solution (according to the author), the question has been asked in the comments area of the plugin so here is the conversation:
Question:
“Hi Sean,
Thank you for this handy plugin, is there a way to add support for non-English tab names, right now if you use non-English characters in the tab name, the tab won’t show up on the product page and the content on it will disappear from WYSIWYG editor? Also is there a way to set global tab that will be shown across all products i.e “Shipping and Handling”?
Thank you,
Dmitry”Answer:
“Thanks Dmitry, you would need to convert the plugin to use the getText syntax which allows for localisation of WordPress installs. It’s not that hard though.”I got directed here:
http://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/gettextBut still i don’t know how to implement this in to the code provided in pastebin.
An example of before of any code (without gettext function), and after(with get text function) would be very much appreciated, this way I could try to recreate it on the plugin.
But right now I’m lost.
I pasted the code from the plugin to pastebin:
http://pastebin.com/skrsfMDjThanks.
The topic ‘Need help converting a plugin to use the getText syntax’ is closed to new replies.