Mercurial > defr > drupal > core
comparison includes/locale.inc @ 19:3edae6ecd6c6 6.9
Drupal 6.9
| author | Franck Deroche <franck@defr.org> |
|---|---|
| date | Thu, 15 Jan 2009 10:15:56 +0100 |
| parents | 4347c45bb494 |
| children |
comparison
equal
deleted
inserted
replaced
| 18:f5131a9cd9e5 | 19:3edae6ecd6c6 |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: locale.inc,v 1.174.2.5 2008/12/10 21:29:36 goba Exp $ | 2 // $Id: locale.inc,v 1.174.2.7 2009/01/06 15:36:51 goba Exp $ |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * @file | 5 * @file |
| 6 * Administration functions for locale.module. | 6 * Administration functions for locale.module. |
| 7 */ | 7 */ |
| 663 } | 663 } |
| 664 } | 664 } |
| 665 else { | 665 else { |
| 666 drupal_set_message(t('File to import not found.'), 'error'); | 666 drupal_set_message(t('File to import not found.'), 'error'); |
| 667 $form_state['redirect'] = 'admin/build/translate/import'; | 667 $form_state['redirect'] = 'admin/build/translate/import'; |
| 668 return; | |
| 668 } | 669 } |
| 669 | 670 |
| 670 $form_state['redirect'] = 'admin/build/translate'; | 671 $form_state['redirect'] = 'admin/build/translate'; |
| 671 return; | 672 return; |
| 672 } | 673 } |
| 1366 $report['additions']++; | 1367 $report['additions']++; |
| 1367 } | 1368 } |
| 1368 } | 1369 } |
| 1369 elseif ($mode == LOCALE_IMPORT_OVERWRITE) { | 1370 elseif ($mode == LOCALE_IMPORT_OVERWRITE) { |
| 1370 // Empty translation, remove existing if instructed. | 1371 // Empty translation, remove existing if instructed. |
| 1371 db_query("DELETE FROM {locales_target} WHERE language = '%s' AND lid = %d AND plid = %d AND plural = %d", $translation, $langcode, $lid, $plid, $plural); | 1372 db_query("DELETE FROM {locales_target} WHERE language = '%s' AND lid = %d AND plid = %d AND plural = %d", $langcode, $lid, $plid, $plural); |
| 1372 $report['deletes']++; | 1373 $report['deletes']++; |
| 1373 } | 1374 } |
| 1374 | 1375 |
| 1375 return $lid; | 1376 return $lid; |
| 1376 } | 1377 } |
