Technically, this is possible. Just make sure to use your strings after the parent plugin has loaded its language file.
In terms of maintainability, this is not optimal. Your create a very strond dependency here: each time the parent plugin changes a string (adding a dot, removing a white space), you have to change your strings too.
I would do this only to save a lot of memory (1 MB or more) and when I knew the developer for the parent plugin creates really useful commits. Otherwise, you might miss some changes.
And Marko points out one important aspect: You need a tool for the pot files, that creates these files based on the text domain, or you wouldn’t save much. Codestyling Localization can do that, but it has other issues. I am not aware of a really good solution here.
Related: Can I leave off plugin textdomain for terms used in core?
Related Posts:
- Make dynamic string translatable
- How to make a WordPress plugin translation ready?
- How to provide translations for a WordPress TinyMCE plugin?
- Problems with localization
- How does gettext works for translating readme file of plugin?
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore
- use __($str) to translate strings (symfony/twig)
- Plugin Localization
- Is it possible to check is loaded language files correctly with WordPress plugin?
- Translate strings not recognised in plugin
- How to i18n text coming from the db or from an external source
- Should I always prefer esc_attr_e & esc_html_e instead of _e?
- Should shorcodes in i18n plugins be translated and if so, how?
- Widget translation on my plugin
- Plugin translations not installed but… strings are translated!
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- Generate JSON files for language translation from po file without wp-cli i18n make-json
- Build a translation correcter plugin
- Translation per IP location [closed]
- Translate slug in WPMU with PO files
- Translate MCE button text/tooltip in custom plugin
- esc_html__() and __() not working within arrays
- How to prevent someone from entering strings without making it available for translation?
- Readme.txt seems to be cached but not the version
- Return Value of load_plugin_textdomain
- Translate javascript with WordPress built-in localization API for static strings
- Plugin language always shows WP site language, not profile language
- Is hint for translator compulsory while internationalizing a string containing variables?
- Translating plugin settings page – dropdown list
- Using HTML links within translatable string
- How to translate wordpress backend to another language
- Translations only load from `wp-content/languages/plugins` but not from the plugin’s languages folder
- Include external po file for 3th party plugin to theme
- HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used
- Default media uploader is not showing in wordpress website
- Load custom translation in custom plugin fails
- Add language localisation to javascript alert?
- How to store in the database directly the translation?
- Translation not working for Constant strings in Plugin
- Load textdomain from global languages directory
- Plugin translation not being displayed
- Problem with Poedit [closed]
- How to translate WP plugin name?
- get the queried_object of an url
- Save translation file of third party plugin in a custom plugin?
- WP 3.3 How to Add Menu Items to the Admin Bar?
- Unit tests – Dealing with dependencies
- Changing Plugin Load Order
- How should you hook a session_start() when authoring a plugin?
- How to change wordpress post title?
- How to create a plugin that only operates on the home page?
- Adding callback function for wp_ajax_ has no effect
- How to properly modify get_userdata in plugin to get roles to update in database
- Create a plugin to change the action to which a function is hooked
- Why is the reset password key missing in the reset password email?
- Paging on a future post loop?
- How to pass custom options from widget form to widget update callback?
- How to show large image in checkout page using WP Ecommerce plugin [closed]
- Why do I need to check if wp_nonce_field() exists before using it
- edit_{$taxonomy} | Hook
- Worpdress cannot create directory
- How to associate an existing user to a site in a multisite setup programmatically
- Changing upload dir in a plugin regardless of post type
- creating custom function to log actions in plugin
- Howto: Use Custom Post Types as Submenu Items in Admin
- How to localize admin.php only once
- How can I get a list of CPT inside a plugin file?
- Creating a custom Gutenberg block with columns
- Serve text/html from wp-json API via WPEngine, headers not being set properly
- Fixed values for same post translations
- Add a new confirmation page before saving
- Plugin is not generating title tags on any pages or posts
- Plugin Development/ Stop CSS clashes.
- Add Link Category on Activation?
- Add child pages to submenu automatically
- Creating multiple wp_editer() text fields in for loop — the text/visual switch only works for first editor
- Create page (not the post type) dynamically
- Updating transient value frequently
- AJAX button with success callback. (Titan Framework)
- How to add a route?
- How can I prevent ‘500 internal server error’ because of a long install process?
- Displaying custom content from a plugin within the active theme
- Downloading File via headers doesnt work
- Add variables from rewrite rules to query var
- Code for cron to delete posts that contain specific expression (e.g. “unable to fetch” every 30 minutes
- pull data from wordpress database
- Object Oriented plugin, add action and variables
- Change the search results header from plugin
- Tracing dashboard publish settings from input form in WordPress
- Virtual Page with Registration form
- Is there such a thing as a WordPress console?
- Images not displaying on live server
- redirect word-press page with page values
- Forcing the Uninstall Hook to fail
- Is there a canonical way for a plugin to install a mu-plugin or drop-in?
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- Calling get_header() with installed FSE theme
- Reinitiate Gutenburg’s blocks using javascript