load_theme_textdomain() needs an absolute path to the directory, so you should set your THEME_URL like so
define("THEME_URL", get_template_directory());
define("TRANSLATION_URL", THEME_URL . "/languages");
It wasn’t working for you because get_bloginfo(“template_url”) is an URL and not an absolute path on your server.
Related Posts:
- How to get a translated string from a language other than the current one?
- How to get a localized version of WordPress from a repository?
- Working with l10n contexts (_x etc)
- How to debug failed load_theme_textdomain()?
- How to escape the single quote character in i18n translation strings?
- How to escape single and plural i18n text strings?
- What are the most used WordPress localization?
- load_plugin_textdomain in `plugins_loaded` or `init`?
- Difference between 2 internationalization (i18n) functions __() & _e()
- Localization works but still get “This plugin is not properly prepared for localization” msg in directory
- Localization / textdomain is slow and chaotic
- How to load theme textdomain from plugin?
- get_the_date() for translating date format
- Should i use _n for pronouns in translation?
- Multiple text-domains per single plugin – admin and frontend
- POEdit with Custom mu-plugins code
- How does WordPress choose which translation file to use?
- How to get menu strings, categories and tags into po file for translation
- Use WordPress default text domain for translating labels
- Proper way to create / manage gettext (.po, .pot) files?
- Should I include colon in my msgid in PO file?
- _e() function get text_string from function
- Two text domains in one plugin
- Translations not returning translated strings
- Action hook load_textdomain $domain variable
- Should I change text-domain of TGM library inside theme?
- Use the wp-admin translations on the front end
- Force translated language on front
- Translating dynamic strings
- WordPress translation loading english file
- Easy export/import of data for Translation
- How can I see my theme’s text domain?
- Does the textdomain have to be the theme’s name?
- How to become a translator on wordpress.org?
- Translation from .mo file not working in theme
- How to solve a translation function issue with no arguments and missing a text-domain?
- Localization, escape html elements mid-sentence
- WordPress localization – gettext and git
- Can I set WordPress to display languages based on system language without a plugin?
- Fix Problem With Textdomain Translation
- /languages/ folder missing in default themes
- How to translate functions.php?
- WordPress Translations
- Post types translation
- Translate arguments of a user added custom code [closed]
- Internationalize plugin so strings can be translated in WPML [closed]
- localization of theme and plugins to English (originally in another language)
- Interface translation without plugins
- Translation not working for Constant strings in Plugin
- Plugin localization persistance (woocommerce)
- WordPress Localization error within return value
- Custom theme .mo translation file not working
- Plugin translation not displaying
- WordPress translation
- Tweak the loop for translation
- Translating form labels shortcode output
- Website Language/Locale Switching
- .po file is loaded but changes are not appearing
- Custom strings for translation using Polylang plugin
- Localization: I want the backend: english and frontend in defined language
- Disabling Translation Update
- Gettext details
- Set language per post
- Overwrite textdomain of plugins by default – Lost Translation
- What is the purpose of an extra file for translation?
- Problems with localization
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- Custom translation of Month names
- How to add translation for a string
- load_child_theme_textdomain doesn’t work in function.php
- How do I translate this string – PHP syntax question
- New plugin translation does not work
- Make changes to translation?
- Adding another arg to comments_popup_link
- Gutenberg not all editor text translated
- WPML Translated Term
- How to i18n text coming from the db or from an external source
- translating wordpress with poedit
- Implementing conditional gettext translation
- Generate PO File
- Use translated taxonomy labels in plugin
- Activate Child Theme .mo and .po files
- How to override default WordPress core language file
- Translate pages and URLs without duplicating
- How can you locate the .po file used for translation of a page?
- How to change a word in theme?
- Theme doesn’t want to load localization files
- Is it best practice to use English as the base of a translation-ready theme?
- Get Text Domain For Transalation
- Trying to localize a Underscores starter theme [duplicate]
- mo / po translation files does not seem to work
- How to translate user added content in a plugin
- Rename existing cpt and taxonomy with new textdomain
- Can’t translate child theme
- How to use translation functions inside WordPress page
- Adding translation files to a child theme
- Custom post type translation
- Translate Plugin with french as base language
- String translation with or without po file
- Can’t load text domain in a mu-plugin