Changeset 9710


Ignore:
Timestamp:
03/15/11 19:55:17 (9 years ago)
Author:
patdenice
Message:

New languages keys.

Location:
extensions/autoupdate/trunk
Files:
2 deleted
29 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/trunk/ajax/check_updates.php

    r9707 r9710  
    1313header('Content-Type: text/html; charset=UTF-8'); 
    1414 
    15 include(AUTOUPDATE_PATH.'include/functions_remote.inc.php'); 
    16 echo autoupdate_check_version(); 
     15if (!isset($_SESSION['need_update'])) 
     16{ 
     17  $_SESSION['need_update'] = null; 
     18 
     19  if (preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches) 
     20    and @fetchRemote(PHPWG_URL.'/download/all_versions.php', $result)) 
     21  { 
     22    $all_versions = @explode("\n", $result); 
     23    $new_version = trim($all_versions[0]); 
     24    $_SESSION['need_update'] = version_compare(PHPWG_VERSION, $new_version, '<'); 
     25  } 
     26} 
     27 
     28if ($_SESSION['need_update']) 
     29{ 
     30  echo 'piwigo_upgrade'; exit(); 
     31} 
     32else 
     33{ 
     34  // Gallery is up to date 
     35  // Check plugins upgrade 
     36  include_once(PHPWG_ROOT_PATH.'admin/include/plugins.class.php'); 
     37  include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php'); 
     38  include_once(PHPWG_ROOT_PATH.'admin/include/languages.class.php'); 
     39  $plugins = new plugins(); 
     40  $themes = new themes(); 
     41  $languages = new languages(); 
     42 
     43  if (!isset($_SESSION['extensions_need_update'])) 
     44  { 
     45    $_SESSION['extensions_need_update'] = array(); 
     46    autoupdate_check_plugins_upgrade($plugins); 
     47    autoupdate_check_themes_upgrade($themes); 
     48    autoupdate_check_languages_upgrade($languages); 
     49  } 
     50  else 
     51  { 
     52    if (!empty($_SESSION['extensions_need_update']['plugins'])) 
     53    { 
     54      // Check if plugins have been upgraded since last check 
     55      foreach($plugins->fs_plugins as $plugin_id => $fs_plugin) 
     56      { 
     57        if (isset($_SESSION['extensions_need_update']['plugins'][$plugin_id]) 
     58          and $plugins->plugin_version_compare($fs_plugin['version'], $_SESSION['extensions_need_update']['plugins'][$plugin_id])) 
     59        { 
     60          // Plugin have been updated 
     61          autoupdate_check_plugins_upgrade($plugins); 
     62        } 
     63      } 
     64    } 
     65    if (!empty($_SESSION['extensions_need_update']['themes'])) 
     66    { 
     67      // Check if themes have been upgraded since last check 
     68      foreach($themes->fs_themes as $theme_id => $fs_theme) 
     69      { 
     70        if (isset($_SESSION['extensions_need_update']['themes'][$theme_id]) 
     71          and $themes->theme_version_compare($fs_theme['version'], $_SESSION['extensions_need_update']['themes'][$theme_id])) 
     72        { 
     73          // theme have been updated 
     74          autoupdate_check_themes_upgrade($themes); 
     75        } 
     76      } 
     77    } 
     78    if (!empty($_SESSION['extensions_need_update']['languages'])) 
     79    { 
     80      // Check if languages have been upgraded since last check 
     81      foreach($languages->fs_languages as $language_id => $fs_language) 
     82      { 
     83        if (isset($_SESSION['extensions_need_update']['languages'][$language_id]) 
     84          and $languages->language_version_compare($fs_language['version'], $_SESSION['extensions_need_update']['languages'][$language_id])) 
     85        { 
     86          // language have been updated 
     87          autoupdate_check_languages_upgrade($languages); 
     88        } 
     89      } 
     90    } 
     91  } 
     92 
     93  if (!empty($_SESSION['extensions_need_update'])) 
     94  { 
     95    echo 'ext_upgrade'; exit; 
     96  } 
     97} 
     98 
     99if ($_SESSION['need_update'] === false and $_SESSION['extensions_need_update'] === array()) 
     100{ 
     101  echo 'up_to_date'; exit; 
     102} 
     103else 
     104{ 
     105  autoupdate_error(); 
     106} 
     107 
     108function autoupdate_check_plugins_upgrade($plugins) 
     109{ 
     110  global $conf; 
     111 
     112  if (!$plugins->get_server_plugins()) 
     113  { 
     114    autoupdate_error(); 
     115  } 
     116 
     117  $plugins_ignore_list = array(); 
     118  $need_upgrade = array(); 
     119 
     120  foreach($plugins->fs_plugins as $plugin_id => $fs_plugin) 
     121  { 
     122    if (isset($fs_plugin['extension']) and isset($plugins->server_plugins[$fs_plugin['extension']])) 
     123    { 
     124      $plugin_info = $plugins->server_plugins[$fs_plugin['extension']]; 
     125 
     126      if (!$plugins->plugin_version_compare($fs_plugin['version'], $plugin_info['revision_name'])) 
     127      { 
     128        if (in_array($plugin_id, $conf['AU_ignore']['plugins'])) 
     129        { 
     130          array_push($plugins_ignore_list, $plugin_id); 
     131        } 
     132        else 
     133        { 
     134          $_SESSION['extensions_need_update']['plugins'][$plugin_id] = $plugin_info['revision_name']; 
     135        } 
     136      } 
     137    } 
     138  } 
     139 
     140  $conf['AU_ignore']['plugins'] = $plugins_ignore_list; 
     141  conf_update_param('autoupdate_ignore_list', pwg_db_real_escape_string(serialize($conf['AU_ignore']))); 
     142} 
     143 
     144function autoupdate_check_themes_upgrade($themes) 
     145{ 
     146  global $conf; 
     147 
     148  if (!$themes->get_server_themes()) 
     149  { 
     150    autoupdate_error(); 
     151  } 
     152   
     153  $themes_ignore_list = array(); 
     154  $need_upgrade = array(); 
     155 
     156  foreach($themes->fs_themes as $theme_id => $fs_theme) 
     157  { 
     158    if (isset($fs_theme['extension']) and isset($themes->server_themes[$fs_theme['extension']])) 
     159    { 
     160      $theme_info = $themes->server_themes[$fs_theme['extension']]; 
     161 
     162      if (!$themes->theme_version_compare($fs_theme['version'], $theme_info['revision_name'])) 
     163      { 
     164        if (in_array($theme_id, $conf['AU_ignore']['theme'])) 
     165        { 
     166          array_push($themes_ignore_list, $theme_id); 
     167        } 
     168        else 
     169        { 
     170          $_SESSION['extensions_need_update']['themes'][$theme_id] = $theme_info['revision_name']; 
     171        } 
     172      } 
     173    } 
     174  } 
     175 
     176  $conf['AU_ignore']['themes'] = $themes_ignore_list; 
     177  conf_update_param('autoupdate_ignore_list', pwg_db_real_escape_string(serialize($conf['AU_ignore']))); 
     178} 
     179 
     180function autoupdate_check_languages_upgrade($languages) 
     181{ 
     182  global $conf; 
     183 
     184  if (!$languages->get_server_languages()) 
     185  { 
     186    autoupdate_error(); 
     187  } 
     188 
     189  $languages_ignore_list = array(); 
     190  $need_upgrade = array(); 
     191 
     192  foreach($languages->fs_languages as $language_id => $fs_language) 
     193  { 
     194    if (isset($fs_language['extension']) and isset($languages->server_languages[$fs_language['extension']])) 
     195    { 
     196      $language_info = $languages->server_languages[$fs_language['extension']]; 
     197 
     198      if (!$languages->language_version_compare($fs_language['version'], $language_info['revision_name'])) 
     199      { 
     200        if (in_array($language_id, $conf['AU_ignore']['languages'])) 
     201        { 
     202          array_push($languages_ignore_list, $language_id); 
     203        } 
     204        else 
     205        { 
     206          $_SESSION['extensions_need_update']['languages'][$language_id] = $language_info['revision_name']; 
     207        } 
     208      } 
     209    } 
     210  } 
     211 
     212  $conf['AU_ignore']['languages'] = $languages_ignore_list; 
     213  conf_update_param('autoupdate_ignore_list', pwg_db_real_escape_string(serialize($conf['AU_ignore']))); 
     214} 
     215 
     216function autoupdate_error() 
     217{ 
     218  $_SESSION['extensions_need_update'] = null; 
     219   
     220  echo 'error'; exit; 
     221} 
    17222 
    18223?> 
  • extensions/autoupdate/trunk/ajax/ignore_list.php

    r9707 r9710  
    1515  unset($_SESSION['extensions_need_update']); 
    1616  echo 'ok'; 
     17  exit; 
    1718} 
    1819 
  • extensions/autoupdate/trunk/ajax/update_language.php

    r9707 r9710  
    3535$revision = $_REQUEST['revision']; 
    3636 
    37 //$upgrade_status = $languages->extract_language_files('upgrade', $revision, $language_id); 
    38 $upgrade_status = 'ok'; 
     37$upgrade_status = $languages->extract_language_files('upgrade', $revision, $language_id); 
    3938 
    4039switch ($upgrade_status) 
  • extensions/autoupdate/trunk/ajax/update_plugin.php

    r9707 r9710  
    9292} 
    9393 
    94 //$upgrade_status = $plugins->extract_plugin_files('upgrade', $revision, $plugin_id); 
    95 $upgrade_status = 'ok'; 
     94$upgrade_status = $plugins->extract_plugin_files('upgrade', $revision, $plugin_id); 
    9695 
    9796if (isset($_REQUEST['reactivate'])) 
  • extensions/autoupdate/trunk/ajax/update_theme.php

    r9707 r9710  
    3535$revision = $_REQUEST['revision']; 
    3636 
    37 //$upgrade_status = $themes->extract_theme_files('upgrade', $revision, $theme_id); 
    38 $upgrade_status = 'ok'; 
     37$upgrade_status = $themes->extract_theme_files('upgrade', $revision, $theme_id); 
    3938 
    4039switch ($upgrade_status) 
  • extensions/autoupdate/trunk/language/ar_SA/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'لا يمكن Piwigo استرداد ملف الترقية من الملقم'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Piwigo  اضغط هنا  %s لمشاهدة ملاحظات الاصدار'; 
    12 $lang['Some upgrades are available for you plugins'] = 'بعض الترقيات متاحة للإضافات'; 
    13 $lang['Click here see upgrade plugins page'] = 'أضغط هنا لرؤيات الترقيات الموجودة للإضافات'; 
    14 $lang['Gallery and plugins are up to date'] = 'المعرض و الاضافات حتى الآن'; 
    1512$lang['Unable to check upgrades...'] = 'لا يمكن فحص التحديثات ...'; 
    1613$lang['Click here to check upgrades now'] = 'أضغط هنا لفحص التحديثات الآن .'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/cs_CZ/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo nemùže získat novou verzi ze serveru'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Pro informace o nové verzi Piwigo %s kliknìte zde'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Pro nìkteré vaše doplòky jsou dostupné aktualizace'; 
    13 $lang['Click here see upgrade plugins page'] = 'Pro stránku s aktualizacemi pro doplòky kliknìte zde'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galerie Piwigo a doplòky jsou aktuální'; 
    1512$lang['Unable to check upgrades...'] = 'Nebylo možné zkontrolovat aktualizace...'; 
    1613$lang['Click here to check upgrades now'] = 'Pro kontrolu aktualizací kliknìte zde'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/da_DK/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo kan ikke modtage opgraderings filer fra serveren'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Klik her for at se Piwigo %s release notes'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Der er opgraderinger til rådighed til dine plugins'; 
    13 $lang['Click here see upgrade plugins page'] = 'Klik her for at gå til opgraderingssiden for plugins'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galleri og plugins er up to date'; 
    1512$lang['Unable to check upgrades...'] = 'Det er ikke muligt at tjekke for opgraderinger...'; 
    1613$lang['Click here to check upgrades now'] = 'Klik her for at tjekke for opgraderinger nu'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/de_DE/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo kann die Aktualisierungsdatei nicht vom Server laden'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Klicken Sie hier für die Piwigo %s Versionshinweise'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Einige Aktualisierungen für Plugins sind verfügbar'; 
    13 $lang['Click here see upgrade plugins page'] = 'Klicken Sie hier für die Seite der Plugin Aktualisierungen'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galerie und Plugins sind aktuell'; 
    1512$lang['Unable to check upgrades...'] = 'Die überprüfung auf Aktualisierungen ist nicht möglich...'; 
    1613$lang['Click here to check upgrades now'] = 'Klicken Sie hier um auf Aktualisierungen zu prüfen'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/en_UK/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo cannot retrieve upgrade file from server'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Click here to see Piwigo %s release notes'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Some upgrades are available for you plugins'; 
    13 $lang['Click here see upgrade plugins page'] = 'Click here see upgrade plugins page'; 
    14 $lang['Gallery and plugins are up to date'] = 'Gallery and plugins are up to date'; 
    1512$lang['Unable to check upgrades...'] = 'Unable to check upgrades...'; 
    1613$lang['Click here to check upgrades now'] = 'Click here to check upgrades now'; 
     
    4542$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/es_ES/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo no puede recuperar el fichero de actualización desde el servidor'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Haga clic aquí para ver las informaciones relativas a Piwigo %s'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Hay actualizaciónes disponibles para su plugins'; 
    13 $lang['Click here see upgrade plugins page'] = 'Haga clic aquí para visualizar la página de actualización des plugins'; 
    14 $lang['Gallery and plugins are up to date'] = 'Su galería y sus plugins están actualizados'; 
    1512$lang['Unable to check upgrades...'] = 'Imposible verificar las actualizaciónes...'; 
    1613$lang['Click here to check upgrades now'] = 'Haga clic aquí para verificar las actualizaciónes'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/fr_FR/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo ne peut pas récupérer le fichier de mise à jour depuis le serveur'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Cliquez ici pour afficher les informations relatives à Piwigo %s'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Des mises à jour sont disponibles pour vos plugins'; 
    13 $lang['Click here see upgrade plugins page'] = 'Cliquez ici pour afficher la page de mise à jour des plugins'; 
    14 $lang['Gallery and plugins are up to date'] = 'Votre galerie et vos plugins sont à jour'; 
    1512$lang['Unable to check upgrades...'] = 'Impossible de vérifier les mises à jour...'; 
    1613$lang['Click here to check upgrades now'] = 'Cliquez ici pour vérifier les mises à jour maintenant'; 
     
    4542$lang['Piwigo Upgrade'] = 'Mise à jour de Piwigo'; 
    4643$lang['Extensions Upgrade'] = 'Mise à jour des extensions'; 
     44 
     45$lang['Some upgrades are available for extensions'] = 'Des mises à jour sont disponibles pour les extensions'; 
     46$lang['Click here to see upgrades'] = 'Cliquez ici pour voir les mises à jour'; 
     47$lang['Gallery and extensions are up to date'] = 'Votre galerie et les extensions sont à jour'; 
    4748?> 
  • extensions/autoupdate/trunk/language/hr_HR/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo ne može dohvatiti zapis nadogradnje sa poslužitelja'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Kliknite ovdje za prikaz zabilješki Piwigo %s izdanja'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Dostupne su nadogradnje za neke dodatke (plugin-ove)'; 
    13 $lang['Click here see upgrade plugins page'] = 'Kliknite za pregled stranice nadogradnji dodataka'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galerija i dodaci su ažurni'; 
    1512$lang['Unable to check upgrades...'] = 'Nemoguće je provjeriti nadogradnje...'; 
    1613$lang['Click here to check upgrades now'] = 'Kliknite za provjeru nadogradnji sada'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/hu_HU/plugin.lang.php

    r9709 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Nem tudom letölteni a frissítést a Piwigo fájl szerverről'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Kattintson ide a Piwigo %s kiadási megjegyzések megtekintéséhez'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Frissítések találhatók egyes bővítményekhez'; 
    13 $lang['Click here see upgrade plugins page'] = 'Kattintson ide a "frissíthető bővítmények" oldal megtekintéséhez '; 
    14 $lang['Gallery and plugins are up to date'] = 'A galéria és a bővítmények a legfrissebbek'; 
    1512$lang['Unable to check upgrades...'] = 'A frissítés ellenőrzése nem lehetséges....'; 
    1613$lang['Click here to check upgrades now'] = 'Kattintson ide a frissítések ellenőrzéséhez'; 
     
    4643$lang['Piwigo Upgrade'] = 'Piwigo frissítése'; 
    4744$lang['Extensions Upgrade'] = 'Bővítmények frissítése'; 
     45 
     46/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     47/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     48/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4849?> 
  • extensions/autoupdate/trunk/language/it_IT/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo non può recuperare i file d\'aggiornamento dal server'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Cliccare qui per visualizzare le informazioni relative a Piwigo %s'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Degli aggiornamenti sono disponibili per i vostri plugins'; 
    13 $lang['Click here see upgrade plugins page'] = 'Cliccare qui per visualizzare la pagina di aggiornamento dei plugins'; 
    14 $lang['Gallery and plugins are up to date'] = 'La vostra galleria e i vostri plugins sono aggiorno'; 
    1512$lang['Unable to check upgrades...'] = 'Non è stato possibile verificare gli aggiornamenti...'; 
    1613$lang['Click here to check upgrades now'] = 'Cliccare qui per verificare gli aggiornameti ora'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/ja_JP/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigoは、アップグレードファイルをサーバから検索できません。'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Piwigo %s リリースノートを閲覧するには、ここをクリックしてください。'; 
    12 $lang['Some upgrades are available for you plugins'] = 'あなたのプラグインに関して、いくつかのアップグレードが利用できます。'; 
    13 $lang['Click here see upgrade plugins page'] = 'プラグインのアップグレードページを閲覧するには、ここをクリックしてください。'; 
    14 $lang['Gallery and plugins are up to date'] = 'ギャラリーおよびプラグインは最新版です。'; 
    1512$lang['Unable to check upgrades...'] = 'アップグレードを確認できません ...'; 
    1613$lang['Click here to check upgrades now'] = 'アップグレードするには、ここをクリックしてください。'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/ka_GE/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo ვერ იღებს განახლების ფაილებს სერვერიდან'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'დაწკაპეთ აქ რათა იხილოთ Piwigo %s  რელიზის შესახებ'; 
    12 $lang['Some upgrades are available for you plugins'] = 'ხელმისაწვდომია მოდულების ზოგიერთი განახლება'; 
    13 $lang['Click here see upgrade plugins page'] = 'დაწკაპეთ აქ, რათა ეწვიოთ მოდულების განახლების გვერდს'; 
    14 $lang['Gallery and plugins are up to date'] = 'გალერეა და მოდულები განახლებულია'; 
    1512$lang['Unable to check upgrades...'] = 'განახლების შემოწმება შეუძლებელია...'; 
    1613$lang['Click here to check upgrades now'] = 'დაწკპეთ აქ, რათა ეხლავე შეამოწმოთ განახლება'; 
     
    4643/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4744/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     45 
     46/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     47/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     48/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4849?> 
  • extensions/autoupdate/trunk/language/lv_LV/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo nevar ielādēt jauninājuma failu no servera'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Spiest te, lai lai aplūkotu Piwigo %s laidiena piezīmes'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Ir pieejami jauninājumi dažiem Jūsu spraudņiem'; 
    13 $lang['Click here see upgrade plugins page'] = 'Spiest te, lai skatītu spraudņu jauninājumu lapu'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galerija un spraudņi ir aktuāli (up to date)'; 
    1512$lang['Unable to check upgrades...'] = 'Neiespējami pārbaudīt jauninājumus...'; 
    1613$lang['Click here to check upgrades now'] = 'Spiest te, lai pārbaudītu jauninājumus tūlīt'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/nl_NL/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo kan het upgrade-bestand niet van de server verkrijgen'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Klik hier om de Piwigo %s release-aantekeningen te bekijken'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Er zijn upgrades beschikbaar voor sommige van uw plugins'; 
    13 $lang['Click here see upgrade plugins page'] = 'Klik hier om naar de upgrade-plugins-pagina te gaan'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galerie en plugins zijn up to date'; 
    1512$lang['Unable to check upgrades...'] = 'Niet mogelijk om upgrades te controleren...'; 
    1613$lang['Click here to check upgrades now'] = 'Klik hier om nu naar upgrades te zoeken'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/no_NO/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo kan ikke motta oppgraderingsfilen fra serveren'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Klikk her for å se Piwigos %s utgivelses informasjon'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Noen oppgraderinger er tilgjengelig for dine tilleggsprogrammer'; 
    13 $lang['Click here see upgrade plugins page'] = 'Klikk her for å se oppgraderingssiden for dine tilleggsverktøy'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galleri og tilleggsverktøy er alle oppdaterte'; 
    1512$lang['Unable to check upgrades...'] = 'Ike i stand til å sjekke for oppgraderinger...'; 
    1613$lang['Click here to check upgrades now'] = 'Klikk her for å sjekke oppgraderinger nå'; 
     
    4441/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4542/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     43 
     44/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     45/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     46/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4647?> 
  • extensions/autoupdate/trunk/language/pl_PL/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo nie może ściągnąć pliku aktualizacji z serwera'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Kliknij tutaj, aby przejść do informacji o wydaniu Piwigo %s '; 
    12 $lang['Some upgrades are available for you plugins'] = 'Są dostępne aktualizacje do niektórych Twoich wtyczek'; 
    13 $lang['Click here see upgrade plugins page'] = 'Kliknij tutaj, aby przejść na stronę aktualizacji wtyczek'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galeria i wtyczki są aktualne'; 
    1512$lang['Unable to check upgrades...'] = 'Nie można sprawdzić aktualizacji...'; 
    1613$lang['Click here to check upgrades now'] = 'Kliknij tutaj, aby teraz sprawdzić aktualizacje'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/pt_PT/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo não consegue recuperar o ficheiro de actualização do servidor remoto.'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Clique aqui para ver as notas de lançamento de Piwigo %s'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Estão disponíveis algumas actualizações para os seus plugins'; 
    13 $lang['Click here see upgrade plugins page'] = 'Clique aqui para ver a página de actualização de plugins'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galeria e plugins estão actualizados'; 
    1512$lang['Unable to check upgrades...'] = 'Impossível verificar a existência de novas actualizações...'; 
    1613$lang['Click here to check upgrades now'] = 'Clique aqui para verificar agora por novas actualizações'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/ru_RU/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo не может получить файлы обновления с сервера'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Нажмите, чтобы посмотреть заметки к релизу Piwigo %s'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Доступны некоторые обновления для плагинов'; 
    13 $lang['Click here see upgrade plugins page'] = 'Нажмите сюда, чтобы посмотреть страницу обновления плагинов'; 
    14 $lang['Gallery and plugins are up to date'] = 'Галерея и плагины обновлены'; 
    1512$lang['Unable to check upgrades...'] = 'Невозможно проверить обновления...'; 
    1613$lang['Click here to check upgrades now'] = 'Нажмите сюда, чтобы проверить обновления сейчас'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/sk_SK/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo nemôže získať upgradovací súbor zo servra'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Kliknite sem na zobrazenie poznámok k vydaniu Piwigo %s'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Nejaké upgrady sú dostupné pre Vaše pluginy'; 
    13 $lang['Click here see upgrade plugins page'] = 'Kliknite sem na zobrazenie upgradov pluginov'; 
    14 $lang['Gallery and plugins are up to date'] = 'Galéria a pluginy sú aktuálne'; 
    1512$lang['Unable to check upgrades...'] = 'Nemožno skontrolovať upgrady...'; 
    1613$lang['Click here to check upgrades now'] = 'Kliknite sem na skontrolovanie upgradov'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/vi_VN/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo không thể nhận được tệp tin nâng cấp từ  máy chủ'; 
    1111$lang['Click here to see Piwigo %s release notes'] = 'Click vào đây để xem xem những ghi chú phát hành của phiên bản Piwigo %s'; 
    12 $lang['Some upgrades are available for you plugins'] = 'Có một số bản nâng cấp có thể sử dụng được cho những plugins của bạn'; 
    13 $lang['Click here see upgrade plugins page'] = 'Click vào đây để xem trang của plugins'; 
    14 $lang['Gallery and plugins are up to date'] = 'Thư viện hình và plugin đã được cập nhật'; 
    1512$lang['Unable to check upgrades...'] = 'Không thể kiểm tra bản nâng cấp...'; 
    1613$lang['Click here to check upgrades now'] = 'Click vào đây đểm kiểm tra bản nâng cấp ngay'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/language/zh_CN/plugin.lang.php

    r9707 r9710  
    1010$lang['Piwigo cannot retrieve upgrade file from server'] = 'Piwigo 不能从服务器中获取升级文件'; 
    1111$lang['Click here to see Piwigo %s release notes'] = '点击此查看 Piwigo %s 的版通知'; 
    12 $lang['Some upgrades are available for you plugins'] = '您的插件已有更新了'; 
    13 $lang['Click here see upgrade plugins page'] = '点击此查看插件升级页面'; 
    14 $lang['Gallery and plugins are up to date'] = '图库和插件已是最新版'; 
    1512$lang['Unable to check upgrades...'] = '不能检查更新...'; 
    1613$lang['Click here to check upgrades now'] = '点击此检查更新'; 
     
    4542/*TODO*/$lang['Piwigo Upgrade'] = 'Piwigo Upgrade'; 
    4643/*TODO*/$lang['Extensions Upgrade'] = 'Extensions Upgrade'; 
     44 
     45/*TODO*/$lang['Some upgrades are available for extensions'] = 'Some upgrades are available for extensions'; 
     46/*TODO*/$lang['Click here to see upgrades'] = 'Click here to see upgrades'; 
     47/*TODO*/$lang['Gallery and extensions are up to date'] = 'Gallery and extensions are up to date'; 
    4748?> 
  • extensions/autoupdate/trunk/main.inc.php

    r9707 r9710  
    1717 
    1818// Upgrade? 
    19 if (!isset($conf['AU_ignore']['plugins']) or !isset($conf['AU_ignore']['themes']) or !isset($conf['AU_ignore']['languages'])) 
     19if (!isset($conf['AU_ignore']['plugins'])) 
    2020{ 
    2121  $conf['AU_ignore'] = array('plugins'=>array(),'themes'=>array(),'languages'=>array()); 
     
    3838    { 
    3939      unset($_SESSION['need_update']); 
    40       unset($_SESSION['plugins_need_update']); 
     40      unset($_SESSION['extensions_need_update']); 
    4141    } 
    4242 
    43     if (!isset($_SESSION['need_update']) or !isset($_SESSION['plugins_need_update']) 
    44       or $_SESSION['need_update'] !== false or $_SESSION['plugins_need_update'] !== array()) 
     43    if (!isset($_SESSION['need_update']) or !isset($_SESSION['extensions_need_update']) 
     44      or $_SESSION['need_update'] !== false or $_SESSION['extensions_need_update'] !== array()) 
    4545    { 
    4646      $template->set_filename('autoupdate_head', realpath(AUTOUPDATE_PATH.'template/head.tpl')); 
    4747      array_push($header_notes, $template->parse('autoupdate_head', true)); 
    4848    } 
    49   } 
    50  
    51   if ($page['page'] == 'plugins_update' and method_exists('template', 'set_prefilter')) 
    52   { 
    53     include(dirname(__FILE__).'/plugins_update.php'); 
    5449  } 
    5550 
  • extensions/autoupdate/trunk/template/extensions.tpl

    r9707 r9710  
    88var successHead = '{'Upgrade Complete'|@translate|@escape:'javascript'}'; 
    99var errorMsg    = '{'an error happened'|@translate|@escape:'javascript'}'; 
     10var restoreMsg  = '{'autoupdate_reset_ignore'|@translate|@escape:'javascript'}'; 
    1011 
    1112{literal} 
     
    3637      "plugins/autoupdate/ajax/ignore_list.php", 
    3738      { reset: true }, 
    38       function(data) { if (data == "ok") { jQuery(".pluginBox, fieldset").show(); jQuery("#reset_ignore").hide(); } } 
     39      function(data) { 
     40        if (data == "ok") { 
     41          jQuery(".pluginBox, fieldset").show(); 
     42          jQuery("#up_to_date").hide(); 
     43          jQuery("#reset_ignore").hide(); 
     44          jQuery("#ignored").hide(); 
     45        } 
     46      } 
    3947    ); 
    4048    return false; 
     
    4654  var types = new Array('plugin', 'theme', 'language'); 
    4755  var total = 0; 
     56  var ignored = 0; 
    4857  for (i=0;i<3;i++) { 
    4958    nbExtensions = 0; 
     
    5160        if (jQuery(this).css('display') == 'block') 
    5261          nbExtensions++; 
     62        else 
     63          ignored++; 
    5364      }); 
    5465    total = total + nbExtensions; 
     
    6071    jQuery("#update_all").hide(); 
    6172    jQuery("#up_to_date").show(); 
     73  } 
     74  if (ignored > 0) { 
     75    jQuery("#reset_ignore").val(restoreMsg + ' (' + ignored + ')'); 
    6276  } 
    6377} 
     
    132146  <h2>Piwigo AutoUpgrade</h2> 
    133147</div> 
     148 
    134149<div> 
    135150<input type="button" id="update_all" value="{'autoupdate_update_all'|@translate}"> 
    136151<input type="button" id="reset_ignore" value="{'autoupdate_reset_ignore'|@translate}" {if !$SHOW_RESET}style="display:none;"{/if}> 
    137152</div> 
     153 
     154<p id="up_to_date" style="display:none; text-align:left; margin-left:20px;">{'All extensions are up to date.'|@translate}</p> 
    138155 
    139156{if not empty($update_plugins)} 
     
    262279</div> 
    263280{/if} 
    264  
    265 <p>{'All extensions are up to date'|@translate}</p> 
  • extensions/autoupdate/trunk/template/head.tpl

    r9707 r9710  
    1 {html_head} 
    2 <script type="text/javascript"> 
    3 var mess_error = '{'Unable to check upgrades...'|@translate}<br><a href="admin.php?action=check_autoupdate">{'Click here to check upgrades now'|@translate}</a>'; 
     1{footer_script} 
     2var error = '{"Unable to check upgrades..."|@translate|@escape:"javascript"}<br><a href="admin.php?action=check_autoupdate">{"Click here to check upgrades now"|@translate|@escape:"javascript"}</a>'; 
     3var piwigo_upgrade = '{"A new version of Piwigo is available."|@translate|@escape:"javascript"}<br><a href="admin.php?page=plugin-autoupdate">{"Click here to upgrade automatically"|@translate|@escape:"javascript"}</a>'; 
     4var ext_upgrade = '{"Some upgrades are available for extensions"|@translate|@escape:"javascript"}<br><a href="admin.php?page=plugin-autoupdate-ext">{"Click here to see upgrades"|@translate|@escape:"javascript"}</a>'; 
     5var up_to_date = '{"Gallery and extensions are up to date"|@translate|@escape:"javascript"}'; 
    46 
    57window.onload = function () {ldelim} 
     
    1012    timeout: 10000,  // 10 sec timeout 
    1113    success: function (data) {ldelim} 
    12       var reg = new RegExp("(warning|notice)","i"); 
    13       if (data.match(reg)) {ldelim} 
    14         data = mess_error; 
    15       } 
    16       jQuery('#autoupdate').html(data); 
     14      var reg = new RegExp("^(error|piwigo_upgrade|ext_upgrade|up_to_date)$","i"); 
     15      if (!data.match(reg)) 
     16        jQuery('#autoupdate').html(error); 
     17      else 
     18        jQuery('#autoupdate').html(eval(data)); 
    1719    }, 
    1820    error: function() {ldelim} 
    19      jQuery('#autoupdate').html(mess_error); 
     21     jQuery('#autoupdate').html(error); 
    2022    } 
    2123  }); 
    2224} 
    23 </script> 
    24 {/html_head} 
     25{/footer_script} 
    2526<p id="autoupdate"><img src="plugins/autoupdate/template/ajax-loader.gif"> &nbsp; {'Checking upgrades for gallery and plugins...'|@translate}</p> 
Note: See TracChangeset for help on using the changeset viewer.