This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Getting an __() string in a specific language
1
2
Started by: usahello
in: English Support
Problem: wp_set_script_translations function to ensure that the JavaScript file recognizes the localized strings. This involves generating a .json file from the .po file and ensuring it is loaded through a WordPress hook. Here are the steps: function usahello_demo_set_script_translations() {<br /> wp_set_script_translations('create-block-usahello-demo-editor-script', 'usahello-demo', plugin_dir_path(__FILE__) . 'languages');<br />}<br />add_action('init', 'usahello_demo_set_script_translations');<br /><br />function usahello_demo_block_load_textdomain() {<br /> load_plugin_textdomain('usahello-demo', false, 'usahello-demo/languages');<br />}<br />add_action('plugins_loaded', 'usahello_demo_block_load_textdomain'); For more detailed guidance, refer to the WordPress documentation on how to handle internationalization in block editors: Internationalization in Gutenberg. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, you can open a new support ticket for further assistance at WPML Support Forum. |
3 | 18 | 3 months, 2 weeks ago | ||
Preview not working with WPML 4.6.7
Started by: usahello in: English Support |
2 | 5 | 1 year ago | ||
Translated pages randomly revert to default language
1
2
Started by: usahello in: English Support |
2 | 17 | 1 year, 3 months ago | ||
String grouping in XLIFF export different from ATE
Started by: usahello in: English Support |
2 | 6 | 1 year, 7 months ago | ||
Translating CSS ID from Gutenberg
1
2
Started by: usahello in: English Support |
2 | 17 | 1 year, 7 months ago | ||
icl_post_languages_options_before filter doesn't work after AJAX post update
Started by: usahello in: English Support |
2 | 8 | 1 year, 9 months ago | ||
Updating media translations in existing posts
Started by: usahello in: English Support |
2 | 8 | 2 years, 6 months ago | ||
Disabling language post count
Started by: usahello in: English Support |
2 | 7 | 2 years, 8 months ago | ||
"Minor edit" option doesn't appear in the Language panel
Started by: usahello in: English Support |
2 | 12 | 2 years, 8 months ago | ||
Post duplication does not replace internal links for heading tags
Started by: usahello in: English Support |
2 | 16 | 4 years, 4 months ago | ||
Reusable Blocks don't show translated version in Gutenberg editor
Started by: usahello in: English Support |
2 | 9 | 4 years, 5 months ago | ||
WPML seems to clash with loading javascript string translations of custom blocks
1
2
3
Started by: usahello in: English Support |
2 | 33 | 4 years, 8 months ago | ||
Cannot get $sitepress->switch_lang() to work in an ACF filter
Started by: usahello in: English Support |
2 | 8 | 4 years, 11 months ago |