From 35a30db204ba766c5645bc3174feb1424ed6b7d5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 3 Oct 2008 22:47:34 +0000 Subject: [PATCH] ENHANCEMENT Better i18n for TableField and ComplexTableField git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63633 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- templates/ComplexTableField.ss | 4 +++- templates/TableField.ss | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/ComplexTableField.ss b/templates/ComplexTableField.ss index 5925599eb..13b326c17 100755 --- a/templates/ComplexTableField.ss +++ b/templates/ComplexTableField.ss @@ -44,7 +44,9 @@ <% if Markable %> <% end_if %> - <% _t('ADDITEM', 'add') %><% _t('ADDITEM', 'Add', PR_MEDIUM, 'Add [name]') %> $Title + <% _t('ADDITEM', 'add') %> + <% sprintf(_t('ADDITEM', 'Add %s', PR_MEDIUM, 'Add [name]'),$Title) %> + <% control Actions %> <% end_control %> diff --git a/templates/TableField.ss b/templates/TableField.ss index 1bab0a1c0..446786b0f 100755 --- a/templates/TableField.ss +++ b/templates/TableField.ss @@ -30,7 +30,9 @@ <% if Can(add) %> - <% _t('ADD') %> <% _t('ADDITEM') %> $Title + <% _t('ADD') %> + <% sprintf(_t('ADDITEM'),$Title) %> + <% if Can(delete) %> <% end_if %>