News:

Looking for documentation? Take a look on our wiki

Main Menu

[SOLVE] German Translation Bug

Started by coppo82, August 12, 2013, 13:15:49 PM

Previous topic - Next topic

coppo82

Hi all , i installed the latest virtuemart version and download the german language pack but i have a little problem on show the unit price .

on the product display on the line of the UNIT PRICE it display that:

COM_VIRTUEMART_UNIT_SYMBOL_DG

looking on the file de-DE.com_virtuemart.ini i saw that they line of the unit 100 gr is not

COM_VIRTUEMART_UNIT_SYMBOL_DG    BUT  COM_VIRTUEMART_UNIT_SYMBOL_100GR

i fix this problem changing 100GR to DG  and it works fine and show 100 gr

but no i have anothe problem on the categories ,  the unit price sentence  is for example

Standardisierter Preis / DG: 7,50 €       

why i get DG an not the unit ????

thanks a lot .



the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html

Maxim Pishnyak

Do you want this:
COM_VIRTUEMART_UNIT_SYMBOL_DG=unit
COM_VIRTUEMART_UNIT_SYMBOL_100GR=DG
?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

coppo82

Quote from: Maxim Pishnyak on August 12, 2013, 13:43:06 PM
Do you want this:
COM_VIRTUEMART_UNIT_SYMBOL_DG=unit
COM_VIRTUEMART_UNIT_SYMBOL_100GR=DG
?

no you didn't understand ...
look this images please .

this is the product details and how you see i don't get  "100 gr"  but  COM_VIRTUEMART_UNIT_SYMBOL_DG



another problem i have in the category



the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html

coppo82

Quote from: coppo82 on August 12, 2013, 14:06:58 PM
Quote from: Maxim Pishnyak on August 12, 2013, 13:43:06 PM
Do you want this:
COM_VIRTUEMART_UNIT_SYMBOL_DG=unit
COM_VIRTUEMART_UNIT_SYMBOL_100GR=DG
?

no you didn't understand ...
look this images please .

this is the product details and how you see i don't get  "100 gr"  but  COM_VIRTUEMART_UNIT_SYMBOL_DG



another problem i have in the category




and if i look on the language file .INI , there is no COM_VIRTUEMART_UNIT_SYMBOL_DG  but COM_VIRTUEMART_UNIT_SYMBOL_100MG

there is also anothere error in that language file

COM_VIRTUEMART_UNIT_SYMBOL_100MG="100 mg"     right would be 100 gr    not " mg "

if i rename  COM_VIRTUEMART_UNIT_SYMBOL_100MG  to COM_VIRTUEMART_UNIT_SYMBOL_DG   everything work fine in the product details ,but not in the categories .

the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html

Maxim Pishnyak

You need to understand that german language pack is one story and language setup on your current web shop is another story.

German language pack will be corrected in future by german translators.

Language setup for your particular web site could be done not with the help of ini files, but with the help of Language Overrides (check sticked thread in current forum section).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

coppo82

Quote from: Maxim Pishnyak on August 12, 2013, 15:01:45 PM
You need to understand that german language pack is one story and language setup on your current web shop is another story.

German language pack will be corrected in future by german translators.

Language setup for your particular web site could be done not with the help of ini files, but with the help of Language Overrides (check sticked thread in current forum section).

i think you still not understand my problem , i'm sorry for my bad english ......  i didn't have particular part of website , i installed virtuemart , and add the german lenguage , then i type in a new prododut and i activate the option SHOW PRIVE PRO UNIT . thats all ....

i didn't have custom field or something like this , it's all original  but like i told you i didn't see " 100 gr " but this error ...

the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html

jjk

#6
Please look into the file your-domain\language\de-DE\de-DE.com_virtuemart.ini, around line 454 (depending on your version of VirtueMart).
There is a typo in the line:

COM_VIRTUEMART_UNIT_SYMBOL_100MG="100 mg"

Change it to:

COM_VIRTUEMART_UNIT_SYMBOL_100G="100 g"

(German reply: In Zeile 454 der Datei DeineDomain\language\de-DE\de-DE.com_virtuemart.ini ist in der aktuellen VirtueMart Version ist ein Tippfehler. Bitte die Zeilen wie oben korrigieren. Den Schlüssel COM_VIRTUEMART_UNIT_SYMBOL_DG haben wir nach meinem Wissen nie verwendet. Vielleicht ein Tippfehler deinerseits bei einem Korrekturversuch?)
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

coppo82

Quote from: jjk on August 12, 2013, 15:37:37 PM
Please look into the file your-domain\language\de-DE\de-DE.com_virtuemart.ini, around line 454 (depending on your version of VirtueMart).
There is a typo in the line:

COM_VIRTUEMART_UNIT_SYMBOL_100MG="100 mg"

Change it to:

COM_VIRTUEMART_UNIT_SYMBOL_100G="100 g"

(German reply: In Zeile 454 der Datei DeineDomain\language\de-DE\de-DE.com_virtuemart.ini ist in der aktuellen VirtueMart Version ist ein Tippfehler. Bitte die Zeilen wie oben korrigieren. Den Schlüssel COM_VIRTUEMART_UNIT_SYMBOL_DG haben wir nach meinem Wissen nie verwendet. Vielleicht ein Tippfehler deinerseits bei einem Korrekturversuch?)

