Closed OlgaTPark closed 3 years ago
Thanks for doing this. I was expecting a menu item, though (or at least to unhide the existing one). I guess I don't mind this being attached to the bar icon too, but it seems like it should be in both places and the string changed to "Enter Reader View" (capitalized).
Adding @chris-chtrusch about the locale change.
For which FPR version is this planned?
Well, I guess that's a good question. I'd hate to ship locale updates back to back and even though this is a really low risk change I'd prefer not to ship a new feature without a beta. The two options are to hold the Enable JavaScript feature over for the next release, or to hold this one for another locale change. @NapalmSauce , do you have any strong feelings here?
Well, I have my builds, so I don't mind if you hold the JS toggle for the next release, really. Thanks again!
I have no problem making back-to-back langpack installers. Do you think people will be confused if they have to download yet another installer that only lasts one version?
The only thing I don't really want to do is to make the langpacks 'blindly', i.e. without an English (beta) version of the browser that actually has the new items working.
@chris-chtrusch I agree with that too (that's why we have betas). @NapalmSauce , thank you for being flexible! Rather than do a full backout I'll just neuter the Enable JavaScript option and add it back for FPR29b1. I will merge this PR then as well with the requested change(s).
Here are the changes discussed in OlgaTPark/tenfourfox#14 needed to add a keyboard shortcut to Reader Mode (the patches are based on PowerPC TenFourFox FPR6 because I tested them in OlgaFox FPR6).
This commit doesn't include M1438308 which changes the shortcut on Windows to
F9
.I also didn't included M1480415 which concerns a Windows screen reader that cannot "see" the reader button in the toolbar (but I doesn't expect a better situation on Mac OS X).
If you want, I can also add the changes for the
pdfjs.display.use_document_fonts=true
setting to this pull request.Concerning localizations, two files are affected:
https://github.com/OlgaTPark/tenfourfox/commit/8c65cb0c773492a235d8b253301155e23b51130d#diff-38fb3065c40acfe9cd97e7cd67908052R102-R113
/browser/locales/en-US/chrome/browser/browser.dtd
(which ends up in
{TenFourFox.app/Content/Resources}/browser/chrome/en-US/locale/browser/browser.dtd
).Here, the change is the same for every locale (checked in Mozilla XPIs).
And:
https://github.com/OlgaTPark/tenfourfox/commit/8c65cb0c773492a235d8b253301155e23b51130d#diff-0b08792398c408a93dd2a72b4b61cab5L286-L295
/browser/locales/en-US/chrome/browser/browser.properties
(which ends up in
{TenFourFox.app/Content/Resources}/browser/chrome/en-US/locale/browser/browser.properties
).I extracted the translated strings for every locale supported by TenFourFox from http://ftp.mozilla.org/pub/firefox/releases/60.0/mac/xpi/:
reader-mode-button.tooltip=Leseansicht umschalten (%S)
reader-mode-button.tooltip=Toggle reader view (%S)
reader-mode-button.tooltip=Cambiar vista de lectura (%S)
reader-mode-button.tooltip=Näytä/piilota lukunäkymä (%S)
reader-mode-button.tooltip=Activer/Désactiver le mode lecture (%S)
reader-mode-button.tooltip = Attiva/disattiva Modalità lettura (%S)
reader-mode-button.tooltip=읽기 모드 토글(%S)
reader-mode-button.tooltip=Przełącz poprawianie czytelności (%S)
reader-mode-button.tooltip=Включить/отключить Вид для чтения (%S)
reader-mode-button.tooltip=Växla läsvy (%S)
reader-mode-button.tooltip=Okuyucu görünümünü aç/kapat (%S)
reader-mode-button.tooltip=切换阅读器视图 (%S)
And for my forgiveness, I can already translate the strings from https://github.com/classilla/tenfourfox/issues/328#issuecomment-703730518 in French:
grep
ed it in the localizations to see if it's already somewhere else and I've found:TenFourFox.app/Contents/Resources/chrome/fr/locale/fr/cookie/cookieAcceptDialog.properties
:domainColon=Domaine :
TenFourFox.app/Contents/Resources/browser/chrome/fr/locale/fr/devtools/client/netmonitor.dtd
:<!ENTITY netmonitorUI.toolbar.domain "Domaine">
TenFourFox.app/Contents/Resources/browser/chrome/fr/locale/browser/preferences/cookies.dtd
:<!ENTITY props.domain.label "Hôte :">
(This variant has a « Hostname » meaning)