Yes, you can load multiple translation files for multiple text domains in one plugin. This is sometimes useful, for example when you need just one string in AJAX calls and many strings in the rest of the application: to make AJAX faster, load a separate translation.
Be aware, automatic language updates for the plugin from wordpress.org will probably not work with that, they don’t expect more than one translation.
Never ever use plugins_loaded
to load a translation. You don’t create output here. Wait for the first call to a translation function, make sure you don’t load the translation when it isn’t needed. The comment post file, XML RPC or AJAX are common places where plugins slow down everything without any benefit.
Related Posts:
- Translate a plugin using .po .mo files
- Overwrite textdomain of plugins by default – Lost Translation
- translation does not work with text_domain
- How can I translate the name of my Plugin for other languages?
- What is the way to ship read-me strings like plugin-strings for internationalization?
- Override plugin text domain in child theme
- Making my plugin translation ready. Poedit not working
- Internationalization: Not loading plugin translated text
- Use translated taxonomy labels in plugin
- What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
- Is there a way to test that readme looks in other language before submitting translation?
- Setting Email locale before retrieving gettext translations
- Translation issue with global variables
- How to ignore extra whitespaces in translation functions like _e?
- Plugin not properly prepared for localization
- How to translate user added content in a plugin
- Rename existing cpt and taxonomy with new textdomain
- Use localized plugin name and description even when the plugin is disabled
- I dont know why my localization is not working
- Locale changed but plugin still showing default language
- Admin Notice is only localized when displaying the “Plugins” Backend Page
- Can I leave off plugin textdomain for terms used in core?
- __(): What if I have to pass in a variable?
- Overriding single plugin translation
- Using plural-only translation of register_post_status() in plugin
- Can’t set proper WooCommerce language translation [closed]
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Why can I not use a class constant as text domain?
- Internationalization and the plugin description
- Plugin readme.txt and assets internationalization
- Custom values are not translated
- Localization / textdomain is slow and chaotic
- Plugin translations problem
- Translate wordpress plugin [closed]
- Translate third party plugin and save translation files in custom theme
- Why load_textdomain work but not load_plugin_textdomain?
- How WordPress knows where to find locale files?
- Automatically translating from existing .po and .mo files?
- Are contributed plugin translations automatically installed in WordPress?
- Prepare plugin options for multi-lingual support
- Translating plugin inside the theme [closed]
- Can I use the same textdomain in two separate plugins?
- Localiztion in javascript
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- load_theme_textdomain path
- Why is the generated POT file from WordPress.org not adding my plugin description to the POT file?
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- How to add links in .po (language) file in wordpress?
- Change the backend language of a single plugin
- Action hook load_textdomain $domain variable
- Translating long texts with html formatting
- Working with .po and .mo files translation
- Is it possible to use multiple post_name, post_title and post_content?
- How to merge two .PO language files?
- A new translation folder overrides my usual translation from “nowhere”
- Is there any way to use google input tool or any other language keyboard with WordPress [closed]
- Force language in translate function
- Can I load the textdomain before a plugin is activated?
- Load plugins’.mo and .po files from a directory
- How WordPress is able to change locale without using setlocale
- How I can internationalize variables within the function _e () __ (), etc?
- Plugin for single language localisation [closed]
- Does the textdomain have to be the theme’s name?
- WordPress Theme .mo-file won’t load
- Using wordpress translations strings in plugin
- Translations for my plugin don’t show up
- How to translate WP Blog (search, category etc.)?
- How to translate wordpress error message
- How does translation (gettext) work for translating config file of plugin?
- Translate plugin admin interface
- Override translation of 1 word
- Replace woocommerce | (pipe) separator in product variation to , or another character?
- Localise settings section headline
- I’m looking for a visual composer / builder plugin that supports RTL
- How to install a translation for a WP plugin?
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- Translation for a text that is not printed on the screen
- Translations not appended even strings are edited
- How to translate wordpress blog to other languages?
- translate wordpress website from english to arabic
- How to change WordPress core language using Loco Translate?
- Securing langugae folder
- How connect my plugin translation to my page
- Suspect incomplete .pot file – what to do?
- wordpress plugin translation not working
- Plugin: Translated plugin is “not translated”
- Translation not working for Constant strings in Plugin
- Translation plugin with default language?
- plugin translation is not working
- Change localization only for plugin
- Plugin Translation project not found
- WP internationalization not loaded
- Notice: Use of undefined constant Redux_TEXT_DOMAIN – assumed ‘Redux_TEXT_DOMAIN’
- Internationalization of Blog Posts
- Google Language Translator – Manage Translation
- Loading Canvas & WooCommerce translation file in child theme
- Apostrophes replaced by '
- Gtranslate function with custom menu
- plugin translations not reflected in admin dashboard
- Plugin translations are not loaded from translate.wordpress.org