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

@ -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));