• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modular Extensions and URI Language Identifier

#1
[eluser]turco[/eluser]
I'm planning to develop a complex multilanguage site. I must split contents in modules, so I'm using Modular Extensions, all works well. Now in trying to integrate ME with URI Language Identifier, but I can't.

I'd like to organize my contents in this way (I wonder if it's right):
Code:
- application
  - modules
    - home
      - controllers
      - language
      - modules
      - views
    - articles
      - controllers
      - language
      - modules
      - views
    - ...
      - controllers
      - language
      - modules
      - views

MY_Language.php extends CI_Language, that try to load a language by these two different paths:

Code:
APPPATH.'language/'.$idiom.'/'.$langfile
BASEPATH.'language/'.$idiom.'/'.$langfile

instead of trying to load in the current module directory. Obviously, the system returns an error. Is there a way to integrate these two extensions (or a better way to develop a website like that)?

#2
[eluser]wiredesignz[/eluser]
A new version of the URI Language Identifier is available on the wiki.

Note: Updated URI Language Identifier does not load language files so you may do this manually for each module.
Use the $config[’language’] value to determine the language files to load.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.