CodeIgniter Forums
Modular Extensions and URI Language Identifier - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Modular Extensions and URI Language Identifier (/showthread.php?tid=10368)



Modular Extensions and URI Language Identifier - El Forum - 07-29-2008

[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)?


Modular Extensions and URI Language Identifier - El Forum - 07-29-2008

[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.