Changeset 2789


Ignore:
Timestamp:
Oct 22, 2008, 3:34:45 AM (16 years ago)
Author:
rvelices
Message:
  • some german language changes
  • added option for smarty $conftemplate_compile_check - default true; if false smarty doesn't check if templates need recompilation resulting in less disk accesses (good when the disk is not local)
  • load_language doesnt check first for en_uk.utf-8 directory ...
Location:
branches/2.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/config_default.inc.php

    r2595 r2789  
    412412
    413413// +-----------------------------------------------------------------------+
    414 // |                                debug                                  |
     414// |                            debug/performance                          |
    415415// +-----------------------------------------------------------------------+
    416416
     
    430430// die_on_sql_error: if an SQL query fails, should everything stop?
    431431$conf['die_on_sql_error'] = true;
     432
     433// if true, some language strings are replaced during template compilation
     434// (insted of template output). this results in better performance. however
     435// any change in the language file will not be propagated until you purge
     436// the compiled templates from the admin / maintenance menu
     437$conf['compiled_template_cache_language'] = false;
     438
     439// This tells Smarty whether to check for recompiling or not. Recompiling
     440// does not need to happen unless a template is changed. false results in
     441// better performance.
     442$conf['template_compile_check'] = true;
    432443
    433444// +-----------------------------------------------------------------------+
     
    696707// or other plugin variables etc
    697708$conf['local_data_dir'] = dirname(dirname(__FILE__)).'/_data';
    698 
    699 // if true, some language strings are replaced during template compilation
    700 // (insted of template output). this results in better performance. however
    701 // any change in the language file will not be propagated until you purge
    702 // the compiled templates from the admin / maintenance menu
    703 $conf['compiled_template_cache_language'] = false;
    704 
    705709?>
  • branches/2.0/include/functions.inc.php

    r2700 r2789  
    10281028  if ($conf['debug_l10n'] and !isset($lang[$key]) and !empty($key))
    10291029  {
    1030     trigger_error('[l10n] language key "'.$key.'" is not defined', E_USER_NOTICE);
     1030    trigger_error('[l10n] language key "'.$key.'" is not defined', E_USER_WARNING);
    10311031  }
    10321032
     
    13471347function get_pwg_charset()
    13481348{
    1349   defined('PWG_CHARSET') or fatal_error('load_language PWG_CHARSET undefined');
     1349  defined('PWG_CHARSET') or fatal_error('PWG_CHARSET undefined');
    13501350  return PWG_CHARSET;
    13511351}
     
    14181418    $dir = $dirname.$language;
    14191419
    1420     // exact charset match - no conversion required
    1421     $f = $dir.'.'.$target_charset.'/'.$filename;
    1422     if (file_exists($f))
    1423     {
    1424       $source_file = $f;
    1425       break;
     1420    if ($target_charset!='utf-8')
     1421    {
     1422      // exact charset match - no conversion required
     1423      $f = $dir.'.'.$target_charset.'/'.$filename;
     1424      if (file_exists($f))
     1425      {
     1426        $source_file = $f;
     1427        break;
     1428      }
    14261429    }
    14271430
  • branches/2.0/include/template.class.php

    r2717 r2789  
    5656    $this->smarty = new Smarty;
    5757    $this->smarty->debugging = $conf['debug_template'];
     58    $this->smarty->compile_check=$conf['template_compile_check'];
    5859
    5960    $compile_dir = $conf['local_data_dir'].'/templates_c';
     
    206207    return true;
    207208  }
    208  
     209
    209210  /** return template extension if exists  */
    210211  function get_extent($filename='', $handle='')
  • branches/2.0/language/de_DE/common.lang.php

    r2758 r2789  
    141141$lang['became available on %s'] = 'zur Verfügung gestellt am %s';
    142142$lang['best_rated_cat'] = 'Am besten bewertet';
    143 $lang['best_rated_cat_hint'] = 'zeigt am besten bewerteten Artikel';
     143$lang['best_rated_cat_hint'] = 'zeigt am besten bewertete Bilder';
    144144$lang['caddie'] = 'Warenkorb';
    145145$lang['calendar'] = 'Kalender';
     
    196196$lang['hint_customize'] = 'das Aussehen der Galerie';
    197197$lang['hint_search'] = 'Suche';
    198 $lang['home'] = 'Heim';
     198$lang['home'] = 'Startseite';
    199199$lang['identification'] = 'Identifizierung';
    200200$lang['images_available_cpl'] = 'in dieser Kategorie';
     
    229229$lang['month'][8] = 'August';
    230230$lang['month'][9] = 'September';
    231 $lang['most_visited_cat'] = 'mehr gesehen';
     231$lang['most_visited_cat'] = 'Am häufigsten gesehen';
    232232$lang['most_visited_cat_hint'] = 'zeigt am meisten besuchten Bilder';
    233233$lang['nb_image_line_error'] = 'Die Anzahl der Bilder pro Zeile muss ein nicht null skalare';
     
    239239$lang['new_rate'] = 'Stimmen Sie für dieses Bild';
    240240$lang['next_page'] = 'Vorwärts';
    241 $lang['no_category'] = 'Heim';
     241$lang['no_category'] = 'Startseite';
    242242$lang['no_rate'] = 'keine Note';
    243243$lang['note_filter_day'] = 'Die Gesamtheit der Elemente wird gefiltert um nur die jüngsten weniger als %d Tag.';
     
    251251$lang['preferences'] = 'Einstellungen';
    252252$lang['previous_page'] = 'Zurück';
    253 $lang['random_cat'] = 'Zufalls-Bilder';
     253$lang['random_cat'] = 'Zufallsbilder';
    254254$lang['random_cat_hint'] = 'Anzeigen eines zufälligen Bilder';
    255 $lang['recent_cats_cat'] = 'Kategorien jüngsten';
     255$lang['recent_cats_cat'] = 'Neue Kategorien';
    256256$lang['recent_cats_cat_hint'] = 'Kategorien anzuzeigen, die kürzlich aktualisiert oder erstellt';
    257257$lang['recent_period'] = 'Vor kurzem';
     
    290290$lang['slideshow'] = 'Diashow';
    291291$lang['slideshow_stop'] = 'Stop die Diashow';
    292 $lang['special_categories'] = 'Sonderangebot';
     292$lang['special_categories'] = 'Besonderes';
    293293$lang['sql_queries_in'] = 'SQL-Abfragen in';
    294294$lang['start_filter_hint'] = 'zeigt erst vor kurzem gebucht Bilder';
Note: See TracChangeset for help on using the changeset viewer.