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
- How to create .pot files with POedit?
- Translate a plugin using .po .mo files
- What is a Theme textdomain?
- How to make a WordPress plugin translation ready?
- Theme localization of “slugs” (custom post types, taxonomies)
- Override default WordPress core translation
- Different Language for Frontend vs Backend
- Is it ok to use a function to output the text domain name in a wordpress theme
- Custom strings for translation using Polylang plugin
- Is a text-domain necessary for a child theme
- How to print translation supported text with HTML URL
- Localization: I want the backend: english and frontend in defined language
- How-to: Translate plural forms for themes/plugins with PoEdit
- generating po mo translating files from scratch in a wordpress theme
- How to integrate get_post_time with date_i18n function?
- gettext does not translate when called in ajax
- How to provide translations for a WordPress TinyMCE plugin?
- How do translated, escaped strings (esc_attr) in Themes work?
- Changing the language of a single page
- what’s different between _x() and _()
- How to handle text with function __(?
- Obtain a list of available translations
- How do I translate: “2 hours and 15 minutes”?
- Disabling Translation Update
- Gettext details
- custom theme: english .mo file not working
- Unknown language json files
- How to save a translation of a plugin in “CodeStyling Localization”?
- Best pratice to make taxonomy terms translatable without changing slugs?
- How to load translation in JavaScript?
- Set language per post
- Overwrite textdomain of plugins by default – Lost Translation
- List of Default Translated Phrases
- What is the purpose of an extra file for translation?
- How to add extra language packs to WordPress
- How to extract translatable (double underscores and _e) strings?
- How to Translate Contact Form 7 using qTranslate? [closed]
- How to set locale in ajax requests?
- translation does not work with text_domain
- Theme elements not translating
- Translate Navigation Menu & Sidebar Widget Titles
- Problems with localization