From 25cc86df681004248adda02626c8ce968235f3e7 Mon Sep 17 00:00:00 2001 From: webchick Date: Sat, 18 Aug 2012 12:36:45 +0200 Subject: [PATCH] =?UTF-8?q?Issue=20#1737186=20by=20sxnc,=20G=C3=A1bor=20Ho?= =?UTF-8?q?jtsy:=20Fix=20code=20style=20issues=20in=20new=20OOP=20Gettext?= =?UTF-8?q?=20parser.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/modules/locale/locale.bulk.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc index 8a9c2fe7ecc..069de2ebf03 100644 --- a/core/modules/locale/locale.bulk.inc +++ b/core/modules/locale/locale.bulk.inc @@ -141,8 +141,8 @@ function locale_translate_import_form_submit($form, &$form_state) { drupal_set_message(t('The translation import of %filename is done.', $variables)); watchdog('locale', 'The translation import of %filename is done.', $variables); - } catch (Exception $exc) { - drupal_set_message(print_r($exc, TRUE)); + } + catch (Exception $exception) { $variables = array('%filename' => $file->filename); drupal_set_message(t('The translation import of %filename failed.', $variables), 'error'); watchdog('locale', 'The translation import of %filename failed.', $variables, WATCHDOG_ERROR); @@ -412,7 +412,8 @@ function locale_translate_batch_import($filepath, &$context) { locale_translate_update_file_history($file); $context['results']['files'][$filepath] = $filepath; $context['results']['stats'][$filepath] = $report; - } catch (Exception $exception) { + } + catch (Exception $exception) { $context['results']['files'][$filepath] = $filepath; $context['results']['failed_files'][$filepath] = $filepath; }