Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On environments where the display language of the UI is different between the browser and the extension. #3507

Closed
7 tasks done
MaruniUmebachi opened this issue Jan 3, 2025 · 9 comments
Labels
external issue involving an external factor unable to reproduce cannot reproduce the issue

Comments

@MaruniUmebachi
Copy link

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • using a new, unmodified browser profile.

Description

First of all, I cannot write in English at all. Therefore, I urge you kind readers of this text to use machine translation and the like.

Original titleUIの表示言語が、ブラウザと拡張機能とでズレる環境について

概要

 この拡張機能の表示言語を、変更する手段を知りませんか?この拡張機能は「Android版Firefox Beta」の表示言語に従った、望ましい言語で表示されません。もちろん、すでに翻訳されている「日本語」に関して言及しています。

  • 私は今回**「現実的な話」をします**。ですので私は「文法がおかしい」とか「古代エジプト語に対応していない」とかに関する、ちょっと**「理想的な話」はしません**。

補足

 私は、この拡張機能に限らず「Firefox Beta の拡張機能」というものが、ブラウザの表示言語を認識できていない傾向を知っています。

 なお「Firefox」の拡張機能は、Android版も PC版も、ブラウザの表示言語を正しく認識できています。

  • したがって「Firefox」では、この拡張機能が「ジャン=フランソワ・シャンポリオンでなければ解読不可能なロゼッタストーン」になりません

A specific URL where the issue occurs.

moz-extension://8ee89606-8d23-4883-b818-d8c1cb3ee2e0/dashboard.html#settings.html
moz-extension://8ee89606-8d23-4883-b818-d8c1cb3ee2e0/dashboard.html#3p-filters.html

、、、

Steps to Reproduce

  1. (少なくとも日本語環境の)Firefox Beta で、この拡張機能のUIをみる。

 This is not a joke. 私は、本当にこれだけしかしていないはずです。これをさらに詳しく書くと、以下のように余計に分かりにくくなります。

  1. Android Pixel 8 を起動する。
  2. 標準ブラウザ(つまり Google か Chrome)で、正しい「Mozilla」のサイトにアクセスする。
  3. サイトの指示通りに、Firefox と Firefox Beta を「Google Play で入手」する。
  4. Firefox Beta の拡張機能設定から、拡張機能ストアにアクセスする。
  5. この拡張機能に「オススメ」バッチが付いていることを確認して導入する。
  6. この拡張機能のUIをみる。
  7. 英語という「伝説上の言語」で書かれた、高度な技術を発見する。

Expected behavior

この Firefox Beta 拡張機能のUIが、日本語で表示される。

Actual behavior

この Firefox Beta の拡張機能のUIは、英語で表示された。

Configuration

uBlock Origin: 1.61.2
Firefox Mobile: 134
filterset (summary):
 network: 257008
 cosmetic: 193608
 scriptlet: 32576
 html: 2257
listset (total-discarded, last-updated):
 added:
  adguard-spyware-url: 1872-135, 2h.4m
  adguard-spyware: 120045-637, 2h.4m
  block-lan: 64-0, 2h.4m
  curben-phishing: 501-1, 2h.4m
  adguard-cookies: 32901-63, 2h.4m
  adguard-popup-overlays: 28212-1420, 2h.2m
  adguard-mobile-app-banners: 5643-38, 2h.4m
  fanboy-thirdparty_social: 68-0, 2h.4m
  fanboy-cookiemonster: 51569-4082, 2h.4m
  ublock-cookies-easylist: 2074-38, 2h.4m
  easylist-newsletters: 8377-594, 2h.2m
  CHN-0: 24574-132, 2h.2m
  [1 lists not shown]: [too many]
 default:
  user-filters: 0-0, never
  ublock-filters: 41553-123, 1h.4m Δ
  ublock-badware: 12016-1, 1h.4m Δ
  ublock-privacy: 1825-27, 1h.4m Δ
  ublock-unbreak: 2611-1, 1h.4m Δ
  ublock-quick-fixes: 179-11, 1h.4m Δ
  adguard-mobile: 10251-97, 2h.4m
  easylist: 79036-204, 1h.4m Δ
  easyprivacy: 53252-29586, 33m Δ
  urlhaus-1: 23140-0, 2h.4m
  plowe-0: 3547-1151, 2h.4m
  JPN-1: 15608-126, 2h.4m
