elvi992
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate X] Warnings in debug modeThanks! It was fast, the warnings are gone. ??
My pleasure!Forum: Plugins
In reply to: [Reusable Text Blocks] LocalizationHi,
It didn’t work for me the first time (1.4.7). I noticed that the line numbers were not correct in the .pot file. For example:
#: text-blocks.php:55 text-blocks.php:67
msgid “Text Blocks”should be:
#: text-blocks.php:62 text-blocks.php:74
msgid “Text Blocks”…according to the .php file. But it was not the problem.
Then I changed this line of code:
load_plugin_textdomain( ‘text_blocks’, false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages/’ );
to:
load_plugin_textdomain( ‘text-blocks’, false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages/’ );
(“text_blocks” to “text-blocks”) And renamed the
reusable-text-blocks.pot
file to
text-blocks.pot
And now it works! ??
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] mqTranslate URLsNo, sorry, I think I wasn’t clear enough, I meant the event URLs everywhere in the site, not only in the widgets. So I would like to pass all the event URLs through the mqTranslate plugin. Maybe in a similar way to the above mentioned few lines of the functions.php, but with the event URLs.
Now the URL of Event One is:
mysite.com/events/event-one
…regardless of which language is selected.
And I would like to achieve when the user views the site in French, the event URL becomes:
mysite.com/events/fr/event-one
Or viewing it in English:
mysite.com/events/en/event-one
(…and so on.)
That’s what mqTranslate should do, but I have no idea how to pass the event URLs through its filter. I think it should be something similar to the little code I quoted in my first post, but I have no idea beyond that.
Any suggestions?
Thanks for your time
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] mqTranslate URLsYes, I mean the links of the events in the widget, the calendar, the lists etc.
Thank you! How could I miss that…
Hi,
wow, thanks, nicograph77’s code is working fine.
My only problem is it doesn’t solve the URL processing, so it translates the titles, but the links don’t change when I change the language.
Could you help me with this, please?