Skip Navigation

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

Problem:
The client was unable to translate some strings from SolidWP plugin, which did not appear in the WPML String Translation or Admin Strings.
Solution:
These strings are managed by JavaScript code in the SolidWP plugin. WPML currently does not support direct translation of strings loaded from JavaScript files. However, a workaround is available which involves a method similar to what is described for the LearnPress plugin. We recommended reviewing the documentation on translating JavaScript strings, which can be found here: https://wpml.org/errata/translating-strings-from-javascript-files-using-wp_set_script_translations/ and https://wpml.org/errata/learnpress-cant-translating-strings-from-javascript-files/.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 0 reply, has 0 voices.

Last updated by ericH-23 4 months, 3 weeks ago.

Assisted by: Otto.

Author Posts
February 20, 2025 at 8:19 pm #16731284

ericH-23

Hi,
Thanks, ok, I will check this, so I have to install Loco and will test this.
But can you check also as an example the translation of the text in the enclosed screenshot? This is not javascript and here I need to know how I nhave to handle this.
Thanks, kind regards
Eric

16711360-solidwp_strings-150x150.png
February 20, 2025 at 8:47 pm #16731391

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hi Eric,

I scanned the plugin code and:
"Passkey Registration failed." only appears in the Javascript file:
pro/passwordless-login/entries/register.js

The same with: "This site uses Passwordless Registration".

"Cannot create a user with an empty login name" does not appear at all in the plugin code. But it seems to be available for translation in WPML > String Translation. Please check the screenshot attached.

Best Regards,
Otto

CleanShot 2025-02-20 at 17.46.18.png
February 20, 2025 at 8:56 pm #16731424

ericH-23

Hi,
Ok, I learned now, that these strings are only to be translated with Loco.
Thanks, kind regards
Eric