From ec3ebca43383a22b35cd746c70968a0433d425ad Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Fri, 7 Mar 2014 13:10:32 +0100 Subject: [PATCH] Introduce new lang constants, @garvinhicking please add :) Hint: addlang.sh does not work on OSX. --- lang/addlang.txt | 7 +++---- templates/2k11/admin/installer.inc.tpl | 4 ++-- templates/2k11/admin/media_items.tpl | 2 +- templates/2k11/admin/serendipity_editor.js.tpl | 3 ++- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lang/addlang.txt b/lang/addlang.txt index ad5ce199..c234307f 100644 --- a/lang/addlang.txt +++ b/lang/addlang.txt @@ -1,4 +1,3 @@ -@define('CLEANCOMPILE_PASS', '[smarty clearCompiledTemplate(%s)]'); -@define('CLEANCOMPILE_FAIL', 'No files available for clearing.'); -@define('CLEANCOMPILE_TITLE', 'Clear template cache'); -@define('CLEANCOMPILE_INFO', 'This will purge all compiled template files of the currently active template. Compiled templates will be automatically re-created on demand by the Smarty framework.'); +@define('INSTALLER_KEY', 'Key'); +@define('INSTALLER_VALUE', 'Value'); +@define('CURRENT_TAB', 'Current tab: '); \ No newline at end of file diff --git a/templates/2k11/admin/installer.inc.tpl b/templates/2k11/admin/installer.inc.tpl index efe26863..b5c4f005 100644 --- a/templates/2k11/admin/installer.inc.tpl +++ b/templates/2k11/admin/installer.inc.tpl @@ -45,8 +45,8 @@ {$CONST.PHP_INSTALLATION} - Key {* i18n *} - Value {* i18n *} + {$CONST.INSTALLER_KEY} + {$CONST.INSTALLER_VALUE} diff --git a/templates/2k11/admin/media_items.tpl b/templates/2k11/admin/media_items.tpl index e489bd05..e73549e8 100644 --- a/templates/2k11/admin/media_items.tpl +++ b/templates/2k11/admin/media_items.tpl @@ -84,7 +84,7 @@
  • {$file.diskname|truncate:30:"…"}
  • {/if} {if $file.mime} -
  • Mime-Type: {$file.mime}
  • {* i18n *} +
  • MIME-Type: {$file.mime}
  • {/if} {if $file.is_image}
  • {$CONST.ORIGINAL_SHORT}: {$file.dimensions_width}x{$file.dimensions_height}
  • diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index 886d047a..8d716147 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -1166,6 +1166,7 @@ var AccessifyHTML5 = function (defaults, more_fixes) { // Tabs if($('body').has('.tabs').size() > 0) { + var currTabText = '{$CONST.CURRENT_TAB}'; $('.tabs').accessibleTabs({ wrapperClass: 'tabcontent', @@ -1174,7 +1175,7 @@ var AccessifyHTML5 = function (defaults, more_fixes) { tabheadClass: 'visuallyhidden', tabbody: '.panel', fx: 'fadeIn', - currentInfoText: 'Current tab: ', // i18n + currentInfoText: currTabText, currentInfoClass: 'visuallyhidden', syncheights: false, saveState: true