Post by raix022 » Thu Dec 04, 2014 7:08 pm

Hello,

I have Opencart in Estonian language. Works great but buttons are not translated. "Add to cart", "Next", "Completed" etc..

I have right version of language pack and if I check

Code: Select all

/catalog/language/estonian/estonian.php
there is translated correctly

Code: Select all

$_['button_cart']   
$_['button_back']           = 'Tagasi';
$_['button_continue']       = 'Jätka';
$_['button_cart']           = 'Lisa ostukorvi';
What can I check more to get it translated?

Newbie

Posts

Joined
Thu Dec 04, 2014 7:01 pm

Post by JanP » Tue Dec 09, 2014 4:57 pm

I have the same problem,

All variables in local language are defined and translated, but translation has not any effect in buttons...

Newbie

Posts

Joined
Fri Dec 05, 2014 5:31 pm

Post by ftella » Fri Dec 12, 2014 1:17 am

Same problem here,

I made my personal translation of all files in "catalog/language/" but some parts cannot be translated from there. These are what I found:
- "Add to cart" button
- info boxes of "add to wishlist" and "Compare this product" buttons, (by "info box" I mean the text box that shows when you stop the mouse over the button)
- info boxes of "grid" and "list" buttons,
- "Add to cart" and "remove" buttons in "Compare products" section.

Maybe somebody can point to where are those files.

Thanks!

Newbie

Posts

Joined
Wed Dec 26, 2012 7:26 pm

Post by jurpro » Wed Dec 17, 2014 3:11 pm

raix022 wrote:Hello,

I have Opencart in Estonian language. Works great but buttons are not translated. "Add to cart", "Next", "Completed" etc..

I have right version of language pack and if I check

Code: Select all

/catalog/language/estonian/estonian.php
there is translated correctly

Code: Select all

$_['button_cart']   
$_['button_back']           = 'Tagasi';
$_['button_continue']       = 'Jätka';
$_['button_cart']           = 'Lisa ostukorvi';
What can I check more to get it translated?
OC 2.0.x now use language translation to all country by default.php not english.php again, or your language estonian.php
So... make sure Rename your file language from estonian.php to be default.php
Also for other language like italian.php, indonesian.php, philipine.php or country.php just rename your file in admin and catalog for language to be default.php

From :

Code: Select all

/admin/language/estonian/estonian.php
/catalog/language/estonian/estonian.php
to be :

Code: Select all

/admin/language/estonian/default.php
/catalog/language/estonian/default.php

Cari album edisi luar negeri? Atau dalam negeri juga bisa. Kunjungi saja http://www.sawios.com Semoga bisa membantu. :)


User avatar
Active Member

Posts

Joined
Wed Jun 06, 2012 6:17 pm

Post by ftella » Wed Dec 17, 2014 5:43 pm

Many thanks Jurpro!

After updating to 2.0.1.1 y saw that besides english.php it had appeared a default.php file. It wasn't there in 2.0.1.0 so we didn't have the clue.

It's solved now. :D

Thanks again!

Newbie

Posts

Joined
Wed Dec 26, 2012 7:26 pm

Post by raix022 » Fri Dec 19, 2014 6:17 pm

Big thanks jurpro, it solves my problem ;)

Newbie

Posts

Joined
Thu Dec 04, 2014 7:01 pm

Post by muddbog » Sun Feb 22, 2015 7:42 pm

Jurpro, Your the best! Thanks!

Newbie

Posts

Joined
Tue Jan 13, 2015 1:04 am

Post by gogoweb » Wed Aug 19, 2015 7:48 pm

In 2.0.3.1 I see no such problem.
I did some code digging and the system looks for "directory name" as specified in config in admin panel. Uses this string for example french and loads translation like this

Code: Select all

catalog/language/french/french.php
I'd recommend updating to 2.0.3.1 it will solve this issue automatically and will not break your system.

All mods | OpenCart Bulk Related Products Ultimate Edition |GeoIP hide Prices / no add to cart by country| CSS override | Direct link to checkout / skip add to cart / buy now link | AUTO pilot - reward & purchase points


New member

Posts

Joined
Sat Oct 18, 2014 6:45 pm


Post by srain » Tue Nov 03, 2015 2:28 am

I'm using opencart 2.0.3.1, and added Tamil (one of the Indian) Language as optional second language (for visitors).

In System > Localisation > Languages :
  • Name: Tamil
  • Code: ta
  • Locale: ta_IN.UTF-8,ta_IN,ta-in,tamil
  • Image: in.png
  • Directory: tamil
  • Status: Enabled
  • Sort Order: 2
And, have created a clone of:
  • catalog/language/english
to:
  • catalog/language/tamil
and edited the variable values with Tamil words, and:
$_['code'] = 'ta';

And more, has tried renaming the "tamil.php" to "default.php" (in catalog/language/tamil directory).


But no use! Menus, product description are shown in Tamil. But button captions, labels, etc., still in english variable names. for example:
"button_cart", "button_cancel", "text_select", "text_loading", ....

Please help me to solve this issue.

I'm new and learning Opencart, so your guide will be biggest help for me!

New member

Posts

Joined
Thu Apr 02, 2015 2:04 am
Who is online

Users browsing this forum: No registered users and 3 guests