Order status language in frontend doesn't change

  • Posts: 169
  • Thank you received: 2
  • Hikashop Business
12 years 1 month ago #44182

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.

Attachments:
Last edit: 12 years 1 month ago by arnask.

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
12 years 1 month ago #44396

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.

  • Posts: 169
  • Thank you received: 2
  • Hikashop Business
12 years 1 month ago #44411

i think it works only on stock order statuses, but what if i created new. For me it does not work

Last edit: 12 years 1 month ago by arnask.

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
12 years 1 month ago #44412

How did you translate your new ones ?

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

  • Posts: 169
  • Thank you received: 2
  • Hikashop Business
12 years 1 month ago #44419

1. added in language file of hikashop
2. Falang translation

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
12 years 1 month ago #44421

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.

  • Posts: 169
  • Thank you received: 2
  • Hikashop Business
12 years 1 month ago #44424

;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.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
12 years 1 month ago #44429

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.

  • Posts: 169
  • Thank you received: 2
  • Hikashop Business
12 years 1 month ago #44433

no help, its still in english

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
12 years 1 month ago #44435

That's strange, it's working for us.

Try to change the line:

if(!$app->isAdmin() && $translationHelper->isMulti(true) && (class_exists('JFDatabase')||class_exists('JDatabaseMySQLx'))){

by:
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.

  • Posts: 169
  • Thank you received: 2
  • Hikashop Business
12 years 1 month ago #44437

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.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
12 years 1 month ago #44439

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.

  • Posts: 169
  • Thank you received: 2
  • Hikashop Business
12 years 1 month ago #44443

yes, downloaded both yesterday

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

  • Posts: 4
  • Thank you received: 0
11 years 1 month ago #91782

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.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
11 years 1 month ago #91850

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.090 seconds
Powered by Kunena Forum