After some more reseach, I found load_textdomain function which can help to load .mo file from any location.
load_textdomain($domain, $mofile);
Related Posts:
- Language Translation is not working?
- Edit plugin without hooks in functions.php
- translation does not work with text_domain
- Custom values are not translated
- Plugin translations problem
- Why load_textdomain work but not load_plugin_textdomain?
- What is the way to ship read-me strings like plugin-strings for internationalization?
- Making my plugin translation ready. Poedit not working
- Read text defined under __()
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Change the backend language of a single 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?
- Force language in translate function
- Translation issue with global variables
- How to ignore extra whitespaces in translation functions like _e?
- How does translation (gettext) work for translating config file of plugin?
- Plugin not properly prepared for localization
- Translation for a text that is not printed on the screen
- Use localized plugin name and description even when the plugin is disabled
- How to translate wordpress blog to other languages?
- How to change WordPress core language using Loco Translate?
- Plugin: Translated plugin is “not translated”
- Translation plugin with default language?
- Change localization only for plugin
- WP internationalization not loaded
- Plugin translations are not loaded from translate.wordpress.org
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- How to stop showing admin notice after close button has been clicked
- How to save the values of checkbox to the register setting?
- How to get Login Error messages on a custom template
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Claim Listing functionality – how to send email to users when their claim has been approved or denied
- Creating a theme option page?
- Add post thumbnail from external image with plugin
- Where is the source code that makes the “all” array grabs filters in the $wp_filter?
- Options page not displayed under Settings menu
- Is it possible to add an action to the currently running action?
- How to include and use custom class files in plugin?
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- unzip a folder on specific location and delete the zip file
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- Dynamic CSS Vs Inline Issues in Code any Way around in a WordPress Themes?
- Is license need for free wordpress plugin
- plugin development: problem with functions
- Getting a List of Categories for Use in a Plugin?
- How to add links in .po (language) file in wordpress?
- Building plugin with changeable custom post type values…advice needed
- How to get all of the activate_plugin action parameters?
- Display update notification messages like ‘What’s New’
- How can I make 2 plugins that include different versions of a framework to both use the latest version?
- Add Plugin options as subpage to Theme options page
- Image upload and download from front-end
- correct way to include a library(and its dependent libraries) in wordpress development
- Issue Tracker from pre exsisting table [closed]
- WP_Terms_List_Table Quick Edit not working
- Git Hosting for WordPress SVN Plugin Repository [closed]
- Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
- How to exclude certain files from the plugin editor?
- Stop Plugin from Getting Styles from Other Plugin
- How do I make a secure API call from a shortcode when a button is clicked?
- WordPress REST API Plugin Development – Add Custom Endpoint
- Hook into the rendering of a WordPress Template
- Default taxonomy template in plugin, override in theme
- Setting Email locale before retrieving gettext translations
- Save user total active time after login in wordpress [closed]
- WordPress gtag.js with User ID tracking
- wp_loaded with static Singleton
- How to remove a CPT Menu from the Root Admin only
- Get post_id on clicking a link in WordPress
- WordPress.org: How to add a plugin for certain countries?
- Calling a save function from a “submit” button
- Wp Debug Enabled True Notices and Warning
- How to translate wordpress backend to another language
- Select Form Element Not Saving from Plugin Options
- My widget won’t update its values when save is clicked
- Can we give Pending as a Role to wp_insert_user?
- How to automatically activate users after registration without activation email?
- Pass PHP variable to javascript
- Table of contents (TOC) plugin is not showing header tag
- Custom page from wp admin area
- Unexpected add action function in WP plugin
- Avada Live is broken on WP
- Make downloadable ebook read online without download option
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- WordPress rewrite rule depend on meta values not ids
- Problem with wordpress has_action() function
- Offering a freemium plugin (a free version + paid version)
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- Making a Custom Post Type Plugin – keep getting the white screen of death
- Limit Google Ads to particular blog posts
- Communicating to plugins from webserver
- Buddypress Member list not showing admin and mods
- Hook into install email
- Shortcode in a blog post, footer and related products stop working
- Editing a built plugin: How to activate it only on a single post page
- Autoloading a PHP class – working outside, but not inside WordPress plugin
- Linking Plugin Files to WP
- How to host a WordPress plugin on my own server and provide updates?
- Testing Plugin – Install plugin dependencies in testing enviroment