This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This thread is resolved. Here is a description of the problem and solution.

Problem:

The client is having trouble translating shipping method strings from Weight based shipping and Smartpost Eesti.

Solution:

-go to WPML > Settings > Custom XML Configuration and copy this code snippet below and save.

<wpml-config>
  <admin-texts>
    <key name="woocommerce_smartpost_estonia_settings">
      <key name="title"/>
    </key>
    <key name="wbs_config">
      <key name="rules">
        <key name="0">
          <key name="meta">
            <key name="title"/>
          </key>
        </key>
        <key name="1">
          <key name="meta">
            <key name="title"/>
          </key>
        </key>
        <key name="2">
          <key name="meta">
            <key name="title"/>
          </key>
        </key>
        <key name="3">
          <key name="meta">
            <key name="title"/>
          </key>
        </key>
      </key>
    </key>
  </admin-texts>
</wpml-config>

Relevant Documentation:

https://wpml.org/documentation/support/language-configuration-files/#admin-texts

This topic contains 8 replies, has 2 voices.

Last updated by Dennis 6 months ago.

Assigned support staff: Dennis.

Author Posts
March 12, 2019 at 3:20 pm

martH

I am trying to: Translate Checkout page

Link to a page where the issue can be seen: hidden link

I expected to see: All transport methods and one payment method to be translated

Instead, I got:
In Checkout page there are some items not showing translation, although I have translated them in String Translation.

March 13, 2019 at 8:41 am #3330835

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Welcome to WPML Support forum.

I noticed that you only have one shipping method activated for each zone which makes me wonder how the other shipping methods were made available even if its not activated.

As a test, could you please make a test purchase on a 'incognito window' (if you're using chrome browser) or 'private mode' (if you're using Safari).

Does the shipping methods appear when you try to checkout?

Please let me know your results.

Kind regards,
Dennis

April 12, 2019 at 7:43 am #3595745

martH

Hi!
Thank you for your answer!
That's true, in private mode the shipping methods not appeared. Thank you for this observation!
The first shipping method is set by zone, but other two is made by plugins (Weight based shipping and Smartpost Eesti). Is this problem?
But why they all disappeared in private mode? Can you give me an adivice? And how to translate them?
And how to translate one payment method (Sularahas)?

Thank you!

April 12, 2019 at 9:11 am #3596915

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Thank you for your reply.

I tried to access your site using the provided access details but it does not work. It seems that access details are now invalid.

Could you please provide me the updated access credentials? I will enable the access information box so you can securely share it with us.

Thank you.

Kind regards,
Dennis

April 15, 2019 at 7:19 am
April 15, 2019 at 9:49 am #3611843

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Thank you for providing us with the updated access details.

I will try to build a Duplicator package, download a copy and deploy on my local machine. Then I will continue debugging your site locally and will give you feedback when I got some results.

Kind regards,
Dennis

April 15, 2019 at 12:36 pm #3613443

martH

Thank you so so much for your help!

April 16, 2019 at 10:10 am #3620859

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Thank you for waiting.

To translate 'Sularahas' string, please go to WPML > String Translation and search for 'sularahas' string and translate the string like on the attached image.

For DPD Kuller and Smartpost Esti strings, please go to WPML > Settings > Custom XML Configuration and copy this code snippet below and save.


<wpml-config>
  <admin-texts>
    <key name="woocommerce_smartpost_estonia_settings">
      <key name="title"/>
    </key>
    <key name="wbs_config">
      <key name="rules">
        <key name="0">
          <key name="meta">
            <key name="title"/>
          </key>
        </key>
        <key name="1">
          <key name="meta">
            <key name="title"/>
          </key>
        </key>
        <key name="2">
          <key name="meta">
            <key name="title"/>
          </key>
        </key>
        <key name="3">
          <key name="meta">
            <key name="title"/>
          </key>
        </key>
      </key>
    </key>
  </admin-texts>
</wpml-config>

-then go to WPML > String Translation and translate those strings.

Does it help? Please let me know.

Kind regards,
Dennis

April 16, 2019 at 12:36 pm #3622101

martH

Thank you! But can you give me an advice, why those shipping methods disappears in Private Mode?
Diana

April 17, 2019 at 1:45 am #3626235

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

I'm not quite sure if it's related to WPML but it could be something related to cookies as cookies are handled differently when browsing in incognito/private mode. To test if it's related to WPML, please try to deactivate WPML plugins and see if the issue is resolved. If not, it's probably not related to WPML.

If you feel you still need assistance for this additional issue, as this will also need a separate troubleshooting process, Please fee to open a new ticket in support forum.

Please consider our support rules, we are able to handle only one issue at the time. This help us to bring you a better service and also help other users to find all the information here exposed. This way, we can keep our forum organized into topics, so other searching for solution for their issues can easily find the solution organized into different topics and avoid confusion.

Kind regards,
Dennis