VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: fale on April 08, 2014, 11:56:48 AM

Title: Bug variable VirtueMart 2.6.0
Post by: fale on April 08, 2014, 11:56:48 AM
Hi,

The variable ,$this->product->product_weight_uom' is not set correctly on the productdetails page in Virtuemart.

Description of the problem:
I use the Russian language. In the language file ru-RU is: COM_VIRTUEMART_UNIT_NAME_G="Грамм"
But why is it shows me one letter G . In the template and the shop is in Russian.
en-EN : COM_VIRTUEMART_UNIT_NAME_G="Gramme"
He just reads default settings but does not read my Russian file (ru-RU).
If I put weight in pounds - it displays two large letters LB.

VirtueMart  2.6.0

Please check it out and fix.


Please check it out and fix.

Title: Re: Bug variable VirtueMart 2.6.0
Post by: Milbo on April 13, 2014, 15:52:32 PM
I fear we do not understand the problem. Maybe your language files are not in the new folder?
Title: Re: Bug variable VirtueMart 2.6.0
Post by: fale on April 13, 2014, 19:23:10 PM
Hi, Milbo

All language files are in place.

The variable ,$this->product->product_weight_uom' is not set correctly on the productdetails page in Virtuemart.

I set the weight of the product in grams - the weight displayed on the site by the letter G
Title: Re: Bug variable VirtueMart 2.6.0
Post by: Milbo on April 14, 2014, 16:36:22 PM
and what happens, when you use english?
Title: Re: Bug variable VirtueMart 2.6.0
Post by: fale on April 25, 2014, 15:31:40 PM
Hi Milbo,
If I put the English, instead of "gramm" I see one letter G
Example: Weight 100.00 G

If the weight is set kilogramm   ....    I see    Weight 100.00 KG
If the weight is set miligramm                       Weight  100.00 MG
If the weight is set pounds                           Weight   100.00 LB
If the weight is set ounce                             Weight   100.00 OZ

Some lines of the file: en-GB.com_virtuemart.ini

COM_VIRTUEMART_UNIT_NAME_G="Gramme"
COM_VIRTUEMART_UNIT_NAME_KG="Kilogramme"
COM_VIRTUEMART_UNIT_NAME_LB="Pounds"
COM_VIRTUEMART_UNIT_NAME_MG="Milligramme"
COM_VIRTUEMART_UNIT_NAME_ONCE="Ounce"
Title: Re: Bug variable VirtueMart 2.6.0
Post by: Milbo on April 28, 2014, 14:56:02 PM
So if you have a problem in russian, then you must check the russian language file and you can directly join transifex and help us with the translation https://www.transifex.com/projects/p/virtuemart/
Title: Re: Bug variable VirtueMart 2.6.0
Post by: fale on April 30, 2014, 10:11:13 AM
Hi Milbo,

I think you do not understand the problem.

On the productdetails page the variable $this->product->product_weight_uom returns this:

string(1) "G"

The language is English but it does not display "Gramme". It seems that the appropriate language tag is not used here.

It is 100% confirmed my template developer.  There Virtuemart2 bug. This is not a problem of translation.

Kind regards
Title: Re: Bug variable VirtueMart 2.6.0
Post by: Milbo on April 30, 2014, 10:38:52 AM
You select gramm and you see a "g"? That is correct. If you want to see gramm, then change your language file.
Title: Re: Bug variable VirtueMart 2.6.0
Post by: fale on May 06, 2014, 17:27:25 PM

Hi Milbo,

I changed the language file. But I still see the "G"

