Author Topic: Can't find how to translate specific parts.  (Read 1350 times)

Bayron

  • Beginner
  • *
  • Posts: 22
  • A beginner
Can't find how to translate specific parts.
« 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)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8558
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Can't find how to translate specific parts.
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Bayron

  • Beginner
  • *
  • Posts: 22
  • A beginner
Re: Can't find how to translate specific parts.
« Reply #2 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

jiasios

  • Beginner
  • *
  • Posts: 6
Re: Can't find how to translate specific parts.
« Reply #3 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?

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1794
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Can't find how to translate specific parts.
« Reply #4 on: November 13, 2018, 08:16:57 am »
Are You using a commercial template? check out Your template directory.

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

jiasios

  • Beginner
  • *
  • Posts: 6
Re: Can't find how to translate specific parts.
« Reply #5 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 ??

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1794
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Can't find how to translate specific parts.
« Reply #6 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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

jiasios

  • Beginner
  • *
  • Posts: 6
Re: Can't find how to translate specific parts.
« Reply #7 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

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1794
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Can't find how to translate specific parts.
« Reply #8 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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3518
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Can't find how to translate specific parts.
« Reply #9 on: November 13, 2018, 17:08:41 pm »
Disable Joomla cache and try again.

jiasios

  • Beginner
  • *
  • Posts: 6
Re: Can't find how to translate specific parts.
« Reply #10 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!

jiasios

  • Beginner
  • *
  • Posts: 6
Re: Can't find how to translate specific parts.
« Reply #11 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?

jiasios

  • Beginner
  • *
  • Posts: 6
Re: Can't find how to translate specific parts.
« Reply #12 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.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1794
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Can't find how to translate specific parts.
« Reply #13 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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8558
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Can't find how to translate specific parts.
« Reply #14 on: November 13, 2018, 22:57:45 pm »
VP Onepage checkout has its own language file/strings
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation