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 12 replies, has 2 voices.

Last updated by Noman 5 months, 4 weeks ago.

Assigned support staff: Noman.

Author Posts
April 14, 2019 at 12:40 am #3605809

patriciaA-10

Tell us what you are trying to do? We have an all English site that we have already translated all of the content into French but we need to translate the theme items, i.e. logins, search button, error messages, etc.

Is there any documentation that you are following? I need assistance using the string translation

Is there a similar example that we can see?

What is the link to your site? hidden link

April 14, 2019 at 1:08 pm #3607979

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support.

1. If you want to translate strings that are coming from Customizer/Theme options then please try to follow this doc:
https://wpml.org/documentation/getting-started-guide/translating-theme-options/

2. If you want to translate strings that are coming from PHP files then those strings should be wrapped in the gettext functions __() with some text domain like 'themedomain’. You can see example code here::

__('Hello World','themedomain');

- Please scan the theme from WPML >> Theme and plugins localization section.
- Then search strings from WPML >> String Translation and add it’s translation.

3. If still issue persists, please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Thank you

April 14, 2019 at 2:44 pm #3608135

patriciaA-10

I don't think you are understanding what we need. The entire site is English (i.e the theme etc.) and we have added all of the content in French. Now we need to translate the small pieces of the theme like, "Search" "You are logged in as" Error messages, things like that, - I have scanned the theme and gone into the Strip Translation, I've even entered the French translation for Search everywhere I can find search, but it doesn't appear on the front end. The site isn't ever going to have 2 languages, it will remain as is but we need the English theme items to show in French. Is it possible to translate English into French on the one language site?

What this appears to be doing is allowing me to translate the dashboard elements of the theme rather than the items that are on the site.

April 15, 2019 at 10:01 am #3611949

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

So, you are trying to translate english text in French and you want to display frontend only in French language, is it right?

To take a closer look on this issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

Thank you

April 16, 2019 at 1:46 pm #3622567

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thanks for the login info. I am working on this issue and get back to you with my findings.

Thank you for your cooperation and patience.

April 16, 2019 at 4:41 pm #3624073

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

I have logged in to your site and set your default language as French and issue is gone as you can see in the attached screenshot.

Could you please check and confirm?

Thank you

April 16, 2019 at 7:35 pm #3625107

patriciaA-10

Hello, this is not how we wanted to fix the issue because not all of our admins speak or read French and therefore we need the dashboard to remain in English and the strings to be translated to French on the frontend of the site - please advise.

April 17, 2019 at 8:02 am #3628149

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

I have followed similar steps that describe in this doc:
https://wpml.org/documentation/getting-started-guide/language-setup/setting-the-wordpress-administration-language/
and changed WordPress admin language to English as you can see in attached screenshot.

Could you please let me know if this resolves your issue or you need further assistance.

Thank you

April 17, 2019 at 4:13 pm #3632635

patriciaA-10

Unfortunately the dashboard is still displaying in French and now the url for the site contains a /en/ in every string. Can you please review again?

hidden link

April 17, 2019 at 4:33 pm #3632983

patriciaA-10

I believe the WMPL plugin is messing up the functionality of the site. It changed the homepage settings and is now trying to get me to add the homepage to the list of items to be translated. We dont want to translate any on the CONTENT or the PAGES - we only need the WordPress items and the theme items that display on the FRONTEND to be translated!!

April 17, 2019 at 4:59 pm #3633309

patriciaA-10

I have reverted the dashboard back to English. Please advise if what we are needed to do can be accomplished with WMPL?

April 18, 2019 at 3:27 pm #3640407

patriciaA-10

I will assume from the lack of response that the WMPL plugin cannot do what we need it to do. Please issue a refund for the purchase of the plugin. Thank you.

April 18, 2019 at 5:32 pm #3641159

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sorry for the delay in getting back, we are getting bit loaded queue today. Below are the details regarding your questions:

1. To have site in French language (and only one language site), the default language should be setup as French. If you set the default language as English the texts coming from Theme and Plugins may load in English because that’s what they will see as site language on the root page (however the pages with /fr will load correct text strings).

2. When I changed default language as French, all frontend text strings changed to French as they should be. For backend we have setting in user’s profile page to setup Editing language for specific user or admins. That setting changed the backend language to English for the user I tested with. However there were some backend text might be in French still because those are coming from directly the plugins or theme (and perhaps from the .mo files already being added to the site, those can be deleted to resolve the issue).

- WPML allows to translate site into multiple languages (multilingual), your requirements are somewhat unique and may need some custom work and adjustments to handle certain conditions which falls out of our support policy (https://wpml.org/purchase/support-policy/), we recommend contacting one of our certified service providers for such cases who can give you more dedicated development help for your site: https://wpml.org/contractors/

3. If you still prefer to get the refund please Go to your WPML Account page and click “Get a refund” button.
https://wpml.org/account/
https://wpml.org/account/view_order/

https://wpml.org/purchase/refunds-policy/

Thank you so much for your cooperation and understanding.

The topic ‘[Closed] String Translations’ is closed to new replies.