I purchased a paid template. Manufactured (http://www.yagendoo.com)  template told me that it is your fault. They tell me the truth?
Title: Re: Bug variable VirtueMart 2.6.0
Post by: Milbo on May 07, 2014, 13:13:38 PM
I still dont get your problem. The iso unit for gramm is g. Please show me a screenshot.

Quote from: fale on April 25, 2014, 15:31:40 PM
Hi Milbo,
If I put the English, instead of "gramm" I see one letter G
Example: Weight 100.00 G

If the weight is set kilogramm   ....    I see    Weight 100.00 KG
If the weight is set miligramm                       Weight  100.00 MG
If the weight is set pounds                           Weight   100.00 LB
If the weight is set ounce                             Weight   100.00 OZ

Some lines of the file: en-GB.com_virtuemart.ini

COM_VIRTUEMART_UNIT_NAME_G="Gramme"
COM_VIRTUEMART_UNIT_NAME_KG="Kilogramme"
COM_VIRTUEMART_UNIT_NAME_LB="Pounds"
COM_VIRTUEMART_UNIT_NAME_MG="Milligramme"
COM_VIRTUEMART_UNIT_NAME_ONCE="Ounce"

Yeh as you see above and said yourself, you see the char g, so the language keys you found are not the ones you wanna change. You must change this key
COM_VIRTUEMART_UNIT_SYMBOL_KG

Title: Re: Bug variable VirtueMart 2.6.0
Post by: fale on May 08, 2014, 21:55:14 PM
Hi Milbo,

Some lines of the file: en-GB.com_virtuemart.ini

I have these lines in the language file.

QuoteCOM_VIRTUEMART_UNIT_NAME_FOOT="Foot"
COM_VIRTUEMART_UNIT_NAME_G="Gramme"
COM_VIRTUEMART_UNIT_NAME_INCH="Inches"
COM_VIRTUEMART_UNIT_NAME_KG="Kilogramme"
COM_VIRTUEMART_UNIT_NAME_L="Liter"
COM_VIRTUEMART_UNIT_NAME_LB="Pounds"
COM_VIRTUEMART_UNIT_NAME_M="Metres"
COM_VIRTUEMART_UNIT_NAME_MG="Milligramme"
COM_VIRTUEMART_UNIT_NAME_MM="Millimetres"
COM_VIRTUEMART_UNIT_NAME_ONCE="Ounce"
COM_VIRTUEMART_UNIT_NAME_SM="Square meters"
COM_VIRTUEMART_UNIT_NAME_YARD="Yards"
COM_VIRTUEMART_UNIT_SYMBOL_100G="100 g"
COM_VIRTUEMART_UNIT_SYMBOL_100ML="100 ml"
COM_VIRTUEMART_UNIT_SYMBOL_CM="cm"
COM_VIRTUEMART_UNIT_SYMBOL_CUBM="m³"
COM_VIRTUEMART_UNIT_SYMBOL_FOOT="ft"
COM_VIRTUEMART_UNIT_SYMBOL_G="g"
COM_VIRTUEMART_UNIT_SYMBOL_INCH="in"
COM_VIRTUEMART_UNIT_SYMBOL_KG="kg"
COM_VIRTUEMART_UNIT_SYMBOL_L="l"
COM_VIRTUEMART_UNIT_SYMBOL_LB="lb"
COM_VIRTUEMART_UNIT_SYMBOL_M="m"
COM_VIRTUEMART_UNIT_SYMBOL_MG="mg"
COM_VIRTUEMART_UNIT_SYMBOL_MM="mm"
COM_VIRTUEMART_UNIT_SYMBOL_OUNCE="oz"
COM_VIRTUEMART_UNIT_SYMBOL_SM="m²"
COM_VIRTUEMART_UNIT_SYMBOL_YARD="yd"
....

I do not know how to solve this problem. I see a big letter 'G'
Title: Re: Bug variable VirtueMart 2.6.0
Post by: GJC Web Design on May 08, 2014, 22:08:42 PM
is it something as simple as some css working on it  -> text-transform:uppercase?

Are you displaying tis in the template or just echo out the var?
Title: Re: Bug variable VirtueMart 2.6.0
Post by: palmer on January 20, 2015, 16:26:40 PM
Hi Fale!  There are another language file exist. See in: components/com_virtuemart/language/