Skip to main content

Order status language in frontend doesn't change

More
14 years 6 months ago - 14 years 6 months ago #44182 by arnask
Hi, i have created menu, where user can see his order list, ant there is Order status column.
The order statuses is always in English here, but in emails they are in my native language.
That means i did translated them and emails with translated order statuses are working great, only in frontend its not.

Last edit: 14 years 6 months ago by arnask.

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44396 by nicolas
Hi,

Change the line:
if($value->category_name == $status){

to:
if($value->category_namekey == $status){

in the file administrator/components/com_hikashop/types/categorysub.php and it should work.

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago - 14 years 6 months ago #44411 by arnask
i think it works only on stock order statuses, but what if i created new. For me it does not work
Last edit: 14 years 6 months ago by arnask.

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44412 by nicolas
How did you translate your new ones ?

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44419 by arnask
1. added in language file of hikashop
2. Falang translation

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44421 by nicolas
Could you give the lines that you added in the translation file of HikaShop ?

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44424 by arnask
;Order statuses
CREATED="sukurtas"
PENDING="laukiame apmokėjimo"
CONFIRMED="apmokėtas"
CANCELLED="atšauktas"
REFUNDED="grąžintas"
SHIPPED="išsiųstas"
RECEIVED="gautas"
RESULTS="rezultatas"

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44429 by nicolas
That's great. Now try to unpublish the falang translations so that you only have the translations in the language file.

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44433 by arnask
no help, its still in english

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44435 by nicolas
That's strange, it's working for us.

Try to change the line:
Code:
if(!$app->isAdmin() && $translationHelper->isMulti(true) && (class_exists('JFDatabase')||class_exists('JDatabaseMySQLx'))){

by:
Code:
if(!$app->isAdmin() && $translationHelper->isMulti(true) && class_exists('JFalangDatabase')){ $db->setQuery($query); $this->categories = $db->loadObjectList('','stdClass',false); }elseif(!$app->isAdmin() && $translationHelper->isMulti(true) && (class_exists('JFDatabase')||class_exists('JDatabaseMySQLx'))){
in the file administrator/components/com_hikashop/types/categorysub.php

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44437 by arnask
still English. But this problem is only with new order statuses i've created myself.

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44439 by nicolas
Then I don't know since it works on our end. Do you have the latest version of Falang and HikaShop ?

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #44443 by arnask
yes, downloaded both yesterday

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #91782 by egel
i think there is a problem on line 132 in order / listing.php

there is code generating this combo box with payment types right?

echo $this->payment->display('new_payment_method',$row->order_payment_method,$row->order_payment_id,false);

but it does not generate correctly select list because it is not using Jtext i think .. you know <option value="something">something in my language</option>....

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #91850 by nicolas
Payment names never use JText in HikaShop. If you want to translate the payment name, you need to enter the different translations via the multilingual translation interface of the plugin edition screen and Falang will translate that automatically on the frontend.
Falang is not loaded on the backend and thus the payment names are not translated in the backend.

Please Log in or Create an account to join the conversation.

Time to create page: 0.267 seconds
Powered by Kunena Forum