Open Bug 1842816 Opened 1 year ago Updated 5 months ago

nrk.no is not fully translated (probably because of different "lang" attributes)

Categories

(Firefox :: Translations, defect, P3)

defect

Tracking

()

People

(Reporter: marco, Unassigned)

References

(Blocks 1 open bug)

Details

Most of the content in https://www.nrk.no/ is not translated. Probably it's because <html lang="nb-NO"> but most page elements have <div lang="no"> (at least this is the reason in the addon, see https://github.com/mozilla/firefox-translations/issues/344#issuecomment-1145850045).

The TranslationsDocument needs to respect macro language codes. Currently it's only respecting a specific language code. The TranslationsDocument.prototype.documentLanguage needs to be changed from a type string to a type Set<string> that contains the language code and its macro language code if applicable.

The page's macro language code is already respected in the TranslationsParent.

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

For more information, please visit BugBot documentation.

Flags: needinfo?(gtatum)
Severity: -- → S3
Flags: needinfo?(gtatum)
Priority: -- → P3
Blocks: 1845772
No longer blocks: 1838721
You need to log in before you can comment on or make changes to this bug.