I just found it, it’s because I missed placing the text domain in ” in my php code.
It should be
__('Read More', 'my-custom-dragon-plugin');
instead of
__('Read More', my-custom-dragon-plugin);
Now my translation is working. I am just wondering now if it is possible to use a custom text domain instead of my long plugin slug.
I was able to figure it out before I saw @mat ‘s answer. I upvoted your comment though @mat.
Related Posts:
- Overwrite textdomain of plugins by default – Lost Translation
- translation does not work with text_domain
- Two text domains in one plugin
- Rename existing cpt and taxonomy with new textdomain
- Translate a plugin using .po .mo files
- [Plugin WPML] : How to create a translation of a post using the WPML API?
- Why is “plugins_loaded” not called/fired?
- __(): What if I have to pass in a variable?
- Overriding single plugin translation
- 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
- Force Plugin to English Translation
- Why can I not use a class constant as text domain?
- What is the purpose of adding a .po file?
- How can I translate the name of my Plugin for other languages?
- Custom values are not translated
- Plugin translations problem
- Translate wordpress plugin [closed]
- Suggestions for i18n plugin [closed]
- Language Translation is not working?
- 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
- What is the way to ship read-me strings like plugin-strings for internationalization?
- Translating plugin inside the theme [closed]
- Override plugin text domain in child theme
- Making my plugin translation ready. Poedit not working
- load_theme_textdomain path
- Read text defined under __()
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Internationalization autocomplete JS variable
- How to add links in .po (language) file in wordpress?
- Change the backend language of a single plugin
- Use translated taxonomy labels in plugin
- Translating long texts with html formatting
- How to translate __(”) strings in admin [closed]
- Working with .po and .mo files translation
- How to merge two .PO language files?
- What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
- A new translation folder overrides my usual translation from “nowhere”
- Is there a way to test that readme looks in other language before submitting translation?
- Is there any way to use google input tool or any other language keyboard with WordPress [closed]
- Load plugins’.mo and .po files from a directory
- Translation for the plugin using redux framework does not work
- Using wordpress translations strings in plugin
- Using Variable in WordPress Translate Functions
- Setting Email locale before retrieving gettext translations
- How to translate WP Blog (search, category etc.)?
- Plugin translation not working on WordPress.org
- Translation issue with global variables
- How to translate wordpress error message
- How to ignore extra whitespaces in translation functions like _e?
- How does translation (gettext) work for translating config file of plugin?
- Translate plugin admin interface
- Plugin not properly prepared for localization
- Update-safe translating of single text string in plugin
- Override translation of 1 word
- I’m looking for a visual composer / builder plugin that supports RTL
- How to install a translation for a WP plugin?
- How to translate user added content in a 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
- Use localized plugin name and description even when the plugin is disabled
- How can I change a translation for a string in a plugin?
- 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?
- I dont know why my localization is not working
- wordpress plugin translation not working
- Plugin: Translated plugin is “not translated”
- Translation plugin with default language?
- plugin translation is not working
- Plugin Translation project not found
- Locale changed but plugin still showing default language
- WP internationalization not loaded
- Notice: Use of undefined constant Redux_TEXT_DOMAIN – assumed ‘Redux_TEXT_DOMAIN’
- Google Language Translator – Manage Translation
- Translate Woosidebars plugin strings
- Apostrophes replaced by '
- Gtranslate function with custom menu
- plugin translations not reflected in admin dashboard
- Plugin translations are not loaded from translate.wordpress.org
- Admin Notice is only localized when displaying the “Plugins” Backend Page
- plugin translation *.mo file not getting loaded for custom post
- Translate Breadcrumps from Rank Math in WordPress
- How to register new elementor widget in functions.php
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- how to embed a crop feature for cropping images uploaded by the user
- Console errors after WordPress Update 6.1
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- Why is my menu page not being displayed?
- Foreach retun in shortcode
- How to change post status to draft in Gutenberg?
- How to modify submit button on GravityForms
- How to add custom html to the Media > Attachment Details modal?