Okay
  Public Ticket #3704924
Request for Localization Support in MarketKing Dashboard Pagination
Closed

Comments

  •  2
    YUJI OKUBO started the conversation

    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,218
    WebWizards replied

    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://woocommerce-b2b-plugin.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