News:

Looking for documentation? Take a look on our wiki

Main Menu

Bug variable VirtueMart 2.6.0

Started by fale, April 08, 2014, 11:56:48 AM

Previous topic - Next topic

fale

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.


Milbo

I fear we do not understand the problem. Maybe your language files are not in the new folder?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

fale

#2
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

Milbo

and what happens, when you use english?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

fale

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"

Milbo

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/
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

fale

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

Milbo

You select gramm and you see a "g"? That is correct. If you want to see gramm, then change your language file.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

fale


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?

Milbo

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

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

fale

#10
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'

GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

palmer

#12
Hi Fale!  There are another language file exist. See in: components/com_virtuemart/language/