How do I translate this string – PHP syntax question
I need some help on how to correctly format this code snippet for translation: <?php next_post_link( ‘%link’, __( ‘<span class=”meta-nav”>←</span> Nästa nyhet’) ); … Read more
I need some help on how to correctly format this code snippet for translation: <?php next_post_link( ‘%link’, __( ‘<span class=”meta-nav”>←</span> Nästa nyhet’) ); … Read more
I have a WordPress multisite, which is in both english and french. On the french site, localization is working great (using date_l18n() for … Read more
I have a child theme which is not localized. So I added this in function.php add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ ); function my_child_theme_setup() { load_child_theme_textdomain( … Read more
A plugin I maintain uses Twig templates to produce HTML (and some other outputs). I’ve tried using __() within these (first adding the … Read more
I’m going through some legacy code and adding i18n functions throughout when I stumbled on a localisation snippet I found inside a pre_get_document_title … Read more
I’ve learnt how to internationalize my plugin, but that does not seem to cover documentation (readme.txt), screenshots and banners (assets). I’d like to … Read more
I am envisioning WordPress on the back end to work with React.js on the front end like this: WordPress is installed on http://example.com/api … Read more
I’m trying to set localization for a Gutenberg block. After scaffolding a basic block with wp-cli command npx @wordpress/create-block, I need to set … Read more
I localized a part of my application with creating a base.lproj storyboard and 3 string files for it. It was a month ago … Read more
I am using paginate_links on my custom page query. What I have already works sweet and this is the code I have so … Read more