Is it possible to load the whole folder of language files? |
Let's assume i have created the language files and i want to load each and every one of them at once (with parent contstructor or so).
Note that each text line is checked to have a unique language_key. Is this possible? Thanks //Life motto if (sad() == true) { sad().stop(); develop(); }
This is interesting as I'm considering making my app language friendly, would be interested in hearing the options.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
hooks\language_loader.php
PHP Code: <?php config/hooks.php PHP Code: $hook['post_controller_constructor'] = array( config/config.php PHP Code: /* config/routes.php PHP Code: $route['language/(:any)'] = 'language/index/$1'; controllers/Language.php PHP Code: <?php helpers/security_helper.php PHP Code: <?php config/autoload.php PHP Code: /* In your view (with bootstrap and font-awesome 3.7): PHP Code: <div class="dropdown pull-right"> |
Welcome Guest, Not a member yet? Register Sign In |