VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: designinsi.de on April 03, 2013, 21:53:54 PM

Title: already translated custom field names not working after update
Post by: designinsi.de on April 03, 2013, 21:53:54 PM
As the title says I already had a running site. I made overrides for my color and size variables in each language but after the update to 2.0.20b only the variables are shown :o

Any Ideas?

Thanks!
Title: Re: already translated custom field names not working after update
Post by: jjk on April 04, 2013, 08:49:35 AM
Did you follow the small tutorial available here http://forum.virtuemart.net/index.php?topic=96758.0 (http://forum.virtuemart.net/index.php?topic=96758.0) to translate your custom field names?
Are your language override keys/strings still in the Joomla backend/frontend language override folders?
Title: Re: already translated custom field names not working after update
Post by: designinsi.de on April 04, 2013, 12:10:17 PM
As I wrote it worked before the update.

The vars are in the de-DE/en-EN.override.ini and I even tried it with a ini of virtuemart but nothing.

English:

RED="Red"
WHITE="White"
GREY="Grey"
BLACK="Black"

German:

RED="Rot"
WHITE="Weiss"
GREY="Grau"
BLACK="Schwarz"
Title: Re: already translated custom field names not working after update
Post by: jjk on April 04, 2013, 13:30:58 PM
Quote from: designinsi.de on April 04, 2013, 12:10:17 PM
The vars are in the de-DE/en-EN.override.ini

The english language override file has to be named en-GB.override.ini
Title: Re: already translated custom field names not working after update
Post by: designinsi.de on April 06, 2013, 16:42:54 PM
The file is named like that. I only wrote it wrong in the forum.

Another thing I noticed:

Some vars are translated some not.

The captions for Color and Size still work, the colors themselves not!
Title: Re: already translated custom field names not working after update
Post by: jjk on April 06, 2013, 20:58:22 PM
Did you check if your language key entries in the custom fields are still there? In case you have a live site, can you post a link so we can have a look at the frontend?
Title: Re: already translated custom field names not working after update
Post by: Radghostz on May 03, 2013, 19:35:14 PM
I have the same problem in virtuemart 2.0.20b.
In my site under construction in English and Spanish. Use this guide: http://forum.virtuemart.net/index.php?topic=96758.0
  
Only the variables are translated as:
- Dimensions, (to "Sizes" in spanish)
- Colors (to "Colors" in spanish)
but variables such as white, brown, red, or small, medium, large ... NOT TRANSLATED.

As you solved this problem in the translation? Please help me
Title: Re: already translated custom field names not working after update
Post by: jjk on May 03, 2013, 21:01:55 PM
@Radghostz,
Did your existing translation also get lost after an update of VirtueMart or is it your first attempt which is not working yet?
Title: Re: already translated custom field names not working after update
Post by: Radghostz on May 04, 2013, 22:33:45 PM
Thanks for responding.
In the first attempt. I have not updated.
Where can be the problem? : (
Title: Re: already translated custom field names not working after update
Post by: jjk on May 05, 2013, 22:57:14 PM
You need add your values into a frontend INI file (preferably into override language files) like described here:
http://docs.virtuemart.net/tutorials/33-templating-layouts/107-customization-of-displayed-text.html

For example:

COLOR_RED_VALUE="red"

and then enter into your custom field:

COLOR_RED_VALUE (instead of 'red')

Title: Re: already translated custom field names not working after update
Post by: lindapowers on May 07, 2013, 23:13:03 PM
Quote from: jjk on May 05, 2013, 22:57:14 PM
You need add your values into a frontend INI file (preferably into override language files) like described here:
http://docs.virtuemart.net/tutorials/33-templating-layouts/107-customization-of-displayed-text.html

For example:

COLOR_RED_VALUE="red"

and then enter into your custom field:

COLOR_RED_VALUE (instead of 'red')



So we can't use the language override function in joomla 2.5 instead of adding the values in to each ini file?

Sorry for asking I know the guy here posted that same issue, but we were about to do it that way.

I don't really like adding translation on ini files that get deleted with each update of VM.

Regards
Title: Re: already translated custom field names not working after update
Post by: jjk on May 07, 2013, 23:47:36 PM
Quote from: lindapowers on May 07, 2013, 23:13:03 PM
So we can't use the language override function in joomla 2.5 instead of adding the values in to each ini file?

The language overrides in Joomla a placed in ini files within the frontend and backend override folders. You can store the custom field keys/strings in these override ini files of course.