CodeIgniter Forums
Missing Language keys...how to detect - 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: Missing Language keys...how to detect (/showthread.php?tid=34300)



Missing Language keys...how to detect - El Forum - 09-25-2010

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


Missing Language keys...how to detect - El Forum - 09-25-2010

[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;
    }

}



Missing Language keys...how to detect - El Forum - 09-25-2010

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


Missing Language keys...how to detect - El Forum - 09-26-2010

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


Missing Language keys...how to detect - El Forum - 05-13-2012

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