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 topic contains 38 replies, has 3 voices.

Last updated by Fabian 1 month, 1 week ago.

Assigned support staff: Sumit.

Author Posts
July 8, 2019 at 9:02 am #4160405

Fabian

I am trying to:
use my website in german

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

I expected to see:
hidden link

==> i expect german versions

Instead, I got:
hidden link

==> english versions

July 8, 2019 at 3:59 pm #4164187

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello

When I visit your site, I am seeing the correct strings. Did you perhaps already fix the problem yourself?
Am I looking in the wrong place for the problem?

Maybe you are referring to the column headings? "Contact, Pages, Topics, Journals"?

Thank you for the clarification

July 8, 2019 at 4:09 pm #4164281

Fabian

Hi
it's about the word above: Contact Pages etc.
What you see translated are contents from menues, pages, etc, these work fine but what is broken are the strings in the theme php templates called via __();

July 8, 2019 at 4:12 pm #4164293

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Ok. Thank you for clarifying.

Temporary Access to your system
Please provide access to your system (wp-admin and ftp) so that I can further investigate this particular problem. The fields to provide this data are included in a private section that I will open for your next response. You can find it above the comments area. The information in this private section is only visible between WPML Support and you.

July 8, 2019 at 4:33 pm #4164391

Fabian

can you please send me a ssh pubkey since we have a vm with ssh/sftp without pw.
greets

July 9, 2019 at 11:43 am #4170291

Fabian

please resend secureform option
i have details now

July 9, 2019 at 1:37 pm #4171303

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Ok - here it is opened.

DO I still need to get the ssh pubkey?

July 9, 2019 at 5:48 pm #4173567

Fabian

no you can work with these

July 10, 2019 at 10:49 am #4178969

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Thank you so much.

So, with widgets, sometimes the translation can be tricky. The translation is best done by defining a separate widget for each language (see image).

I´ve done this for your for the "Contact" widget.
As you can see, if you switch languages now, the desired result is achieved.

You can now do this for the other widgets.

Does this resolve you issue?

July 10, 2019 at 12:33 pm #4180287

Fabian

Hi
thank you.
this moves the problem for this particular place
but here: hidden link comes from
<?php echo __('Topics', '_tk'); ?> and remains english which is the main issue.
greets

July 10, 2019 at 1:52 pm #4180933

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello

Well - I checked the code where this appears and can confirm that you have coded it correctly. I also tried adding direct calls for the single string translation and it is till not working.

This means that there is some kind of conflict happening.

Please try temporarily deactivating all non-WPML plugins and see if your call works.
If it is still not working, then I can only deduce that it might be something in the way you hae coded your theme in general.

Thanks

July 10, 2019 at 2:06 pm #4181183

Fabian

well on lexxion.codel1.de (which is the dev) i dont see that happening
and i dont think the code differs there

July 10, 2019 at 2:10 pm #4181197

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Well - are the two installations on the same server?

If it works in dev, then the next step is to determine what the difference is between the two installs. From what I can see, there was nothign wrong with your approach nor with the code. All things being equal, then the issue lies with the server setup or the instance configuration which is not necessarily a WPML issue.

July 10, 2019 at 2:55 pm #4181747

Fabian

ok i have to correct myself
the issue came on dev too after i updated wpml to latest version.
so it didnt exist before updating it
it is no server issue
either bug or database issue.
we can now switch to dev to search for reason.

July 10, 2019 at 5:33 pm #4183349

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Ok - good to know that we can debug the dev server.

So, please do the diagnostic that I suggested there: deactivate all non-WPML plugins and check if it still does not translate.

It could be that you are using outdated or no longer supporte WPML API calls (just a theory) or that there is a compatibility issue with the new version of WPML and one of the plugins.

I wait for your response on this step to then keep investigating.