try to fix translation.

I do copy the .mo in /usr/share/locale
yahoo_weather
Simon Claessens 14 years ago
parent 7f0673f6f7
commit 6eaa583958
  1. 4
      weather@venemo.net/extension.js

@ -34,9 +34,9 @@ const Cairo = imports.cairo;
const Clutter = imports.gi.Clutter; const Clutter = imports.gi.Clutter;
const Shell = imports.gi.Shell; const Shell = imports.gi.Shell;
const St = imports.gi.St; const St = imports.gi.St;
const Gettext = imports.gettext.domain('gnome-shell'); const Gettext = imports.gettext;
Gettext.textdomain("weather@venemo.net"); Gettext.textdomain("weather@venemo.net");
Gettext.bindtextdomain("weather@venemo.net", ExtensionSystem.extensionMeta["weather@venemo.net"].path + "/locale"); //Gettext.bindtextdomain("weather@venemo.net", ExtensionSystem.extensionMeta["weather@venemo.net"].path + "/locale");
const _ = Gettext.gettext; const _ = Gettext.gettext;
const Json = imports.gi.Json; const Json = imports.gi.Json;

Loading…
Cancel
Save