_load_textdomain_just_in_time()
get_translations_for_domain()
translate()
__()
em_plugins_loaded()
do_action('plugins_loaded')
_load_textdomain_just_in_time()
get_translations_for_domain()
translate()
__()
superpwa_get_addons()
superpwa_addons_status()
Reproduction:
– Please see the linked issue
– It has to do with changing the “events” slug and also localizing some terms like “events” and “today”.
The url on the language switcher should be https://ealliance.ca/events/month but it links to https://ealliance.ca/frevents/month.
This only happens if you are first on english, then switch to french, then try to switch back to english.
]]>load_plugin_textdomain()
call in _cme_init()
passes an absolute path, instead of the required relative path, causing the final path to be broken and the file not being loaded:
The path should be basename(dirname(dirname(__FILE__))) . '/lang'
Regards
Oliver
I left a response on my original review but didn’t get any feedback from you.
I did manage to make it fully translatable, as per your suggestion, including the few strings included in the JS file. I’m not sure how to do the pull-request, since your project on GitHub is not configured as a plugin folder.
Take a look at the i18n version.
Let me know what you think off it.
álvaro
]]>