Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore Tweaks

Multilanguage support

(22 posts) (5 voices)
  • Started 7 months ago by 12345678.it
  • Latest reply from akaigotchi
  • Possible Solutions (Related Topics):
    1. Lightbox Special Shortcodes not supported anymore
    2. wp affiliate track support ATM?
    3. Lightbox Ultimate - JW player support
    4. OpenTrans support plugin
    5. Support?

Tags:

  • invoice
  • Language
  • Languages
  • ml
  • multilanguage
  • multilingual
  • russian
  • Translation
  • wpml
123Next »
  1. 12345678.it
    Member

    Hi there, i've just bought store+member and i'm in testing phase ;-)
    Everything works correctly . Only design should be tuned up a little .

    The only one problem is that i cannot manage to make it work in multilanguage. I've read that i18n settings is usefull to use eStore with ML plugin . Currently i'm using qtranslate ... any suggestions ???

    Thank you

    Andrea Testa
    12345678.it webdesigner

    Posted 7 months ago #
  2. 12345678.it
    Member

    which are the supported ml plugins ???

    Posted 7 months ago #
  3. admin
    Key Master

    I can also make it so if the URL of the page has something like the following (qTranslate adds this) then eStore will load the corresponding language file regardless of what you have set in the settings:

    http://example.com/some-url/?lang=de

    Let me know if that will help and I will tell you what to do.

    Posted 7 months ago #
  4. 12345678.it
    Member

    yes qtranslate add ?lang=de and switch language .... you can give a look at italiabike.com and use user keymaster and password keymaster to give a look at my site .... this is the page i'm using to test the chart and languages

    http://italiabike.com/cms/?p=665&lang=it

    i need it in 3 different languages as you see from flags .... it pt en with en default
    q translate edit everything correcly but not eStore

    Posted 7 months ago #
  5. 12345678.it
    Member

    I've got different options for the url . Via permalink settings and qtranslate settings i can obtain http://italiabike.com/cms/it/category/senza-categoria/ but if it easier for you to fix it with ?lang=de link no problem

    Posted 7 months ago #
  6. 12345678.it
    Member

    i'm trying this solution

    //includes

    $lingua= qtrans_getLanguage();
    switch ($lingua) {
    case "en":
    $language_file = "languages/eng.php";;
    break;
    case "it":
    $language_file = "languages/ita.php";;
    break;
    case "pt":
    $language_file = "languages/eng.php";;
    break;
    }
    include_once($language_file);

    could this be the right way ???

    Posted 7 months ago #
  7. admin
    Key Master

    Try the following:

    1. Open the "wp_eStore1.php" file and find the following block of code:

    $cart_language = get_option('eStore_cart_language');
    if (!empty($cart_language))
    	$language_file = "languages/".$cart_language;
    else
    	$language_file = "languages/eng.php";
    include_once($language_file);

    2. Once you find it replace it with the following block of code:

    function wp_eStore_load_qTranslate_lang()
    {
        $cart_language = qtrans_getLanguage();
        switch ($cart_language)
        {
    	case "en":
    	        $language_file = "languages/eng.php";;
    	        break;
    	case "it":
    		$language_file = "languages/ita.php";;
    		break;
    	case "de":
    		$language_file = "languages/ger.php";;
    		break;
        }
        if(empty($language_file))
        {
    	$cart_language = get_option('eStore_cart_language');
    	if (!empty($cart_language)){
    		$language_file = "languages/".$cart_language;
    	}
    	else{
    		$language_file = "languages/eng.php";
    	}
        }
        include_once($language_file);
    }
    add_action('init', 'wp_eStore_load_qTranslate_lang');

    3. Now, when you select a language from the qTranslate widget eStore will load the corresponding language file specified inside the "switch" statement.

    Posted 7 months ago #
  8. 12345678.it
    Member

    at first sight is seems to be working like a charm ;-) i'll let you know asap mi final response ;-)

    Posted 7 months ago #
  9. ntarantino
    Member

    Will this work for the WPML plugin as well?

    Posted 6 months ago #
  10. garthwright
    Member

    Does anybody knows how do I add new language file for estore? I have already edited the file in wp-content/plugins/wp-cart-for-digital-products/languages/eng.php and created new one rus.php.
    I have changed all the sentences and words. But what do I do next?
    How do I make it work with qtranslate?
    What is the "switch" statement?

    thank you.

    Posted 6 months ago #

RSS feed for this topic

123Next »

Reply »

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin