|
@@ -6039,47 +6039,43 @@ ConnectionIndicator.prototype.generateText = function () {
|
6039
|
6039
|
|
6040
|
6040
|
}
|
6041
|
6041
|
|
6042
|
|
- var local_address_key = "connectionindicator." +
|
6043
|
|
- (data.localIP.length > 1? "localaddresses" : "localaddress");
|
6044
|
|
- var remote_address_key = "connectionindicator." +
|
6045
|
|
- (data.remoteIP.length > 1? "remoteaddresses" : "remoteaddress");
|
|
6042
|
+ var local_address_key = "connectionindicator.localaddress";
|
|
6043
|
+ var remote_address_key = "connectionindicator.remoteaddress";
|
6046
|
6044
|
var localTransport =
|
6047
|
6045
|
"<tr><td><span class='jitsipopover_blue' data-i18n='" +
|
6048
|
|
- local_address_key +"'>" +
|
6049
|
|
- translate(local_address_key) + "</span></td><td> " +
|
|
6046
|
+ local_address_key +"' data-i18n-options='" +
|
|
6047
|
+ JSON.stringify({count: data.localIP.length}) + "'>" +
|
|
6048
|
+ translate(local_address_key, {count: data.localIP.length}) +
|
|
6049
|
+ "</span></td><td> " +
|
6050
|
6050
|
ConnectionIndicator.getStringFromArray(data.localIP) +
|
6051
|
6051
|
"</td></tr>";
|
6052
|
6052
|
transport =
|
6053
|
6053
|
"<tr><td><span class='jitsipopover_blue' data-i18n='" +
|
6054
|
|
- remote_address_key + "'>" +
|
6055
|
|
- translate(remote_address_key) + "</span></td><td> " +
|
|
6054
|
+ remote_address_key + "' data-i18n-options='" +
|
|
6055
|
+ JSON.stringify({count: data.remoteIP.length}) + "'>" +
|
|
6056
|
+ translate(remote_address_key,
|
|
6057
|
+ {count: data.remoteIP.length}) +
|
|
6058
|
+ "</span></td><td> " +
|
6056
|
6059
|
ConnectionIndicator.getStringFromArray(data.remoteIP) +
|
6057
|
6060
|
"</td></tr>";
|
6058
|
6061
|
|
6059
|
|
- var key_remote = "connectionindicator.",
|
6060
|
|
- key_local = "connectionindicator.";
|
6061
|
|
-
|
6062
|
|
- if(this.transport.length > 1)
|
6063
|
|
- {
|
6064
|
|
- key_remote += "remoteports";
|
6065
|
|
- key_local += "localports";
|
6066
|
|
- }
|
6067
|
|
- else
|
6068
|
|
- {
|
6069
|
|
- key_remote += "remoteport";
|
6070
|
|
- key_local += "localport";
|
6071
|
|
- }
|
|
6062
|
+ var key_remote = "connectionindicator.remoteport",
|
|
6063
|
+ key_local = "connectionindicator.localport";
|
6072
|
6064
|
|
6073
|
6065
|
transport += "<tr>" +
|
6074
|
6066
|
"<td>" +
|
6075
|
6067
|
"<span class='jitsipopover_blue' data-i18n='" + key_remote +
|
6076
|
|
- "'>" +
|
6077
|
|
- translate(key_remote) + "</span></td><td>";
|
|
6068
|
+ "' data-i18n-options='" +
|
|
6069
|
+ JSON.stringify({count: this.transport.length}) + "'>" +
|
|
6070
|
+ translate(key_remote, {count: this.transport.length}) +
|
|
6071
|
+ "</span></td><td>";
|
6078
|
6072
|
localTransport += "<tr>" +
|
6079
|
6073
|
"<td>" +
|
6080
|
6074
|
"<span class='jitsipopover_blue' data-i18n='" + key_local +
|
6081
|
|
- "'>" +
|
6082
|
|
- translate(key_local) + "</span></td><td>";
|
|
6075
|
+ "' data-i18n-options='" +
|
|
6076
|
+ JSON.stringify({count: this.transport.length}) + "'>" +
|
|
6077
|
+ translate(key_local, {count: this.transport.length}) +
|
|
6078
|
+ "</span></td><td>";
|
6083
|
6079
|
|
6084
|
6080
|
transport +=
|
6085
|
6081
|
ConnectionIndicator.getStringFromArray(data.remotePort);
|
|
@@ -11643,6 +11639,7 @@ var defaultOptions = {
|
11643
|
11639
|
defaultValueFromContent: false,
|
11644
|
11640
|
app: interfaceConfig.APP_NAME,
|
11645
|
11641
|
getAsync: false,
|
|
11642
|
+ defaultValueFromContent: false,
|
11646
|
11643
|
customLoad: function(lng, ns, options, done) {
|
11647
|
11644
|
var resPath = "lang/__ns__-__lng__.json";
|
11648
|
11645
|
if(lng === languages.EN)
|