[Nix-dev] Localizing firefox
Sergey Mironov
grrwlf at gmail.com
Tue Nov 12 09:14:31 CET 2013
And you are right, the wrapper can't detect already existing
localization. Probably I should try exploring ~/.mozilla/firefox/
internals. Or just wait until upstream team fixes locale detection.
2013/11/12 Lluís Batlle i Rossell <viric at viric.name>:
> On Tue, Nov 12, 2013 at 11:58:01AM +0400, Sergey Mironov wrote:
>> Hi. I've commited a new wrapper for firefox browser to my local
>> branch. It is probably not ready for master because of too
>> straightforward way of doing things which may break in some cases.
>> Still I think it may be handy for administrators.
>>
>> https://github.com/grwlf/nixpkgs/commit/5bef35c5c3a7dda5b73978d6822bb54796d24b08
>>
>> In short, the wrapper does two things: 1) Downloads language pack in
>> the background when it thinks language pack is not installed. 2) Adds
>> corresponding -UILocale <lang> option to the underlying default
>> firefox wrapper. Use it like this:
>>
>> environment.systemPackages = with pkgs ; [
>> ...
>> (firefoxLocaleWrapper "ru")
>> ...
>> ];
>
> I use a localised firefox too... but installing the language pack, makes it
> redownload an updated version at every firefox update.
>
> This didn't use to happen.
More information about the nix-dev
mailing list