Hello @maw-1,
You can edit the plugin, go in plugin->editor and select Book now.
Modify at line 86 $mytext = get_option('rg_book_text'); change $mytext = get_option('rg_book_text'); to $mytext = __('Your Button text', 'your-button-text');
then you can scan the plugin with WPML scanning function and translate the text in any language, here is a tutorial on how to scan plugins https://wpml.org/documentation/getting-started-guide/theme-localization/
[ Signature moderated ]
Thread Starter
Maw.
(@maw-1)
Hi Rian,
thank you I also thought about this, but when you will make an update this solution will be overwritten.
So thats not the perfect solution for me. Do you have a better idea?
Thank you,
Marc
Hello again @maw-1,
if you can wait a couple of days i’ll update and implement WPML in the plugin
[ Signature moderated ]
Thread Starter
Maw.
(@maw-1)
perfect – support, thank you 🙂
But also thanks to david – with this method it´s possible to translate the book now plugin also nowadays!
Best,
Marc
Hello @maw-1,
I’ve updated Book Now to support WPML, please update to latest version and test it, tell me if there’s any problem.
[ Signature moderated ]
Thread Starter
Maw.
(@maw-1)
I´ve updated your plugin and after this scanned your plugin in WPML string translation for strings but it still says 0 strings to translate…
Hello @maw-1,
try to update to this new version, it should work now.
regards
Thread Starter
Maw.
(@maw-1)
still 0 strings when i scan :/
what’s your WPML version? i’ve tried 3.8
you should see those strigs ‘admin_texts_rg_book_url rg_book_url’ and ‘admin_texts_rg_book_text rg_book_text’
Thread Starter
Maw.
(@maw-1)
okay now it works – I´ve also contacted the wpml developers.
They mentioned 2 things:
1) The first one is just a notice, the word ‘right’ should be surrounded by quotes.
This is in book-now.php in line 108 and it should look like this:
if($lor == ‘right’) {
2) The second one is replacing the use of _e() with __() in lines 85 and 86, like this:
$myurl = __(get_option(‘rg_book_url’), ‘your_url_booknow’);
$mytext = __(get_option(‘rg_book_text’), ‘your_text_booknow’);
With those 2 fixes the plugin works fine.
Nice, thank you for the tips,
i’ve updated with the fixes
Regards