Welcome Guest, Not a member yet? Register   Sign In
Missing Language keys...how to detect
#1

[eluser]blasto333[/eluser]
I have 3 languages english, spanish, and indonesia but I know I am missing some keys that are in english but not in the other two. Is there a script someone can write to detect missing keys that are in english but not in the other 2?
#2

[eluser]tomcode[/eluser]
I've overwritten the lang() method. It returns the language ident in these cases :

Code:
/**
* Language Extension Class
*
* @package        CodeIgniter
* @subpackage    Libraries
* @category    Language
* @author        Thomas Traub
*/
class MY_Language extends CI_Language {

    var $language    = array();
    var $is_loaded    = array();

    /**
     * Constructor
     *
     * @access    public
     */
    function MY_Language()
    {
        log_message('debug', "Language Extension Class Initialized");
    }

    // --------------------------------------------------------------------

    /**
     * Fetch a single line of text from the language array
     *
     * Return the ident in case the string is not set
     *
     * @access    public
     * @param    string    $line     the language line
     * @return    string
     */
    function line($line = '')
    {
        $line = ($line == '' OR ! isset($this->language[$line])) ? $line : $this->language[$line];
        return $line;
    }

}
#3

[eluser]WanWizard[/eluser]
This is the controller I use for ExiteCMS to validate the language strings.
#4

[eluser]blasto333[/eluser]
Thanks WanWizard exactly what I needed! Perfect!
#5

[eluser]Unknown[/eluser]
could you please reupload the file again WanWizard
cause i can't download it
regards




Theme © iAndrew 2016 - Forum software by © MyBB