CC-1960: Internationalize Airtime / Support translations
-added i18n to serverbrowser.js -fixed small typo in SmartBlockCriteria.php
This commit is contained in:
parent
e475c2e99e
commit
9689c75bed
6 changed files with 425 additions and 9 deletions
34
airtime_mvc/public/js/serverbrowse/AIRTIME_DEV_README
Normal file
34
airtime_mvc/public/js/serverbrowse/AIRTIME_DEV_README
Normal file
|
@ -0,0 +1,34 @@
|
|||
Before you overwrite serverbrowser.js, note that we have changed a few lines
|
||||
in this file.
|
||||
|
||||
Running a diff between the original serverbrowser.js and our modified one:
|
||||
|
||||
denise@denise-DX4860:~/airtime/airtime_mvc/public/js/serverbrowse$ diff -u serverbrowser_orig.js serverbrowser.js
|
||||
--- serverbrowser_orig.js 2012-11-28 11:42:43.250237696 -0500
|
||||
+++ serverbrowser.js 2012-11-28 11:44:57.738242930 -0500
|
||||
@@ -65,14 +65,14 @@
|
||||
modal: true,
|
||||
buttons: [
|
||||
{
|
||||
- text: "Cancel",
|
||||
+ text: $.i18n._("Cancel"),
|
||||
"class": "btn",
|
||||
click: function() {
|
||||
browserDlg.dialog("close");
|
||||
}
|
||||
},
|
||||
{
|
||||
- text: "Open",
|
||||
+ text: $.i18n._("Open"),
|
||||
"class": "btn",
|
||||
click: function() {
|
||||
doneOk();
|
||||
@@ -123,7 +123,7 @@
|
||||
function() { $(this).removeClass('ui-state-hover'); }
|
||||
);
|
||||
|
||||
- var enterLabel = $('<span></span>').text('Look in: ').appendTo(enterButton.clone(false).appendTo(enterPathDiv));
|
||||
+ var enterLabel = $('<span></span>').text($.i18n._('Look in')+': ').appendTo(enterButton.clone(false).appendTo(enterPathDiv));
|
||||
|
||||
var enterText = $('<input type="text">').keypress(function(e) {
|
||||
if (e.keyCode == '13') {
|
Loading…
Add table
Add a link
Reference in a new issue