Prado\I18N\core\MessageSource_MySQL::save PHP Method

save() public method

If the translation was not found, you should add those strings to the translation source via the append() method.
public save ( $catalogue = 'messages' ) : boolean
return boolean true if saved successfuly, false otherwise.
    function save($catalogue = 'messages')
    {
        $messages = $this->untranslated;
        if (count($messages) <= 0) {
            return false;
        }
        $details = $this->getCatalogueDetails($catalogue);
        if ($details) {
            list($cat_id, $variant, $count) = $details;
        } else {
            return false;
        }
        if ($cat_id <= 0) {
            return false;
        }
        $inserted = 0;
        $time = time();
        foreach ($messages as $message) {
            $count++;
            $inserted++;
            $message = mysql_real_escape_string($message);
            $statement = "INSERT INTO trans_unit\n\t\t\t\t(cat_id,id,source,date_added) VALUES\n\t\t\t\t({$cat_id}, {$count},'{$message}',{$time})";
            mysql_query($statement, $this->db);
        }
        if ($inserted > 0) {
            $this->updateCatalogueTime($cat_id, $variant);
        }
        return $inserted > 0;
    }