Ignore:
Timestamp:
Jun 9, 2009, 8:04:54 AM (16 years ago)
Author:
george
Message:
  • Opraveno: Ve funkcích exportu opraveny odkazy na obecné označení jazyků z formuláře dle id namísto dle textu jako cz a sk.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/create_addon.php

    r193 r200  
    7373function MakeLanguageFiles($Setting)
    7474{
    75   global $Database, $TempDir, $TranslationTree, $CreatedFileList;
     75  global $Database, $TempDir, $TranslationTree, $CreatedFileList, $LanguageList;
    7676 
    7777  $CreatedFileList = array();
     
    7979 
    8080  $WhereLang = '';
    81   if($Setting['language-cz']) $WhereLang .= " OR (Language = 1)";
    82   if($Setting['language-sk']) $WhereLang .= " OR (Language = 2)";
    83   if($Setting['language-other']) $WhereLang .= " OR (Language = 3)";
     81  foreach($LanguageList as $Language)
     82    if($Language['Enabled'] == 1)
     83      if(isset($Setting['language'.$Language['Id']]))  $WhereLang .= ' OR (Language = '.$Language['Id'].')';
    8484  if($WhereLang == '') $WhereLang = 1;
    8585    else $WhereLang = '('.substr($WhereLang, 4).')';
     
    149149function MakeClientStrings($Setting)
    150150{
    151   global $Database, $TempDir, $TranslationTree;
     151  global $Database, $TempDir, $TranslationTree, $LanguageList;
    152152 
    153153  $WhereLang = '';
    154   if($Setting['language-cz']) $WhereLang .= " OR (Language = 1)";
    155   if($Setting['language-sk']) $WhereLang .= " OR (Language = 2)";
    156   if($Setting['language-other']) $WhereLang .= " OR (Language = 3)";
     154  foreach($LanguageList as $Language)
     155    if($Language['Enabled'] == 1)
     156      if(isset($Setting['language'.$Language['Id']]))  $WhereLang .= ' OR (Language = '.$Language['Id'].')';
    157157  if($WhereLang == '') $WhereLang = 1;
    158158    else $WhereLang = '('.substr($WhereLang, 4).')';
     
    632632  ';
    633633  $ID = $Database->SQLCommand('SELECT * FROM verseclient ORDER BY DATE DESC');
    634   while($Line = mysql_fetch_assoc($ID)) {
    635   $Buffer .='
     634  while($Line = mysql_fetch_assoc($ID))
     635  {
     636    $Buffer .='
    636637  Verze: '.$Line['verse'].'
    637638  =============
Note: See TracChangeset for help on using the changeset viewer.