Allow localising the separator

Some languages (e.g. Arabic) use a different comma.
merge-requests/218/head
Khaled Hosny 9 years ago
parent 26de6af319
commit 9ec8effed8
  1. 4
      src/forecast_io.js
  2. 4
      src/openweathermap_org.js

@ -170,9 +170,9 @@ function parseWeatherCurrent() {
if (this._text_in_panel)
weatherInfoT = temperature;
this._weatherInfo.text = weatherInfoC + ((weatherInfoC && weatherInfoT) ? ", " : "") + weatherInfoT;
this._weatherInfo.text = weatherInfoC + ((weatherInfoC && weatherInfoT) ? _(", ") : "") + weatherInfoT;
this._currentWeatherSummary.text = comment + ", " + temperature;
this._currentWeatherSummary.text = comment + _(", ") + temperature;
this._currentWeatherLocation.text = location;
this._currentWeatherCloudiness.text = parseInt(json.cloudCover * 100) + ' %';
this._currentWeatherHumidity.text = parseInt(json.humidity * 100) + ' %';

@ -362,9 +362,9 @@ function parseWeatherCurrent() {
if (this._text_in_panel)
weatherInfoT = temperature;
this._weatherInfo.text = weatherInfoC + ((weatherInfoC && weatherInfoT) ? ", " : "") + weatherInfoT;
this._weatherInfo.text = weatherInfoC + ((weatherInfoC && weatherInfoT) ? _(", ") : "") + weatherInfoT;
this._currentWeatherSummary.text = comment + ", " + temperature;
this._currentWeatherSummary.text = comment + _(", ") + temperature;
this._currentWeatherLocation.text = location;
this._currentWeatherCloudiness.text = json.clouds.all + ' %';
this._currentWeatherHumidity.text = json.main.humidity + ' %';

Loading…
Cancel
Save