filterset (user): [empty]
trustedset:
 added: [array of 16 redacted]
switchRuleset:
 added: [array of 23 redacted]
userSettings:
 advancedUserEnabled: true
 cloudStorageEnabled: true
 cnameUncloakEnabled: false
 suspendUntilListsAreLoaded: false
hiddenSettings:
 trustedListPrefixes: ublock- easylist-
supportStats:
 allReadyAfter: 447 ms (selfie)
 maxAssetCacheWait: 241 ms
 cacheBackend: indexedDB
 unsuspendAfter: 184 ms
@MasterKia
Copy link
Member

I urge you to use machine translation

Why don't you use machine translation in the first place?

@gwarser
Copy link

gwarser commented Jan 3, 2025

It works correctly for me in fresh install for Polish and for Japanese if I change Firefox language before installing uBO. Does not work if I try to change language in Firefox on-the-fly - device restart is required. Other user had this issue: https://www.reddit.com/r/uBlockOrigin/comments/1hjbujw/ubo_for_firefox_nightly_is_there_a_french_version/

@u-RraaLL
Copy link
Contributor

u-RraaLL commented Jan 3, 2025

I only need to close and relaunch FF for the uBO language to change after updating the FF setting. On Nightly and stable. But my mobile is nearly 6 years old so I'm stuck on Android 12.

@MaruniUmebachi
Copy link
Author

MaruniUmebachi commented Jan 7, 2025

It works correctly for me in fresh install for Polish and for Japanese if I change Firefox language before installing uBO. Does not work if I try to change language in Firefox on-the-fly - device restart is required. Other user had this issue: https://www.reddit.com/r/uBlockOrigin/comments/1hjbujw/ubo_for_firefox_nightly_is_there_a_french_version/

My expression may have misled you. Sorry.

I have not changed the display language of my "Firefox" and "Firefox Beta". This incident could be reproduced in the same way even if I only confirmed that the display language of my browser was "Japanese".

I tried to reproduce it in the following way, and was able to reproduce it.

Delete this extension from my browser and install it again.

Delete my browser from my device and install it again. Install this extension again on my browser that came back to my device.

Check the display language of the device and browser just in case, and confirm that both are displayed in "Japanese".

That's it.

In other words, this incident can be reproduced regardless of whether I changed the display language of the browser or not.

Also, the browser I am reproducing this incident with is "Firefox Beta". I have not tried to reproduce this incident with "Firefox Nightly".

However, I have also installed "Firefox Nightly" on the same device. And I confirmed that the UI display language of my "Firefox Nightly" extension is also English, just like in the case of my "Firefox Beta".

To begin with, I have never changed the display language of most UIs (even if I had, I would immediately delete and reinstall any "unnecessary settings" because I would be uneasy).

For me, the only times I would change the display language are when I would be unable to access the "Japanese UI that should exist" without doing so (YouTube Music is the only exception, where it may display in English, because classical music track names are often translated into Japanese in a very unnatural way).

@gwarser gwarser added the unable to reproduce cannot reproduce the issue label Jan 7, 2025
@MaruniUmebachi
Copy link
Author

I urge you to use machine translation

Why don't you use machine translation in the first place?

もしかすると、私のやり方は「一見して図々しい要求」かもしれません。もし私のやり方が、あなたを不快な思いにさせたのならば、申し訳ないと思います。

しかし、私のやり方、つまり「自分が扱えない英語での投稿を避ける」という行為には、できるだけ正確な意思疎通をする際に、利点があると思っています。

私が投稿した「日本語で書いた Issue」は、おそらく何らかの手段で「あなたが読むことのできる言語」に変換されることでしょう。例えば、以下のような手段です。

  1. Chromium ブラウザのページ翻訳機能。
  2. DeepL翻訳。
  3. あるいは、その他の機械翻訳。
  4. あるいは生成AI。
  5. その他の何らかの手法。

しかし、これらの技術によって翻訳された「翻訳文」を読む際には、翻訳される前の「原文」を参照したくなるはずです(ただし、敬虔な「翻訳技術の信仰者」を除く)。

また、私のような「英語を読み書きできない人」が機械翻訳を使い、それっぽく翻訳した文章を「有意義な Issue」として受け取ることは、困難だと考えることができます。

