VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: antonino78 on December 21, 2011, 13:12:55 PM

Title: SOLVED Problem Translation italian virtuemart
Post by: antonino78 on December 21, 2011, 13:12:55 PM
Hello,
my installation is:
Joomla version 1.7.3
Version virtiemart 2.0
The problem is that I can not see the virtuemart backend in the Italian language and Italian I see the front end. :-\

I have redone the installation 3 times already but I can not solve the problem.
can someone please help me :'(
Title: Re: Problem Translation italian virtuemart
Post by: jjk on December 21, 2011, 13:58:30 PM
If you turn on "Debug Language" in Joomla configuration, and then try to open the VM2 backend in italian language, it should list one or more lines from the file ...administrator/language/it-IT.com_virtuemart.ini near the bottom of the debug list, if there is an error in the language file.
Title: Re: Problem Translation italian virtuemart
Post by: antonino78 on December 21, 2011, 14:36:14 PM
hello,
I followed your instructions but does not report any error. :-\
The problem is that the Italian language is not read. :'(
Title: Re: Problem Translation italian virtuemart
Post by: jjk on December 21, 2011, 14:41:18 PM
I'll try to test it on one of my installations this evening and let you know whether it works or not.
Title: Re: Problem Translation italian virtuemart
Post by: antonino78 on December 21, 2011, 14:48:17 PM
I'm sorry I had not activated (system debugging).
I found this error:
    /var/www/vhosts/mysite.com/httpdocs/cartella/administrator/language/it-IT/it-IT.com_virtuemart.ini : errore(i) alla(e) linea(e) 9, 60, 379, 526, 825, 888, 1521, 1587, 1588, 1589
    /var/www/vhosts/mysite.com/httpdocs/cartella/administrator/language/en-GB/en-GB.com_virtuemart.ini : errore(i) alla(e) linea(e) 7
I do not understand what the error,
you may kindly help me understand? :'(
Title: Re: Problem Translation italian virtuemart
Post by: jjk on December 21, 2011, 17:23:23 PM
Just had another short look at the backend it-IT.com_virtuemart.ini. The problem actually appears to be a number of illegal characters used in lines 60, 379, 526, 825, 888, 1521, 1587, 1588, 1589.
See here: http://docs.joomla.org/Specification_of_language_files (http://docs.joomla.org/Specification_of_language_files)
I suppose the italian fellow who supplied this file was still working with Joomla 1.5.x.
Do you think you can correct the lines yourself?

I will move this thread to the VM2 language/translations section later today.
Title: Re: Problem Translation italian virtuemart
Post by: antonino78 on December 21, 2011, 17:32:08 PM
We have just solved the problem, it was an error of closure.
We have replaced some quotes " " with quotes ' '.
Thank you so much for your cooperation.  :)
Title: Re: SOLVED Problem Translation italian virtuemart
Post by: jjk on December 21, 2011, 19:57:31 PM
Can you please upload the corrected file (zip) here, so I can replace the one containing characters illegal in J1.7.x with a working one in the VM2 trunk?
Title: Re: SOLVED Problem Translation italian virtuemart
Post by: antonino78 on December 22, 2011, 10:34:04 AM
The correct file will be sent by the Italian team virtuemart.
Thanks to all the good work!
Title: Re: SOLVED Problem Translation italian virtuemart
Post by: Pisu on December 27, 2011, 12:03:54 PM
Hi jjk, about this problem of the double quotes, what is the correct solution? Reading the Joomla document you linked, they say to use _QQ_ for double quotes. You are using this standard for VM languages? It will also work in Joomla 1.5?
Title: Re: SOLVED Problem Translation italian virtuemart
Post by: jjk on December 27, 2011, 13:34:38 PM
Quote from: Pisu on December 27, 2011, 12:03:54 PM
You are using this standard for VM languages? It will also work in Joomla 1.5?

As far as I know using escaped quotes ( \") causes conflicts with php 5.2. Using the _QQ_ will work for both Joomla versions, but most translations (including my german VM2 translation) eliminated double quotes from the language strings. I've used single quotes and occationally the (alt +174) (alt +175) characters or html tags like <strong>...</strong> color attributes, etc.