Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

I m trying to have language pack enabled by default for any new profile in firefox 25

  • 2 trả lời
  • 14 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi dveg

more options

I m working with virtual machine used in 12 different countries, we've installed firefox in english but the users want to have a localized version. I found how to add them for every new profile (by putting them in the browser directory) but they appear as deactivated for the users and therefore we cannot switch the UI language using customized .js files. Is there a way to activate them by default ?

I m working with virtual machine used in 12 different countries, we've installed firefox in english but the users want to have a localized version. I found how to add them for every new profile (by putting them in the browser directory) but they appear as deactivated for the users and therefore we cannot switch the UI language using customized .js files. Is there a way to activate them by default ?

Giải pháp được chọn

Do they work if you create an /distribution/bundles/ folder in the Firefox program folder?

You need to create a folder with the name of the GUID of the language pack and extract the content of the XPI files to the /distribution/bundles/ folder to make it work.

I tested it on Linux and it seems to work.
They do not show in about:addons, but if I set the general.useragent.locale pref properly and restart Firefox then the language changes.

EDIT: Looks that this only works with the en-US version

Đọc câu trả lời này trong ngữ cảnh 👍 2

Tất cả các câu trả lời (2)

more options

Giải pháp được chọn

Do they work if you create an /distribution/bundles/ folder in the Firefox program folder?

You need to create a folder with the name of the GUID of the language pack and extract the content of the XPI files to the /distribution/bundles/ folder to make it work.

I tested it on Linux and it seems to work.
They do not show in about:addons, but if I set the general.useragent.locale pref properly and restart Firefox then the language changes.

EDIT: Looks that this only works with the en-US version

Được chỉnh sửa bởi cor-el vào

more options

Thanks for the quick answer.

I tried your solution, I created the folder :

"C:\Program Files (x86)\Mozilla Firefox\distribution\bundles\{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"

I also tried :

C:\Program Files (x86)\Mozilla Firefox\distribution\bundles\Langpack-en-GB@firefox.mozilla.org

It did not work, unzipping or not the .xpi did not seems to make much difference either. I did the test with an existing profile and a new one. Is there a parameter or a command line to automatically activate addons ?

EDIT : I stand corrected, it does work but only with the US version of mozilla. I was doing the test on my french mozilla version at home. I did a reinstallation with the US version that we uses for our VM and it worked just like you said. Thanks a lot.

Được chỉnh sửa bởi dveg vào