thanks jjk for the reply but it doesn't work ....  it just work if i rename COM_VIRTUEMART_UNIT_SYMBOL_DG  like you can see the error in the image ....

another problem you can see it in the second images i had post .  i dont want see standardisiet preis /DG  but standardisiet preis / 100 g
the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html

jjk

#8
Do you use any third party extensions? The key COM_VIRTUEMART_UNIT_SYMBOL_DG doesn't exist in the original VirtueMart code. If this key shows up in the frontend, it means that it is somewhere in the code (maybe a third party plugin) but there is no translation for it in the german file. If you have a bilingual site, what do you see after switching to English?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

coppo82

#9
Quote from: coppo82 on August 12, 2013, 15:46:05 PM
Quote from: jjk on August 12, 2013, 15:37:37 PM
Please look into the file your-domain\language\de-DE\de-DE.com_virtuemart.ini, around line 454 (depending on your version of VirtueMart).
There is a typo in the line:

COM_VIRTUEMART_UNIT_SYMBOL_100MG="100 mg"

Change it to:

COM_VIRTUEMART_UNIT_SYMBOL_100G="100 g"

(German reply: In Zeile 454 der Datei DeineDomain\language\de-DE\de-DE.com_virtuemart.ini ist in der aktuellen VirtueMart Version ist ein Tippfehler. Bitte die Zeilen wie oben korrigieren. Den Schlüssel COM_VIRTUEMART_UNIT_SYMBOL_DG haben wir nach meinem Wissen nie verwendet. Vielleicht ein Tippfehler deinerseits bei einem Korrekturversuch?)

thanks jjk for the reply but it doesn't work ....  it just work if i rename COM_VIRTUEMART_UNIT_SYMBOL_DG  like you can see the error in the image ....

another problem you can see it in the second images i had post .  i dont want see standardisiet preis /DG  but standardisiet preis / 100 g

it's a fresh virtuemart installation , i have no plugin or something extra ....

i wrote you in PM , i think it's a core problem ... this error happen only with 100 g  and 100 ml  with outer units everythings work fine .....

:-(
the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html

coppo82

this is the error  ( I THINK ) 

this is the  file  administrator\components\com_virtuemart\helpers\shopfunctions.php   LINE 495
$weight_unit_default = array(
'KG' => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_KG')
, 'DG' => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_100G')
, 'M'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_M')
, 'SM'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_SM')
, 'CUBM'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_CUBM')
, 'L'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_L')
, 'DML'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_100ML')
);
foreach ($weight_unit_default as  $key => $value) {
$wu_list[] = JHTML::_ ('select.option', $key, $value, $name);
}




and this is the line  54 of the file components\com_virtuemart\views\productdetails\tmpl\default_showprices.php

$unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', JText::_('COM_VIRTUEMART_UNIT_SYMBOL_'.$this->product->product_unit));


now think that the unit of my product is 100 g  ..... now you understand from where it come COM_VIRTUEMART_UNIT_SYMBOL_DG   ????

i just see this but i can't fix this error   :-(  and maybe it's not this the problem .... i don't know ... look also you ....
the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html

Milbo

Thank you Coppa, Maxim and Jörg.

He is right, the key COM_VIRTUEMART_UNIT_SYMBOL_DG exists and is just missing in the english language file maybe and it means deka gramm => 100 mg, yes.

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

coppo82

Quote from: Milbo on August 12, 2013, 17:42:32 PM
Thank you Coppa, Maxim and Jörg.

He is right, the key COM_VIRTUEMART_UNIT_SYMBOL_DG exists and is just missing in the english language file maybe and it means deka gramm => 100 mg, yes.

hi , i'm usig the german language ....

maybe i'm stupid but i don't understand :

on the product backend i see 100 g ( on the drowdown unit menu )

on the database will be saved as DG ( and now you tell me it mean DEKA GRAMM )

on the file LENGUAGE INI there is 100 mg

and 1 decagramm are not 100 mg but 10000 mg  meybe you mean  decigram


i hope someone can fix this bug .......
the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html

coppo82

shopfunctions.php  line  491

}

static function renderUnitIsoList($name, $selected){

$weight_unit_default = array(
'KG' => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_KG')
, '100G' => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_100G')
, 'M'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_M')
, 'SM'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_SM')
, 'CUBM'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_CUBM')
, 'L'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_L')
, '100ML'   => JText::_ ('COM_VIRTUEMART_UNIT_SYMBOL_100ML')
);
foreach ($weight_unit_default as  $key => $value) {
$wu_list[] = JHTML::_ ('select.option', $key, $value, $name);
}
$listHTML = JHTML::_ ('Select.genericlist', $wu_list, $name, '', $name, 'text', $selected);
return $listHTML;
}



file de-DE.com_virtuemart.ini   line 454 

COM_VIRTUEMART_UNIT_SYMBOL_100G="100 g"

file components\com_virtuemart\views\category\tmpl\default.php    line 298 and 299

$unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', JText::_('COM_VIRTUEMART_UNIT_SYMBOL_'.$product->product_unit));
echo $this->currency->createPriceDiv ('unitPrice', $unitPriceDescription, $product->prices);


Thanks Max for the help

the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html