From bfd73ffb2ec5042dafc8d455a428f2875c8b5d43 Mon Sep 17 00:00:00 2001 From: Thierry Francois Date: Sat, 10 May 2014 14:34:40 +0300 Subject: [PATCH] Added missing translation strings --- .../code/GridFieldBulkActionEditHandler.php | 15 ++++++++------- lang/en.yml | 4 ++++ lang/fr.yml | 2 ++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/bulkManager/code/GridFieldBulkActionEditHandler.php b/bulkManager/code/GridFieldBulkActionEditHandler.php index cb33d58..7e00b66 100644 --- a/bulkManager/code/GridFieldBulkActionEditHandler.php +++ b/bulkManager/code/GridFieldBulkActionEditHandler.php @@ -68,15 +68,16 @@ class GridFieldBulkActionEditHandler extends GridFieldBulkActionHandler $singleton = singleton($modelClass); $titleModelClass = (($editingCount > 1) ? $singleton->i18n_plural_name() : $singleton->i18n_singular_name()); + $headerText = _t('GRIDFIELD_BULKMANAGER_EDIT_HANDLER.HEADER_TEXT', + 'Editing {count} {class}', + array( + 'count' => $editingCount, + 'class' => $titleModelClass + ) + ); $header = LiteralField::create( 'bulkEditHeader', - '

' . _t('GRIDFIELD_BULKMANAGER_EDIT_HANDLER.HEADER', - 'Editing {count} {class}', - array( - 'count' => $editingCount, - 'class' => $titleModelClass - ) - ) . '

' + '

' . $headerText . '

' ); $recordsFieldList->push($header); diff --git a/lang/en.yml b/lang/en.yml index d69345f..d1da4ba 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -1,5 +1,7 @@ # DO NOT MODIFY. Generated by build task. # Contribute here: https://www.transifex.com/projects/p/gridfieldbulkeditingtools/ +# DO NOT MODIFY. Generated by build task. +# Contribute here: https://www.transifex.com/projects/p/gridfieldbulkeditingtools/ en: GRIDFIELD_BULK_UPLOAD: FINISH_BTN_LABEL: Finish @@ -14,5 +16,7 @@ en: ACTION_BTN_LABEL: Go SELECT_ALL_LABEL: Select all GRIDFIELD_BULKMANAGER_EDIT_HANDLER: + HEADER_TEXT: Editing {count} {class} + TOGGLE_ALL_LINK: Show/Hide all SAVE_BTN_LABEL: Save all CANCEL_BTN_LABEL: Cancel \ No newline at end of file diff --git a/lang/fr.yml b/lang/fr.yml index 2e45a51..55fe5b5 100644 --- a/lang/fr.yml +++ b/lang/fr.yml @@ -14,5 +14,7 @@ fr: ACTION_BTN_LABEL: Go SELECT_ALL_LABEL: Sélectionner tout GRIDFIELD_BULKMANAGER_EDIT_HANDLER: + HEADER_TEXT: Edition de {count} {class} + TOGGLE_ALL_LINK: Afficher/Masquer tout SAVE_BTN_LABEL: Sauvegarder tout CANCEL_BTN_LABEL: Annuler \ No newline at end of file