From 59211e0ac82f285dde81cc2c384a5fb807241d20 Mon Sep 17 00:00:00 2001 From: Alexandre Hannud Abdo Date: Mon, 24 Feb 2014 17:47:57 -0300 Subject: Translation for jQuery.divgrow strings. Fix mismatch in jQuery.timeago strings --- view/js/main.js | 2 +- view/tpl/js_strings.tpl | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index fa96596f4..5f88ea9ca 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -535,7 +535,7 @@ function updateConvItems(mode,data) { $(".wall-item-body").each(function() { if($(this).height() > 410) { if(! $(this).hasClass('divmore')) { - $(this).divgrow({ initialHeight: 400, showBrackets: false }); + $(this).divgrow({ initialHeight: 400, moreText: aStr['divgrowmore'], lessText: aStr['divgrowless'], showBrackets: false }); $(this).addClass('divmore'); } } diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl index 9eb552767..cb0e8d24a 100755 --- a/view/tpl/js_strings.tpl +++ b/view/tpl/js_strings.tpl @@ -2,18 +2,20 @@ var aStr = { - 'delitem' : "{{$delitem}}", - 'comment' : "{{$comment}}", - 'showmore' : "{{$showmore}}", - 'showfewer' : "{{$showfewer}}", - 'pwshort' : "{{$pwshort}}", - 'pwnomatch' : "{{$pwnomatch}}", - 'everybody' : "{{$everybody}}", - 'passphrase' : "{{$passphrase}}", - 'passhint' : "{{$passhint}}", + 'delitem' : "{{$delitem}}", + 'comment' : "{{$comment}}", + 'showmore' : "{{$showmore}}", + 'showfewer' : "{{$showfewer}}", + 'divgrowmore' : "{{$divshowmore}}", + 'divgrowless' : "{{$divshowless}}", + 'pwshort' : "{{$pwshort}}", + 'pwnomatch' : "{{$pwnomatch}}", + 'everybody' : "{{$everybody}}", + 'passphrase' : "{{$passphrase}}", + 'passhint' : "{{$passhint}}", - 't01' : {{$t01}}, - 't02' : {{$t02}}, + 't01' : "{{$t01}}", + 't02' : "{{$t02}}", 't03' : "{{$t03}}", 't04' : "{{$t04}}", 't05' : "{{$t05}}", -- cgit v1.2.3