Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
How to autoload langauge from module?
vee
May 2014
How language in module autoload?
It does not work.
I have /shop module
I have /shop/lang/en/shop.php language
I was added always load in fuel/app/config/config.php
'language' => array('shop::shop'),
I was added always load in module/shop/config/config.php too.
When i browse to /shop in url the language does not load.
Module was loaded but language was not.
How to load language automatically from module.
sorry to ask again.
I cannot reply this topic.
http://fuelphp.com/forums/discussion/12953/auto-load-lang-files-from-a-module#Item_5
Harro
May 2014
Accepted Answer
If you want to autoload a language file from a module, you need to autoload the module too, and you need to load the file like in that post you linked to:
'shop::shop' => 'shop'
otherwise you can't use Lang::get('shop.something');
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
May 2014