Closed Bug 1764698 Opened 2 years ago Closed 2 years ago

i18n.detectLanguage API broken on all plattforms, except Firefox

Categories

(WebExtensions :: General, defect, P5)

defect

Tracking

(firefox106 fixed)

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: TbSync, Assigned: TbSync)

References

Details

(Keywords: intl)

Attachments

(1 file, 1 obsolete file)

The i18n API lives in toolkit and is therefore used for multiple platforms. However, it loads
LanguageDetector.jsm 1 which exists only for Firefox 2. The function browser.i18n.detectLanguage() is therefore broken on all platforms, except Firefox. The tests on those other platforms are disabled 3.

Could that JSM or the entire translation folder be moved to toolkit as well?

See Also: → 1764193
Blocks: 1712214
Summary: i18n API broken on all plattforms, except Firefox → i18n.detectLanguage API broken on all plattforms, except Firefox

The severity field is not set for this bug.
:mixedpuppy, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mixedpuppy)

Hi Florian,
is LanguageDetector.jsm a JSM that we could technically be moved at toolkit level?

Flags: needinfo?(mixedpuppy) → needinfo?(florian)

(In reply to Luca Greco [:rpl] [:luca] [:lgreco] from comment #2)

is LanguageDetector.jsm a JSM that we could technically be moved at toolkit level?

That seems possible. You would also need to move the cld2 folder and the test/unit folder from the browser/components/translation folder to toolkit/.

Flags: needinfo?(florian)

The severity field is not set for this bug.
:mixedpuppy, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mixedpuppy)

(In reply to Release mgmt bot [:suhaib / :marco/ :calixte] from comment #4)

The severity field is not set for this bug.
:mixedpuppy, could you have a look please?

This is blocking other work. At least S3.

Keywords: intl

Not a Firefox bug, but patches welcome for TB.

Severity: -- → S4
Priority: -- → P5

Patches are welcome indeed. John - are you interested in contributing a patch?

Flags: needinfo?(mixedpuppy)

Yes, but i need another week, as I have my head in release related issues currently.

Assignee: nobody → john
Status: NEW → ASSIGNED
Attachment #9285097 - Attachment is obsolete: true

Is there something wrong with my patch?

I overlooked the review request.

Note that while the extension API is a consumer of this internal library, the LanguageDetector.jsm itself is part of Firefox::Translation, so you should also tag the owner of that component. Perhaps :florian?

See Also: → 1785807
Pushed by john@thunderbird.net:
https://hg.mozilla.org/integration/autoland/rev/a8828277a87e
Move LanguageDetector.jsm and related files to toolkit. r=robwu
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Duplicate of this bug: 1817779
No longer duplicate of this bug: 1817779
Blocks: 1817779
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: