VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Bayron on November 04, 2016, 10:31:08 AM

Title: Can't find how to translate specific parts.
Post by: Bayron on November 04, 2016, 10:31:08 AM
Hi, i'm having some issues with Virtuemart translation.
Using Joomla 3.6.4 and Virtuemart 3.0.18.
Already managed to translate "sales price" "tax amount"...etc..but the same element get's translated as i wanted only while browsing products.
Those lines are still in english while i open the actual product.
Gave a try to overrides to, can't even find those strings. To be more precise, even in override they seem to be changed already, and they actually are until i open the actual product.
Any clue?
P.S. Sorry for my English, not my language
P.P.S. Aren't both sides (browsing and in product details) managed from the COM_VIRTUEMART_PRODUCT_SALESPRICE? (as well as tax amount, sales price with and without tax)
Title: Re: Can't find how to translate specific parts.
Post by: GJC Web Design on November 04, 2016, 11:26:59 AM
for the Joomla lang over rides have u tried to set them in the Admin over rides and check (use for both)?

generally the same constant is used everywhere as the e.g. sublayouts/prices.php is used everywhere
if u want different between detail and browse u need to clone the prices.php - rename and call in the template u want
change then the constant obviously
Title: Re: Can't find how to translate specific parts.
Post by: Bayron on November 04, 2016, 11:52:56 AM
I think you missunderstood the situation.
It's the exact opposite. I want the strings "Sales price", "tax amount" and "sales price with tax" to be the same in either browsing or product details.
They aren't even if it seems that they pick up the string from the same file/query.
Hope i explained it better now :D
Title: Re: Can't find how to translate specific parts.
Post by: jiasios on November 13, 2018, 03:18:54 AM
Well, i have the same problem. Price labels in category view are according to my language overrides, but in product details it displays a text that i can't find anywhere in my language .ini files. Where are those text-strings?
Title: Re: Can't find how to translate specific parts.
Post by: Jörgen on November 13, 2018, 08:16:57 AM
Are You using a commercial template? check out Your template directory.

Jörgen @ Kreativ Fotografi
Title: Re: Can't find how to translate specific parts.
Post by: jiasios on November 13, 2018, 10:42:45 AM
I tried to change template but it does not affect the text. More specific the problem is with the price labels. Is there any other file to contain custom language translations for virtuemart except language/el-GR/el-GR.com_virtuemart.ini ??
Title: Re: Can't find how to translate specific parts.
Post by: Jörgen on November 13, 2018, 12:37:14 PM
Turn on Joomla language debugging, and You will get a list of language errors, loaded language files and not translated language keys at the bottom of Your screen.

Jörgen @ Kreativ Fotografi
Title: Re: Can't find how to translate specific parts.
Post by: jiasios on November 13, 2018, 13:04:01 PM
Does virtuemart take the translation online from a project database? Because it turned to Greek without installing greek virtuemart language, just changed joomla language. Now the only way to change that specific label is to override english language and turn the website to ENGLISH from Joomla language option.

COM_VIRTUEMART_PRODUCT_BASEPRICE="Base price: "
COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT="Base price for variant: "
COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX="Base price with tax: "
COM_VIRTUEMART_COMMENT_CART="Notes and special requests"

One more thing to notice is that, even if i delete all files from GR language, it still displays greek language in labels, which means my language is not affected by com_virtuemart.ini
Title: Re: Can't find how to translate specific parts.
Post by: Jörgen on November 13, 2018, 13:27:11 PM
Do You have Greek language for Joomla, then the language strings come from there. VM has no hidden database for this AFAIK. The string You are showing are probably the english fallback for the missing greek language strings. Add thoose either by installing greek language or add them one by one using the Joomla language override. Changing language strings is best done by language override or else You will have your translations  reverted at the next update of the language files.

Jörgen @ Kreativ Fotografi
Title: Re: Can't find how to translate specific parts.
Post by: Studio 42 on November 13, 2018, 17:08:41 PM
Disable Joomla cache and try again.
Title: Re: Can't find how to translate specific parts.
Post by: jiasios on November 13, 2018, 19:33:39 PM
It is disabled from the beginning. Still searching for the source of this wrong greek translation. It looks crazy to me!
Title: Re: Can't find how to translate specific parts.
Post by: jiasios on November 13, 2018, 19:46:08 PM
The translation on category view is correct, as i have written it on com_virtuemart.ini. On product details, it is wrong. i Cleared all cache, i deleted language files, nothing seems to work. Do you need any screenshot or file uploaded to help me?
Title: Re: Can't find how to translate specific parts.
Post by: jiasios on November 13, 2018, 19:51:11 PM
And i could easilly change whole joomla to english, but i have installed the VP Onepage checkout and some text strings are automatically translated to default language and then i can't translate them instead.
Title: Re: Can't find how to translate specific parts.
Post by: Jörgen on November 13, 2018, 20:11:24 PM
Overriding the strings in Joomla language tools and ticking bith back end and front end is usually the best way to go. Editing the anguage files is a non update secure way. And of course also installing the correct language files.

Jörgen @ Kreativ Fotografi
Title: Re: Can't find how to translate specific parts.
Post by: GJC Web Design on November 13, 2018, 22:57:45 PM
VP Onepage checkout has its own language file/strings