Approach to duplicate content like language plugins – without duplicating the page
Approach to duplicate content like language plugins – without duplicating the page
Approach to duplicate content like language plugins – without duplicating the page
Handling gettext / string translation when WP is installed in subfolder
How to translate to a language different than the current one?
How to correct translation error in WP Astra Taxonomy block
I’m still not sure why this problem occured. I’m guessing the class loads before the WordPress translation functions do. I ended up circumventing the problem by using functions instead of variables: function ins_banister_right(): string { return __( “Rampe d’escalier à droite”, ‘co_product_configurator’); } function ins_banister_left(): string { return __( “Rampe d’escalier à gauche”, ‘co_product_configurator’); } … Read more
Plugin for translation from one account and posting in different account
.po file is loaded but changes are not appearing
Translate via URL parameter working only in localhost
To whom it may concern: finally I found a way – and it turns out to be rather simple: there is a wpml function or actually a filter that checks whether a post or page has a translation or not: wpml_element_has_translations https://wpml.org/wpml-hook/wpml_element_has_translations/ It returns TRUE if a translation exists and FALSE if there is no translation. … Read more
If this is just your own personal project with plugins you developed and they plugin won’t be more widely distributed, you could just put subdirectories inside the languages directory that correspond to the site ID and load them conditionally: function myplugin_load_textdomain() { $current_site_id = get_current_blog_id(); load_plugin_textdomain( ‘myplugin’, false, basename( dirname( __FILE__ ) ) . ‘/languages/’ … Read more