• Resolved abledragon

    (@abledragon)


    Hi Guys,

    I’m a premium member, and I’m operating a multi-language site and having difficulty making the system generated labels switch languages – by system generated labels I’m referring to things like the sidebar menu labels.

    At the moment I have them in both English and Chinese, which looks pretty messy. Is there a way I can make them switch languages so that they are *either* English or Chinese, depending on the language selection..?

    The site in question is here: https://www.preowned.karlmayer.com/pre-owned-machinery/warp-knitting-machines/

    You’ll see that the menu items in the side bar are in both languages, whether I select the English or Chinese versions.

    I’m using WPML as my multi-language plugin.

    Many thanks!

    Martin.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter abledragon

    (@abledragon)

    Hi Guys,

    UPDATE…

    OK, I’ve installed the WPML String Translation addon and most of the strings I need to update have been done, but the tabs on the Product Description page will not translate, despite updating the string and confirming that ‘Translation is complete’.

    I remove the customised labels from the Options > Labelling screen, and followed the same process as for the other strings that have translated, but these ones will not translate.

    Also how do I translate the product category and sub-category names..? Do I need to create duplicated categories and subcategories and re-assign them on the Product Description pages..?

    Many thanks!

    Martin.

    jgcramer

    (@jgcramer)

    Hello Martin,

    How did you handle the product translation itself?

    etoilewebdesign

    (@etoilewebdesign)

    Hi Martin,

    We always suggest that you create separate catalogues, products, categories, custom fields, etc. for each language. That way you have full control of the naming of each of these and don’t have to rely on the language/translation plugin.

    For the labels, I just had a look in the code, and the default text for the product page tab labels (i.e. if you don’t put anything in “Options > Labelling”) isn’t actually localized/internationalized. This is likely why it isn’t being found by the WPML String Translation that you mentioned. I’ll make a note to get these strings switched over to being localized. Hopefully we can include it in a update in the near future.

    Thread Starter abledragon

    (@abledragon)

    Hi there,

    Many thanks..!

    It’s not just the labels on the product tab pages: in the ‘Additional Details’ tab the inner labels ‘Category’ and ‘Sub-category’ did not translate either, despite translations being added in WPML string translation.

    Cheers,

    Martin.

    Thread Starter abledragon

    (@abledragon)

    Hi jgcramer,

    The product translations were done by setting up separate catalogue pages in WP and separate product catalogues in UPC and then adding the short codes for the Chinese product catalogues to the new pages in WP. The products in the new categories in UPC are all in Chinese, but I didn’t add separate (Chinese language) product categories and sub-categories – this I still need to do.

    Then the Chinese language categories and sub cats are assigned to the Chinese language products in the Chinese language catalogues and the catalogue pages in WP are linked in WPML.

    Cheers,

    Martin.

    etoilewebdesign

    (@etoilewebdesign)

    You mention that the inner labels ‘Category’ and ‘Sub-category’ did not translate either, despite translations being added in WPML string translation. The thing with this is there are probably a lot of mentions of those words in our plugin. So the ones that WPML String Translation is currently finding are from somewhere else in the code and not from the Additional Information tab. I’ll add these to the others I mentioned.

    Thread Starter abledragon

    (@abledragon)

    That’s great – many thanks!

    Cheers,

    Martin.

    Thread Starter abledragon

    (@abledragon)

    Hi Guys,

    Another strange thing has cropped up: the string translations of the number of products out of number of products on the catalogue pages, and the ‘Details’ label at the bottom of each thumbnail, is inconsistent: on the first catalogue page the translations are fine when you first access it, but go to any other catalogue page and those items are not translated. But if you click into the product description for one of the products on that secondary catalogue page and then click the ‘back to catalogue’ link the translations are done (on the catalogue page).

    Here’s the English version of the first catalgoue page: https://www.preowned.karlmayer.com/pre-owned-machinery/warp-knitting-machines/

    Could you have a look at that..?

    Cheers,

    Martin.

    etoilewebdesign

    (@etoilewebdesign)

    Hi Martin,

    It looks like it could be an issue with your server and could be related to the permalink issue you experienced a while ago.

    The plugin calls the string translation function for the word “details”, which is only being loaded intermittently.

    Thread Starter abledragon

    (@abledragon)

    Hi there,

    Could caching be a possible cause..? The permalinks are still set at the option you recommended before…

    I’ve reduced the caching level on Sucuri Firewall to see if it helps

    Cheers,

    Martin.

    etoilewebdesign

    (@etoilewebdesign)

    Hi Martin,

    I’d doubt that it would be a caching issue if the first page is loading the correct text. Was it a caching issue last time with the URLs, when you said you’d check with the hosting company? What ended up being the reason behind the URL issue you were having (which was very similar to the problem you’re having now)?

    Thread Starter abledragon

    (@abledragon)

    Hi there,

    I never discovered the actual reason for the problem last time – on that occasion everything worked properly on my server (I had a copy of the client’s site on my server) but not on the client’s server. I persuaded the client to switch to my hosting which fixed the problem, but I don’t know what it was about the different server configs that made the difference (neither my nor the client’s hosting company were prepared to open their kimonos to that degree..!!).

    Yesterday I changed the caching level on the Sucuri WAF and it seemed to work OK, but I need to test over a longer period before confirming to the client it’s fixed.

    A frustrating little brain teaser..! If I discover the actual problem (as opposed to just changing caching levels or switching servers) I’ll update this ticket.

    Cheers,

    Martin.

    etoilewebdesign

    (@etoilewebdesign)

    Hi Martin,

    Thanks for following up and letting us know what you’ve done to try to resolve the issue (it’ll be a great help to our other users ?? ).

    Thread Starter abledragon

    (@abledragon)

    Hi there,

    Ok, got it fixed – it was a simple solution in the end and one I should have tumbled to earlier:

    In WPML on the ‘Theme and Plugin localisation’ page under the section ‘Select how to translate strings in the theme and plugins’ I had the first option selected (don’t download .mo files). I should have selected the second option (Translate the theme and plugins using WPML’s String Translation and load .mo files as backup).

    All fixed now – and many thanks for your patience..!

    Cheers,

    Martin.

    etoilewebdesign

    (@etoilewebdesign)

    Hi Martin,

    We’re glad to hear you were able to get that resolved. And thank you kindly for sharing the settings change you made in WPML. It will certainly be helpful should anyone encounter a similar issue.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Full Dual Language Functionality’ is closed to new replies.