From 27a5dc7aa0c517255cdb3b9bdde2a3cf1ca5dc65 Mon Sep 17 00:00:00 2001 From: None Date: Mon, 20 Apr 2015 09:25:15 +0200 Subject: [PATCH] Finally make plural-forms work. --- src/forecast_io.js | 1 + src/openweathermap_org.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/forecast_io.js b/src/forecast_io.js index 4616709..b4f244c 100644 --- a/src/forecast_io.js +++ b/src/forecast_io.js @@ -39,6 +39,7 @@ //const Convenience = Me.imports.convenience; const Gettext = imports.gettext.domain('gnome-shell-extension-openweather'); const _ = Gettext.gettext; +const ngettext = Gettext.ngettext; const OPENWEATHER_URL_HOST = 'api.forecast.io'; diff --git a/src/openweathermap_org.js b/src/openweathermap_org.js index b781efc..c2bca3a 100644 --- a/src/openweathermap_org.js +++ b/src/openweathermap_org.js @@ -40,6 +40,7 @@ const Me = ExtensionUtils.getCurrentExtension(); const OpenweathermapOrg = Me.imports.openweathermap_org; const Gettext = imports.gettext.domain('gnome-shell-extension-openweather'); const _ = Gettext.gettext; +const ngettext = Gettext.ngettext; const OPENWEATHER_URL_HOST = 'api.openweathermap.org'; const OPENWEATHER_URL_BASE = 'http://' + OPENWEATHER_URL_HOST + '/data/2.5/';