CC-1960: Internationalize Airtime / Support translations

-got rid of spaces at beginning of strings
-removed empty string translations
-overwrote Zend_Validate_Between object error messages
This commit is contained in:
denise 2012-11-28 16:16:39 -05:00
parent 9689c75bed
commit 542434d9f0
17 changed files with 52 additions and 38 deletions

View file

@ -30,11 +30,11 @@ var AIRTIME = (function(AIRTIME) {
var objType = $('#obj_type').val(),
btnText;
if (objType === 'playlist') {
btnText = $.i18n._(' Add to current playlist');
btnText = ' '+$.i18n._('Add to current playlist');
} else if (objType === 'block') {
btnText = $.i18n._(' Add to current smart block');
btnText = ' '+$.i18n._('Add to current smart block');
} else {
btnText = $.i18n._(' Add to current playlist');
btnText = ' '+$.i18n._('Add to current playlist');
}
AIRTIME.library.changeAddButtonText($('.btn-group #library-plus #lib-plus-text'), btnText);
};

View file

@ -21,7 +21,7 @@ var AIRTIME = (function(AIRTIME) {
AIRTIME.button.disableButton("btn-group #library-plus", false);
}
AIRTIME.library.changeAddButtonText($('.btn-group #library-plus #lib-plus-text'), $.i18n._(' Add to selected show'));
AIRTIME.library.changeAddButtonText($('.btn-group #library-plus #lib-plus-text'), ' '+$.i18n._('Add to selected show'));
};
mod.fnRowCallback = function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {

View file

@ -88,13 +88,13 @@ denise@denise-DX4860:~/airtime/airtime_mvc/public/js/datatables/plugin$ diff -u
+
+ var label = "";
+ if (th.attr('id') == "bit_rate") {
+ label = $.i18n._(" kbps");
+ label = $.i18n._("kbps");
+ } else if (th.attr('id') == "utime" || th.attr('id') == "mtime" || th.attr('id') == "lptime") {
+ label = $.i18n._(" yyyy-mm-dd");
+ label = $.i18n._("yyyy-mm-dd");
+ } else if (th.attr('id') == "length") {
+ label = $.i18n._(" hh:mm:ss.t");
+ label = $.i18n._("hh:mm:ss.t");
+ } else if (th.attr('id') == "sample_rate") {
+ label = $.i18n._(" kHz");
+ label = $.i18n._("kHz");
+ }
+
th.html(_fnRangeLabelPart(0));

View file

@ -184,13 +184,13 @@
var label = "";
if (th.attr('id') == "bit_rate") {
label = $.i18n._(" kbps");
label = $.i18n._("kbps");
} else if (th.attr('id') == "utime" || th.attr('id') == "mtime" || th.attr('id') == "lptime") {
label = $.i18n._(" yyyy-mm-dd");
label = $.i18n._("yyyy-mm-dd");
} else if (th.attr('id') == "length") {
label = $.i18n._(" hh:mm:ss.t");
label = $.i18n._("hh:mm:ss.t");
} else if (th.attr('id') == "sample_rate") {
label = $.i18n._(" kHz");
label = $.i18n._("kHz");
}
th.html(_fnRangeLabelPart(0));