Projet

Général

Profil

Révision 6ff32cea

Ajouté par Florent Torregrosa il y a environ 9 ans

Update core to 7.36

Voir les différences:

drupal7/includes/locale.inc
1931 1931
      $groups[$string['group']],
1932 1932
      array('data' => check_plain(truncate_utf8($string['source'], 150, FALSE, TRUE)) . '<br /><small>' . $string['location'] . '</small>'),
1933 1933
      $string['context'],
1934
      array('data' => _locale_translate_language_list($string['languages'], $limit_language), 'align' => 'center'),
1934
      array('data' => _locale_translate_language_list($string, $limit_language), 'align' => 'center'),
1935 1935
      array('data' => l(t('edit'), "admin/config/regional/translate/edit/$lid", array('query' => drupal_get_destination())), 'class' => array('nowrap')),
1936 1936
      array('data' => l(t('delete'), "admin/config/regional/translate/delete/$lid", array('query' => drupal_get_destination())), 'class' => array('nowrap')),
1937 1937
    );
......
2126 2126
/**
2127 2127
 * List languages in search result table
2128 2128
 */
2129
function _locale_translate_language_list($translation, $limit_language) {
2129
function _locale_translate_language_list($string, $limit_language) {
2130 2130
  // Add CSS.
2131 2131
  drupal_add_css(drupal_get_path('module', 'locale') . '/locale.css');
2132 2132

  
2133
  // Include both translated and not yet translated target languages in the
2134
  // list. The source language is English for built-in strings and the default
2135
  // language for other strings.
2133 2136
  $languages = language_list();
2134
  unset($languages['en']);
2137
  $default = language_default();
2138
  $omit = $string['group'] == 'default' ? 'en' : $default->language;
2139
  unset($languages[$omit]);
2135 2140
  $output = '';
2136 2141
  foreach ($languages as $langcode => $language) {
2137 2142
    if (!$limit_language || $limit_language == $langcode) {
2138
      $output .= (!empty($translation[$langcode])) ? $langcode . ' ' : "<em class=\"locale-untranslated\">$langcode</em> ";
2143
      $output .= (!empty($string['languages'][$langcode])) ? $langcode . ' ' : "<em class=\"locale-untranslated\">$langcode</em> ";
2139 2144
    }
2140 2145
  }
2141 2146

  

Formats disponibles : Unified diff