× English Section!

We will be more than happy to help you with problems related to our services and products. Please feel free to write it down as clear as possible

Translating Custom Fields

Περισσότερα
3 Χρόνια 2 Εβδομάδες πριν #202 από infogate
Translating Custom Fields δημιουργήθηκε από infogate
1. When setting up the custom field, instead of entering "Dimensions" as a title, enter "COM_VIRTUEMART_ART_DIMENSIONS" (without the double quotes).

2. If you have i.e. English and German languages installed in Joomla 1.7.x, locate your frontend language files - 'Overrides' folder. There should be an 'en-GB.override.ini' file already that contains only the usual header information for language files but doesn't contain language keys/strings yet (unless you added some overrides already). You can create a copy of this file, rename it to 'de-DE.override.ini' and place it into this folder too. (Note: You have to use an editor that is configured to save the files as "UTF-8 without BOM, i.e. the Notepad++ editor)

3. In your en-GB.override.ini enter the line (including the double quotes):
COM_VIRTUEMART_ART_DIMENSIONS="Dimensions"

4. Save the file encoded as UTF-8 without BOM

5. In your de-DE.override.ini enter the line (including the double quotes):
COM_VIRTUEMART_ART_DIMENSIONS="Abmessungen"
Note: The left part in capital letters is the Key, the right part after the equal sign is the String.

6. Save the file encoded as UTF-8 without BOM

You are done! When you switch now from the english to the german product description, you should now see your custom field translation. ;)

Screenshots of the result below (after adding some more custom fields)...

Update:
Since version 2.0.6 the values are also translatable
So it is possible to have i.e.:

Color: red (english)
Farbe: rot (german)

You must add your values into an INI file
But some strings are hard to convert, you can for example use:

SIZE30_VALUE="30 CM"
SIZE70_VALUE="70 CM"

...and in your customfields you must then use

SIZE30_VALUE
SIZE70_VALUE


The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 0.032 δευτερόλεπτα
Powered by Kunena Φόρουμ