Disable localization loading
How can i disable the framework locales loading inside a theme?
I'm using redux inside a theme so i need my textdomain to be loaded instead of your. Codestyling will not find it.
I don't think that's really possible. You'd have to change every single instance of the domain in our strings, or nothing would be translated properly. The domain loading to Redux is (and should be) independent of the theme/plugin that uses it.
Hi Kevin, ok but then why if set the options outside the framework folder, with my own domain, then translate them with the po files, they do not got translated?
Il venerdì 28 marzo 2014, Kevin Provance [email protected] ha scritto:
I don't think that's really possible. You'd have to change every single instance of the domain in our strings, or nothing would be translated properly. The domain loading to Redux is (and should be) independent of the theme/plugin that uses it.
— Reply to this email directly or view it on GitHubhttps://github.com/ReduxFramework/redux-framework/issues/988#issuecomment-38886330 .
Nicola Mustone [email protected] www.nicolamustone.it
Can you help me on this please? Thank you!
Are you trying to translate redux spefic fields or your options values?
My options titles, descriptions and default values. All the other text is translated correctly, except redux related text
Il lunedì 31 marzo 2014, Dovy Paukstys [email protected] ha scritto:
Are you trying to translate redux spefic fields or your options values?
— Reply to this email directly or view it on GitHubhttps://github.com/ReduxFramework/redux-framework/issues/988#issuecomment-39085523 .
Nicola Mustone [email protected] www.nicolamustone.it
Next time search before you post an issue. All you need to do is call your text translations before you run your config file. You're trying to translate strings after they've been used. ;)
OK, fixed it, but only if i do not use any hook for the function load_theme_textdomain().
I think it should work with hooks too, however thank you for your help!!!
Ahh yes. The reason it doesn't work with hooks... Redux runs before the load_textdomain hook. That way Ajax and other things work.
load_textdomain runs after all the redux magic is done, and thus is too late. :)
Yes exactly, maybe would be useful to specify it in the documentation :)
Thank you!
I'd like to see a working example for plugins in the documentation. After months of trying different ways, nothing works to get codestyling localization to see anything but the redux-framework textdomain. Worse, using add_action('init', 'languages') prior to loading the admin (loaded using add_action('plugin_loaded') ) should work but fails - so I must be misunderstanding the statement not to use a hook. After all, WordPress documentation states, "Also load_plugin_textdomain calls should be made during init, otherwise users cannot hook into it."
http://codex.wordpress.org/Plugin_API/Action_Reference/init