qTranslate-X List of Rooms
-
I’m using qTranslate-X, which is working in most places, but not for the list of rooms.
In English I have: Room-1,Room-2,Room-3,Room-4 it works fine. If I use the qTranslate-X syntax the rooms do not appear in admin. Here is an example: [:en]Room-1[:fr]Chambre-1[:pt]Quarto-1[:],[:en]Room-2[:fr]Chambre-2[:pt]Quarto-12[:],[:en]Room-3[:fr]Chambre-3[:pt]Quarto-3[:],[:en]Room-4[:fr]Chambre-4[:pt]Quarto-4[:]
In another plugin I had to add a filter. Here is an example in case it helps:
add_filter(filter-name', 'custom_name', 10, 1); function custom_name($text) { global $q_config; //$q_config['language'] define your language if (!empty($text)) { if (function_exists('qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage')) { return qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage($text); } else { return $text; } } }
If you need more information about qTranslate-X, please see https://qtranslatexteam.wordpress.com/faq/ and https://qtranslatexteam.wordpress.com/integration/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘qTranslate-X List of Rooms’ is closed to new replies.