Link to a .po file in a child theme
You will need to use the function load_child_theme_textdomain(). Also, there is some interesting discussion here.
You will need to use the function load_child_theme_textdomain(). Also, there is some interesting discussion here.
Have you added the Function load_theme_textdomain to the theme? so if you have them themes .mo files in theme/mytheme/languages Loads the theme’s translated strings: add_action(‘after_setup_theme’, ‘my_theme_setup’); function my_theme_setup(){ load_theme_textdomain(‘my_theme’, get_template_directory() . ‘/languages’); } Put this in your functions.php
As far as I know of translating plugins, in all of them you’ll have two sets of content (or more), one for each language: qTranslate: free, creates new input fields for the title, and additional tabs for the content. They are all handled in the same post/page screen. WPML: premium, creates a ‘mirror’ post/page for … Read more
No, they were never there. The link you posted is for WordPress.com hosted blogs, not self-hosted WordPress.org software. Refer to Installing WordPress in Your Language for info on use in other languages.
Storing it in a session would certainly be possible, but is not necessary at all. Unless you’re looking for a way to not include the query string in subsequently visited URLs. Here I’d rather go with a cookie than a session, since WP already relies on cookies and does not use sessions. But that’s a … Read more
WordPress doesn’t have built-in features for a site that is served in multiple languages. Yes WordPress has features for translating the UI labels into different languages, but not for the actual content. You are going to need to use a plugin that basically keeps multiple versions of each Post for each language and has means … Read more
It’s a bad idea because woocommerce has about 20 translations. In that case you have to translate the modified text domains, or if they don’t the 50% of woocommerce will be english, but I want spanish.
If you check out the source of human_time_diff: if ( $diff < HOUR_IN_SECONDS ) { $mins = round( $diff / MINUTE_IN_SECONDS ); if ( $mins <= 1 ) $mins = 1; /* translators: min=minute */ $since = sprintf( _n( ‘%s min’, ‘%s mins’, $mins ), $mins ); } elseif ( $diff < DAY_IN_SECONDS && $diff … Read more
You cannot do this by just adding a rewrite rule, you need to change every recorded rules. Here is a simple way to do this: function my_rewrite_rules($rules) { $new_rules = array(); $new_rules[‘(?:de|en)/?$’] = ‘index.php’; foreach ($rules as $key => $val) { $key = ‘(?:de|en)/?’ . $key; $new_rules[$key] = $val; } return $new_rules; } add_filter(‘rewrite_rules_array’, ‘my_rewrite_rules’, … Read more
Yes, sort of. Any localized plugin such as WP-Members runs off of the “locale” that WordPress is set to. This value can be filtered for WP as a whole using the locale filter. But it can also be filtered for plugins using plugin_locale See: https://developer.wordpress.org/reference/hooks/plugin_locale/ To use plugin_locale specific to the text domain for the … Read more