Public Ticket #3704924

Request for Localization Support in MarketKing Dashboard Pagination

Closed
Comments
11 Tickets 3
YUJI OKUBO started the conversation 2 years ago on August 14, 2024 at 9:15am

Hello,

I have purchased the Pro version of MarketKing.

I am currently translating MarketKing into Japanese.

In the vendor dashboard, there are tables on the following screens:

  • Coupons
  • Products
  • Orders
  • Earnings
  • Reviews
  • Refund Requests

The pagination of these tables is displayed as follows:

"Showing 1 to 10 of 11 entries"

I would like to translate this into Japanese. I have checked with the translation plugin (TranslatePress - Multilingual), but it was not found in Gettext.

I would appreciate it if you could make this replaceable via Gettext.

I especially request the following three:

  • Products
  • Orders
  • Earnings

Thank you for your consideration.

2,762
KingsPlugins replied 2 years ago on August 16, 2024 at 3:46pm

Hello Yuji,

The pagination there is handled through scripts. It can be translated, by adding the following PHP code snippet to your site:

add_filter('marketking_tables_language_option_setting', function($lang){
    return 'Japanese';
}, 10, 1);

This snippet can be added to functions.php, or by following our guide here: https://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

As a result, it should be able to display that in Japanese, as follows:

2955956416.png

Let me know if there is anything else we can help with,

Kind regards,

Stefan

1

Sign In