Welcome Guest, Not a member yet? Register   Sign In
Language Checker | Helper useful to compare languages in multilanguage sites
#1

[eluser]earlyriser[/eluser]
I made this language_helper that has some functions to work with i18n sites.

The most important function is compare_language_files that returns an html string with tables for every lang file, columns for every language and rows for every key.


Code:
common_lang.php
-----------------------------
|key       |en       |es    |
|hi        |hello    |hola  |
|bye       |bye      |----  |
-----------------------------

It's my first CI contribution and I hope it will be helpful.

The code is here: https://github.com/earlyriser/CodeIgnite...7b8581d5f7

Just add this helper and use in this way:
Code:
$this->load->helper('language_checker');
    $this->load->helper('directory');
    $struct = directory_map('./application/language');      
    echo compare_language_files ( $struct );




Theme © iAndrew 2016 - Forum software by © MyBB