Assuming the plugin makes use of localization at all, you could for example try exchanging the possible load_plugin_textdomain
call with load_textdomain
where you can point to the file you like.
A cleaner way would be using the plugin_locale
filter that let’s you modify the locale used by a plugin:
function my_plugin_locale_filter($locale, $domain)
{
if($domain === 'the_plugins_textdomain')
{
return 'cy_CY';
}
return $locale;
}
add_filter('plugin_locale', 'my_plugin_locale_filter', 10, 2);
That way the plugin can more or less safely be updated without the custom code being overwritten.
Related Posts:
- How to keep plugin translations after updates?
- Edit plugin without hooks in functions.php
- How to use load_plugin_textdomain from within a theme
- Why load_textdomain work but not load_plugin_textdomain?
- Language Translation is not working?
- allow arabic letters when register new account
- WordPress language switcher
- How to set a custom title per language?
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- load_theme_textdomain path
- Change the backend language of a single plugin
- WordPress change Language not working
- Force language in translate function
- Display site language setting in source code
- How to handle a WordPress blog with articles in different languages?
- Language translation on a fresh english installation
- Change language in SiteOrigin Widgets
- I have English words in Kurdish pages
- How to translate wordpress blog to other languages?
- How to change WordPress core language using Loco Translate?
- WPML – Hook when language is switched (change user language)
- How do I add languages?
- Function get_locale always returns en_US in plugin?
- How do I change a plugin language of only one page?
- Translation plugin with default language?
- Change localization only for plugin
- How to get the list of languages provided by a plugin
- WordPress Site in Multiple Languages
- GTranslate Plugin – Showing Different Codes With if-else
- Multilingual WordPress Website with multiple source languages
- WordPress gtag.js with User ID tracking
- Creating a functionality plugin to edit seriously simple podcasting
- Override plugin class which has namespace
- in source code but I can’t find it in files or plugins
- Historical customisations won’t go away [closed]
- Is it unethical to remove another plugin’s meta keys?
- Disable plugin If slug contains specific word
- How to include a custom field in the woocommerce email?
- get_comments_number() giving wrong results! What are alternatives?
- Plugin temporary files and files to download via FTP
- $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
- Why does this code snippet create a critical error on my site? [closed]
- What is the purpose of a companion plugin
- woocommerce search by sku and title ajax
- How to extract a .wp-env.json or composer.json containing plugin versions from a production website?
- jQuery Click event is not fired at all
- WordPress: Add custom add_filter for custom functions
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- Is there a script to collect all hooks and filters provided by a plugin?
- How to manipulate the content within wp_head
- Getting error “Warning: mysql_query(): Can’t connect to local MySQL server through socket ‘FILEPATH/cccatalog-plugin.php on line 1656”
- Change in one place the data about the company, which are placed on several pages
- Programatically upload a file to be stored inside blob field in database, NOT on filesystem
- Woocomerce add info after order email prouct item
- Updating WordPress plugin admin panel footer text
- WordPress super admin login issue. (Automatically logout)
- How do I add a plugin dependency to my customized theme?
- WordPress – source link plugin – how to modify it?
- How WordPress core manage the plugin installation
- Flickering sidebar when scrolling page [closed]
- How to add table class for tables of TinyMCE advanced wordpress plugin? [closed]
- All in One SEO Pack error message
- Shortcode not working – quotes seems strange
- Displaying content based on drop-down menu selection sitewide
- How do I make a shortcode to display the shop name on Dokan?
- Background Music WP [closed]
- How to fix broken media library?
- WordPress failing to update plugins
- Image tooltip enable/disable
- Using custom fields for image alt and title
- DB Query not working in Plugin
- Remove Pagination for Product Category Pages WooCommerce
- Is there a plugin or a way in the wordpress that would let us have different versions of a post or page accessibe to users?
- Error trying to update plugins
- Get all the URLs of the pages that uses a specific shortcode
- WordPress permissions error with admin account
- Deactivation Hook does not remove database
- Looking for Gallery Plugin [closed]
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- Notice: Undefined index: mtral_field_subscriber
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- Delete free version plugin will also delete premium plugin
- add seperate suffix for low price and high price in woocommerce
- WordPress Editor completely blank [closed]
- Moving FB comments at the end of page
- Change the layout of action links under the plugin names
- Assign all Post in Wp to a specific Category
- How can i add simple code in only in posts by function.php
- Passing Parameters from shortcode to enqueue script
- Get products list by url key in WordPress Woocommerce [closed]
- URL rewrite with external JSON query
- Cross Sells are not being shown in Cart Page. Please Help!
- Possibility to login without password
- How to display registered customer list as dropdown in WooCommerce checkout?
- Using custom php file for ajax url inside plugin
- How do I create a custom permalink structure for a page template
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]
- simple-job-board Plugin throws an error on live server [closed]
- Where Should i write the code for wordpress ajax voting?
- How to remove a class function from a plugin by using remove_action()?