Re: Question on translations and prefs.js
- From: Yaa101 <yaa101 xs4all nl>
- To: Amy C <mathematical coffee gmail com>
- Cc: "gnome-shell-list gnome org" <gnome-shell-list gnome org>
- Subject: Re: Question on translations and prefs.js
- Date: Thu, 19 Jul 2012 01:40:54 +0200
Hi Amy,
Yes, I have
const Me = imports.misc.extensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const Gettext =
imports.gettext.domain('gnome-shell-extensions-quicklaunchbar');
const _ = Gettext.gettext;
and in the init()
Convenience.initTranslations('gnome-shell-extensions-quicklaunchbar');
Before I put in the effort of making it work, I want to know if the
translations are supposed to work in prefs.js
--
(o_
//\ Regards, Groeten,
V_/_ Bas Burger.
On Thu, 19 Jul 2012 09:09:50 +1000
Amy C <mathematical coffee gmail com> wrote:
> You added the Convenience.initTranslations() (or
> imports.gettext.bindtextdomain('my-domain', '/path/to/locale/')) into
> the init() function in prefs.js, right?
>
> On 19 July 2012 07:20, Yaa101 <yaa101 xs4all nl> wrote:
> >
> > Hi all,
> >
> > I tried to make translations work in prefs.js but to no avail.
> >
> > I did manage to have translations in my extension, so nothing is
> > wrong with my system locale settings.
> >
> > Should translations work in the prefs.js?
> > Am I doing something wrong?
> > Is there a workaround, or do I have to setup something different?
> >
> > --
> > (o_
> > //\ Regards, Groeten,
> > V_/_ Bas Burger.
> > _______________________________________________
> > gnome-shell-list mailing list
> > gnome-shell-list gnome org
> > https://mail.gnome.org/mailman/listinfo/gnome-shell-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]