• Resolved elarson

    (@elarson)


    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/

    https://wordpress.org/plugins/jm-avail-booking/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    The integration with qTranslate-X seems feasible. To implement it in a way the data structure remains backward compatible with present installations will be a challenge. I need further investigation and I have put it on my todo list. No promise for an implementation soon.

    Regards,

    Jan

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    The translate of the room names for the frontend is added to version 1.6.0

    Regards,

    Jan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘qTranslate-X List of Rooms’ is closed to new replies.