Home › Forums › Welcome! › Pre-Sales Questions › Multilingual sites with wpglobus
- This topic has 3 replies, 1 voice, and was last updated 10 years, 10 months ago by
Brook.
-
AuthorPosts
-
July 19, 2015 at 10:08 am #987621
Tim
GuestHi,
I’m looking for an events plugin that works on multilingual sites. I see that TEC doesn’t currently work with WPML;
http://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/5449720-make-wpml-compatible-for-real-internationalization?page=1&per_page=20However, I’ve found it almost works perfectly with wpglobus. Page titles, content, venues etc. all work great with the language switcher. There is only one place I’ve found where it doesn’t work: the title of an event that is displayed under the calendar when a date is selected in the calendar in mobile view. Example here.
The expression ‘[[=title]]’ in mobile.php is producing the event title with the language switching tags intact.
E.g. “{:en}English Title{:}{:ja}日本語のタイトル{:}” instead of just “English Title” (when the language is set to English).
The [[=raw excerpt]] expression outputs correctly formatted text with the language switching tags, so I’m not sure why the [[=title]] expression doesn’t.
I’ve tried (with my very limited php ability) to manually remove the tags using get_string_between(), but nothing gets returned. Other methods I tried didn’t work earlier.
Is there a way to translate this title? I realise this issue may be too specific for a pre-sales question, so would I be likely to get help with it if I upgraded to pro?
TEC is easily the best wordpress events calendar I’ve tried out, so it would be a shame if this small problem meant I couldn’t use it.
Thanks in advance.
July 19, 2015 at 11:47 pm #987723Brook
ParticipantHowdy Tim,
I am happy to hear it is mostly working for you. Have you tried changing the global title constant? That might be a long shot, but worth it in any case.
If you need help figuring this out please open up a topic on WordPress.org: The Events Calendar where we and a community of volunteers support the free Core plugin. This particular forum is only for questions about our paid addons.
Cheers!
– Brook
July 21, 2015 at 9:04 am #988462Tim
GuestThanks for getting back to me so quickly Brook. I will definitely ask on WordPress.org for future issues.
It turned out I could solve this problem using Javascript Regular Expressions, so now I think I have the plugin fully working with wpglobus – sweet!
July 21, 2015 at 11:53 am #988544Brook
ParticipantThanks Tim! I am really happy you got it working. That’s great news.
If it seems to be working pretty well for you now, would you be interested in sharing your regular expression for any future viewers of the topic?
– Brook
-
AuthorPosts
- The topic ‘Multilingual sites with wpglobus’ is closed to new replies.
