AbanteCart Community

AbanteCart Development => Customization help => Topic started by: ermingut on October 18, 2016, 09:29:30 AM

Title: New language phrases not shown in shop
Post by: ermingut on October 18, 2016, 09:29:30 AM
I created new language thru Localisation || Languages and I loaded missing language data from default English language.

I checked language definitions for new language and there is translation present in new language. (like  button_add_to_cart --> "Add to Cart")

But when I change shop language to new language "Add to cart" button is shown as "button_add_to_cart". Also other translations are shown with key and not actual translation like:
"decimal_point" instead of ","
"text_home" instead of "home"

Text like "Unit price" is shown correctly. I cleared all cache.

Any suggestions?

Thanks.




Title: Re: New language phrases not shown in shop
Post by: Basara on October 18, 2016, 09:39:18 AM
Hi.

Do you have any errors in the AbanteCart error log? Did you translate to your language in .xml files or in Admin panel?
Title: Re: New language phrases not shown in shop
Post by: ermingut on October 18, 2016, 09:44:11 AM
Hi.

Error log is empty. I translated in Admin panel.

This is fresh installation V1.2.8.

Thank you.
Title: Re: New language phrases not shown in shop
Post by: Basara on October 18, 2016, 09:49:08 AM
I translated in Admin panel.


When you add language definitions manually make sure to set correct Section/Block/Key

I sugget you to create new language as an extension
http://docs.abantecart.com/pages/localization/languages/create_language.html
Title: Re: New language phrases not shown in shop
Post by: ermingut on October 18, 2016, 10:52:00 AM
I created new language in Admin like explained in second point from your linked page. I don't have XML extension

I also had report that numerous tables were updated / inserted, and also checked that  Section/Block/Key are correct - See image.

(http://prodigit.eu/img.png)

And English language is ok while Slovenian and German are not (showing: "button_add_to_cart" label).

Also data in looks ok:
select * from abi7_language_definitions where language_key="button_add_to_cart";
select * from abi7_languages;




Title: Re: New language phrases not shown in shop
Post by: Joop on October 18, 2016, 07:44:58 PM
Hi.

Error log is empty. I translated in Admin panel.

This is fresh installation V1.2.8.

Thank you.

- Did you turn the [error log] on?
  Admin - Settings - System - Display Errors [ON]

- Did you translate in "single mode" ... with only one language at the time?
  (after translation, add with V-mark and then [SAVE]-button

- Did u use the "German extention" ?   This one is not complete (i'm using it too, but translate this to another language)

Goodluck