0

Is there a way to get the default language set in Admin -> General Configuration in an add-on(module, extension, plugin)?

2

It's a config item, so you can get it using the Config object, thus:

ee()->config->item('deft_lang');
| improve this answer | |
  • Thanks for the quick response. I originally though it was ee()->config->item('language') but I was wrong. – developarvin Feb 12 '14 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.