reduxframework / redux-framework

Redux is a simple, truly extensible options framework for WordPress themes and plugins!
http://redux.io
Other
1.74k stars 583 forks source link

Translation files with redux embedded inside themes #1546

Closed mekshq closed 10 years ago

mekshq commented 10 years ago

Is that possible that we have all the custom text translated into our own theme .po and .mo files instead of using redux translation files and default domain?

I don't know if this is a bug you are already aware of, but for example when I use our theme text domain for all the options inside redux framework with theme predefined text domain i.e. 'my_theme' translations won't work.

For example, all the strings are generated in .po file properly but it won't read translated strings registered inside redux "sections". All the strings we use on front-end are fine, but those inside framework are not recognized somehow.

Basically, what we are trying to achieve is that our user have only one .po and .mo translation file kept inside our theme "languages" folder with our textdomain which will keep both frontend and backend text. To make this more clear, I'm not talking about your predefined translations for save button, reset buttons, media uploads etc(we still want to keep them inside your redux languages folder)... I'm talking about our custom text we enter while we generate all the options inside framework.

Cheers

mekshq commented 10 years ago

version is 3.3.3 and redux panel is embedded into a theme

dovy commented 10 years ago

Very much so. Just load your translation files via the WordPress functions before you load your config file and all will work. What you're trying to do us override strings in your panel that have already been used. That's why it's not working.

mekshq commented 10 years ago

Thanks a lot @dovy , but can you please explain it a bit more clear?

Our text domain is loaded on "after_setup_theme" hook. As far as I know, redux is loaded on "init" and how we can change that?

Cheers

dovy commented 10 years ago

Run the function w/o the hook.

Joseph-a commented 8 years ago

Hi, I added "load_theme_textdomain" before the redux without any hook, but in Russian language we will have this error! What do you think? It happened just for Russian and the other languages work like a charm. Fatal error: Maximum execution time of 30 second exceeded in MY_PATH\inc\class.redux_api.php line 272

We increased the limitation of php execution time but nothing happened.

dovy commented 8 years ago

Seems like a memory limit on your host and you're doing too much. :P

Joseph-a commented 8 years ago

But why this happened when I changed the language to Russian!?? In the other languages it works without any errors.

dovy commented 8 years ago

I honestly have no idea. That sounds like a WP core/memory issue. Nothing in Redux should affect that at all. It's just a language pack. :(