• Resolved sergiofmiranda

    (@sergiodesproweb)


    Why only the PRO version makes the location / translation available?

    WC Cancel v2.1

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Vikram S.

    (@jodhavishalsingh)

    Hi, both Free and pro version is translation ready, Can you explain how you are doing translation and what’s the issue you have?

    Thanks

    Thread Starter sergiofmiranda

    (@sergiodesproweb)

    Hi, thanks for your reply.

    When I ‘ve instaled WC Cancel Order, the only languages install were :
    wc-cancel-order-de_DE.po
    wc-cancel-order-fr_FR.po
    wc-cancel-order-hi_IN.po
    wc-cancel-order-it_IT.po

    in a path “\lang”. I didn’t found wc-cancel-order.pot.

    Well, I get wc-cancel-order-it_IT.po rename it to wc-cancel-order-pt-BR.po and change it with Poedit v.2.0(4948) free version

    The head from wc-cancel-order-pt-BR.po is:

    msgid “”
    msgstr “”
    “Project-Id-Version: WC Cancel Order\n”
    “POT-Creation-Date: 2016-02-12 19:22+0530\n”
    “PO-Revision-Date: 2017-04-09 14:05-0300\n”
    “Last-Translator: \n”
    “Language-Team: \n”
    “Language: pt_BR\n”
    “MIME-Version: 1.0\n”
    “Content-Type: text/plain; charset=UTF-8\n”
    “Content-Transfer-Encoding: 8bit\n”
    “X-Generator: Poedit 2.0\n”
    “X-Poedit-Basepath: ..\n”
    “X-Poedit-SourceCharset: UTF-8\n”
    “X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;”
    “esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;”
    “_nx_noop:3c,1,2;__ngettext_noop:1,2\n”
    “Plural-Forms: nplurals=2; plural=(n > 1);\n”
    “X-Poedit-SearchPath-0: .\n”
    “X-Poedit-SearchPathExcluded-0: *.js\n”

    Save wc-cancel-order-pt-BR.po and compile to wc-cancel-order-pt-BR.mo

    both files up to the same path “..\plugins\wc-cancel-order\lang”

    restart control panel…. and finaly: dosen’t work.
    When I tried to cancel order, I received an email in english not in portuguese.

    I’ve translated many other plugins in the same way(with *.pot file available), and always got successful.

    Could you available the newest (or compatible) wc-cancel-order.pot file for WC-Cancel Order v2.1 , then I translate it (again)?

    Thanks for your help in advance.

    Thread Starter sergiofmiranda

    (@sergiodesproweb)

    Hi, sorry I’ve made a mistake.

    when a say/did “Save wc-cancel-order-pt-BR.po and compile to wc-cancel-order-pt-BR.mo”
    The correted is Save wc-cancel-order-pt_BR.po and compile to wc-cancel-order-pt_BR.mo

    Evrething is ok. Thanks.

    But, wc-cancel-order.pot file doesn’t exist after intall.

    and this code, in wc-cancel-order-php to be modified:

    function wc_cancel_request_order_status() {
    register_post_status(‘wc-cancel-request’, array(‘label’ => __(‘Cancel Request’, ‘wc-cancel-order’), ‘public’ => true, ‘exclude_from_search’ => false, ‘show_in_admin_all_list’ => true, ‘show_in_admin_status_list’ => true, ‘label_count’ => _n_noop(__(‘Cancel Request <span class=”count”>(%s)</span>’, ‘wc-cancel-order’), __(‘Cancel Request <span class=”count”>(%s)</span>’, ‘wc-cancel-order’))));
    }

    // Add to list of WC Order statuses
    function add_wc_cancel_request_to_order_statuses($order_statuses) {
    $new_order_statuses = array();
    // add new order status after processing
    foreach ($order_statuses as $key => $status) {
    $new_order_statuses[$key] = $status;

    if (‘wc-processing’ === $key) {
    $new_order_statuses[‘wc-cancel-request’] = __(‘Cancel Request’, ‘wc-cancel-order’);
    }

    }

    return $new_order_statuses;
    }

    and wc-cancel-order.pot add:

    #: wc-cancel-order.php:152 wc-cancel-order.php:163
    msgid “Cancel Request”
    msgstr “”

    How can I send you wc-cancel-order-pt_BR.po? Do you would like to receive it?

    Plugin Author Vikram S.

    (@jodhavishalsingh)

    Hi, please download the plugin again, i have updated the language files for you.
    you can find the pt_BR translation files in lang folder.

    Thanks

    Thread Starter sergiofmiranda

    (@sergiodesproweb)

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Translation only PRO’ is closed to new replies.