• Resolved worldless

    (@worldless)


    Hi…
    First of all it would be way more awesome if you could allow the admin to add custom fields and names instead of the preset fields because none of these options are the ones I was looking for.

    So I tried changing the names (using Poedit) and removing the unnecessary parts instead but it seems like changing the language has no effect on the front end. it only works on the admin area. I mean what’s the point of changing the language only on the backend while the most important part is the front end ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mcgregormedia

    (@mcgregormedia)

    Hi,

    Unfortunately adding custom fields is beyond the scope of this plugin.

    The translation files do work on the frontend – it already had an English (UK) translation and today I’ve added English (Canada). I’ve tried on two separate installs and couldn’t replicate your issue.

    Changing the labels using a translation isn’t a good idea as they’ll be overwritten with every update. Maybe fork the plugin to prevent that?

    Andy

    Thread Starter worldless

    (@worldless)

    Unfortunately adding custom fields is beyond the scope of this plugin.

    I know but at least it would be great to have the options for changing the labels on the backend.

    The translation files do work on the frontend – it already had an English (UK) translation and today I’ve added English (Canada). I’ve tried on two separate installs and couldn’t replicate your issue.

    Andy I have no idea what you did to replicate the problem but here is what I did:

    – open the GB .po file in Poedit and change, say “Company name”, to something else like “My Company”
    – check the back and front-end for the changes

    you can clearly see “My Company” on the backend and “Company name” on the front

    There’s no surprise though. with my very limited knowledge in php I checked the file class-purchase-order-gateway.php for “Company name” at lines 168 and 424 “. the line 168 has all those elements for translation:
    'title' => __( 'Company name', 'pofwc' ),

    but the line 424:
    <label for="purchase-order-company-name">Company name<?php echo $company_name_required_text; ?></label>

    I don’t know! I’m not a coder but I don’t see anything regarding the translation. it’s just a label.

    I hope this will help

    • This reply was modified 4 years, 2 months ago by worldless.
    Plugin Author mcgregormedia

    (@mcgregormedia)

    This has been fixed in the next release ??

    Thread Starter worldless

    (@worldless)

    The issue has been resolved. thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Language doesn’t work on the front end’ is closed to new replies.