This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Issue with WPML String Translation – Some Custom Strings Not Translating
Started by: bradleyC-3
in: English Support
Problem: icl_register_string function and adding translations in the WPML String Translation section. gettext function is not correctly implemented; it lacks a text-domain. You should modify your code to include the text-domain, like this: __('How It Works', 'my-theme-domain'); Additionally, instead of using icl_register_string , we recommend using the wpml_register_single_string action and then retrieve the string translation with wpml_translate_single_string . For detailed guidance on using gettext, visit How to Use Gettext, and for more on registering strings, see WPML register single string. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please open a new support ticket. We also 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. For further assistance, you can contact us directly through our support forum. |
|
0 | 2 | 4 months, 1 week ago |