そもそも、幸運なことに「日本語を読み書きできる人がいるかもしれない」のに、はじめから英語に翻訳することは、実は理にかなっていません。

仮に「英語による Issue 至上主義」で、英語でなければ誰も受け取ることがないという場合は、以下の手段をとることができます。

  1. 仕方がないので、翻訳して改めて送り直してみる。
  2. そもそも「英語以外の言語に優しくない」と解釈して、諦める。

このような手段をとることができます。

もちろん、私は日本人ですから「日本語に対応するサービスが増えてほしい」という気持ちが、少しならあります(それこそ GitHub とか)。

しかし、私に「英語のフォームに、日本語の文章を入力することで、英語至上主義を打ち砕く」というようなことを、する予定はありません。なぜならばそれは、とてもめんどくさく、余計な対立を生むような行為だからです。

@MaruniUmebachi
Copy link
Author

とにかく、私がこのようなやり方をする理由は、決して「私は面倒だから、あなたが翻訳して」というような、無責任なことではありません。

その証拠に「日本語の性質として、翻訳しにくい文法」や「日本語に固有の表現」などを、できるだけ避けています。

例えば、日本語は文脈から主語を補うので、通常これほど明確に主語を使いません。そして日本語は、主語のない文章を無限につなげることができるので、これほど文を細かく区切りません。

私は、今のインターネットで言語を超えた会話をするならば「伝わる翻訳であるかどうか」よりも、むしろ「翻訳しやすい、単純な文であるかどうか」に気を付けるほうが、思いやりがあってやさしいと感じます。

ちなみに、以下の文章を、私の普段の日本語で表現すると、こんな感じです。

ここで書いた文章:

また、私がこの一件を再現しているブラウザは「Firefox Beta」です。私は、この一件の再現を「Firefox Nightly」で試していません。

ただし、私は同じデバイスに「Firefox Nightly」も導入しています。そして私は、私の「Firefox Nightly」の拡張機能も、私の「Firefox Beta」の場合と同じように、UIの表示言語が英語になっていることを確認しました。

そもそも私は、ほとんどの UI の表示言語を変更したことがありません(仮にしていたとしても、私は「不必要な設定」をしたときは、不安なのですぐに削除と再導入をします)。

Also, the browser I am reproducing this incident with is "Firefox Beta". I have not tried to reproduce this incident with "Firefox Nightly".

However, I have also installed "Firefox Nightly" on the same device. And I confirmed that the UI display language of my "Firefox Nightly" extension is also English, just like in the case of my "Firefox Beta".

To begin with, I have never changed the display language of most UIs (even if I had, I would immediately delete and reinstall any "unnecessary settings" because I would be uneasy).

For me, the only times I would change the display language are when I would be unable to access the "Japanese UI that should exist" without doing so (YouTube Music is the only exception, where it may display in English, because classical music track names are often translated into Japanese in a very unnatural way).

私の普段の日本語で表現した場合:

ただ「Firefox Beta」でのことであって「Firefox Nightly」で試していませんが、持ってるので確認すると同じように英語表示でした。そもそもほとんどの UI の表示言語を変更したことがありません(したとしても「不必要な設定」は割と不安なのですぐ入れなおします)。

@MasterKia
Copy link
Member

Anyway, the reason why I do this is by no means irresponsible, like "I'm too lazy, so you translate it for me."

It doesn't matter, either way you're putting the burden on us to translate each one of your messages.

@gorhill
Copy link
Member

gorhill commented Jan 7, 2025

Anyways, uBO does not chose the language in which it renders, the browser does. uBO just uses an API to get the text, and the browser returns that text in the language it decides is the right one according to its own heuristics. Whatever the issue is, there is nothing uBO can do, it's the browser which decides.

@krystian3w
Copy link

krystian3w commented Jan 8, 2025

An unlocked panel may prove to be the last resort:

about:config

And therein lies the editing of preference:

intl.locale.requested

And enforce a value for it:

ja

With restart browser.



To faster found should works direct URL:

about:config?filter=intl.locale.requested

@gwarser gwarser added the external issue involving an external factor label Jan 8, 2025
@gwarser gwarser closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external issue involving an external factor unable to reproduce cannot reproduce the issue
Projects
None yet
Development

No branches or pull requests

6 participants