Author Topic: Multilingual: Variants label are not translated  (Read 761 times)

m.davide82

  • Jr. Member
  • **
  • Posts: 145
Multilingual: Variants label are not translated
« on: January 13, 2020, 16:44:30 pm »
Hello,

I created multilingual constant for each name of the variant and I inserted the translation in the override are, but this name isn't translated.
Screen in attachment.

Why? A big?


Thanks.
Davide

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2505
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Multilingual: Variants label are not translated
« Reply #1 on: January 13, 2020, 21:13:31 pm »
What VM version, PHP version, Joomla version ?
Using custom template ?
In what view ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

m.davide82

  • Jr. Member
  • **
  • Posts: 145
Re: Multilingual: Variants label are not translated
« Reply #2 on: January 14, 2020, 09:23:49 am »
Hi Jörgen,

Virtuemar 3.6.1
Php 7.2
Joomla 3.9.14
Product view
Template VP_Smart, but the problem persists with beez too.

Thanks a lot.
Davide

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4119
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Multilingual: Variants label are not translated
« Reply #3 on: January 14, 2020, 09:35:40 am »
Have you entered the translation using joomla or directly in the override file ?
If you do a syntax error in the file, nothing is translated.

m.davide82

  • Jr. Member
  • **
  • Posts: 145
Re: Multilingual: Variants label are not translated
« Reply #4 on: January 14, 2020, 11:05:23 am »
I created directly the file.
The other translations are working, only that ones of the custom fields not.

This is the syntax:
CAMPI_QUARTO_SPLIT="cuarto split"
CAMPI_TERZO_SPLIT="tercer split"
CAMPI_SECONDO_SPLIT="segundo split"


Thanks.
Davide

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4119
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Multilingual: Variants label are not translated
« Reply #5 on: January 14, 2020, 13:53:36 pm »
Try to use the Joomla extentions > language(s)> susbstitution to add the translation.
If should work here, if you selet the right language

m.davide82

  • Jr. Member
  • **
  • Posts: 145
Re: Multilingual: Variants label are not translated
« Reply #6 on: January 14, 2020, 17:18:40 pm »
Hi,

tested now, same problem.


Thanks,
Davide

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4119
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Multilingual: Variants label are not translated
« Reply #7 on: January 14, 2020, 17:48:35 pm »
Is this generic variant or multi-variant customfield type ?

m.davide82

  • Jr. Member
  • **
  • Posts: 145
Re: Multilingual: Variants label are not translated
« Reply #8 on: January 14, 2020, 17:53:54 pm »
They are simple "string".

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3570
  • using Matomo instead of Google Analytics
Re: Multilingual: Variants label are not translated
« Reply #9 on: January 14, 2020, 18:52:13 pm »
If it's a generic 'string' type variant, did you set it to 'Published' in the custom field list?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Ventsi Genchev

  • Jr. Member
  • **
  • Posts: 295
    • Audio Store
Re: Multilingual: Variants label are not translated
« Reply #10 on: January 15, 2020, 04:21:38 am »
Did you add the translation to both files? Overwriting Administration and Frontend?
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

m.davide82

  • Jr. Member
  • **
  • Posts: 145
Re: Multilingual: Variants label are not translated
« Reply #11 on: January 16, 2020, 10:31:33 am »
@jjk
Yes, it's published.


@Ventsi Genchev
Sure, I did it, but no results.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2505
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Multilingual: Variants label are not translated
« Reply #12 on: January 16, 2020, 11:45:51 am »
 ??? You have this in the language file:
Quote
CAMPI_QUARTO_SPLIT="cuarto split"
CAMPI_TERZO_SPLIT="tercer split"
CAMPI_SECONDO_SPLIT="segundo split"

But you miss these translations:
Quote
CAMPI_COLORE_DEL_MOBILE
CAMPI_COLONNA_140x35x20
Or am I missing something ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

m.davide82

  • Jr. Member
  • **
  • Posts: 145
Re: Multilingual: Variants label are not translated
« Reply #13 on: January 17, 2020, 17:08:35 pm »
Hi Jörgen,

no no, the translation are present, it was just an example...


Thanks.
Davide

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3570
  • using Matomo instead of Google Analytics
Re: Multilingual: Variants label are not translated
« Reply #14 on: January 17, 2020, 20:38:23 pm »
Did you enable and checked the output of Joomla 'Debug Language' already? If there is a parsing error in your language override file, it can stop loading before it reaches the custom variant labels.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations