pdf.js/l10n
Jonas Jenwald 66aabe3ec7 [api-minor] Add support for toggling of Optional Content in the viewer (issue 12096)
*Besides, obviously, adding viewer support:* This patch attempts to improve the general API for Optional Content Groups slightly, by adding a couple of new methods for interacting with the (more complex) data structures of `OptionalContentConfig`-instances. (Thus allowing us to mark some of the data as "private", given that it probably shouldn't be manipulated directly.)

By utilizing not just the "raw" Optional Content Groups, but the data from the `/Order` array when available, we can thus display the Layers in a proper tree-structure with collapsible headings for PDF documents that utilizes that feature.

Note that it's possible to reset all Optional Content Groups to their default visibility state, simply by double-clicking on the Layers-button in the sidebar.
(Currently that's indicated in the Layers-button tooltip, which is obviously easy to overlook, however it's probably the best we can do for now without adding more buttons, or even a dropdown-toolbar, to the sidebar.)

Also, the current Layers-button icons are a little rough around the edges, quite literally, but given that the viewer will soon have its UI modernized anyway they hopefully suffice in the meantime.

To give users *full* control of the visibility of the various Optional Content Groups, even those which according to the `/Order` array should not (by default) be toggleable in the UI, this patch will place those under a *custom* heading which:
 - Is collapsed by default, and placed at the bottom of the Layers-tree, to be a bit less obtrusive.
 - Uses a slightly different formatting, compared to the "regular" headings.
 - Is localizable.

Finally, note that the thumbnails are *purposely* always rendered with all Optional Content Groups at their default visibility state, since that seems the most useful and it's also consistent with other viewers.
To ensure that this works as intended, we'll thus disable the `PDFThumbnailView.setImage` functionality when the Optional Content Groups have been changed in the viewer. (This obviously means that we'll re-render thumbnails instead of using the rendered pages. However, this situation ought to be rare enough for this to not really be a problem.)
2020-08-30 16:28:40 +02:00
..
ach Update l10n files 2020-08-23 10:10:38 +02:00
af Update l10n files 2020-08-23 10:10:38 +02:00
an Update l10n files 2020-08-23 10:10:38 +02:00
ar Update l10n files 2020-08-23 10:10:38 +02:00
ast Update l10n files 2020-08-23 10:10:38 +02:00
az Update l10n files 2020-08-23 10:10:38 +02:00
be Update l10n files 2020-08-23 10:10:38 +02:00
bg Update l10n files 2020-08-23 10:10:38 +02:00
bn Update l10n files 2020-08-23 10:10:38 +02:00
bo Update l10n files 2020-08-23 10:10:38 +02:00
br Update l10n files 2020-08-23 10:10:38 +02:00
brx Update l10n files 2020-08-23 10:10:38 +02:00
bs Update l10n files 2020-08-23 10:10:38 +02:00
ca Update l10n files 2020-08-23 10:10:38 +02:00
cak Update l10n files 2020-08-23 10:10:38 +02:00
ckb Update l10n files 2020-06-27 11:37:41 +02:00
cs Update l10n files 2020-08-23 10:10:38 +02:00
cy Update l10n files 2020-08-23 10:10:38 +02:00
da Update l10n files 2020-08-23 10:10:38 +02:00
de Update l10n files 2020-08-23 10:10:38 +02:00
dsb Update l10n files 2020-08-23 10:10:38 +02:00
el Update l10n files 2020-08-23 10:10:38 +02:00
en-CA Update l10n files 2020-08-23 10:10:38 +02:00
en-GB Update l10n files 2020-08-23 10:10:38 +02:00
en-US [api-minor] Add support for toggling of Optional Content in the viewer (issue 12096) 2020-08-30 16:28:40 +02:00
eo Update l10n files 2020-08-23 10:10:38 +02:00
es-AR Update l10n files 2020-08-23 10:10:38 +02:00
es-CL Update l10n files 2020-08-23 10:10:38 +02:00
es-ES Update l10n files 2020-08-23 10:10:38 +02:00
es-MX Update l10n files 2020-08-23 10:10:38 +02:00
et Update l10n files 2020-08-23 10:10:38 +02:00
eu Update l10n files 2020-08-23 10:10:38 +02:00
fa Update l10n files 2020-08-23 10:10:38 +02:00
ff Update l10n files 2020-08-23 10:10:38 +02:00
fi Update l10n files 2020-08-23 10:10:38 +02:00
fr Update l10n files 2020-08-23 10:10:38 +02:00
fy-NL Update l10n files 2020-08-23 10:10:38 +02:00
ga-IE Update l10n files 2020-08-23 10:10:38 +02:00
gd Update l10n files 2020-08-23 10:10:38 +02:00
gl Update l10n files 2020-08-23 10:10:38 +02:00
gn Update l10n files 2020-08-23 10:10:38 +02:00
gu-IN Update l10n files 2020-08-23 10:10:38 +02:00
he Update l10n files 2020-08-23 10:10:38 +02:00
hi-IN Update l10n files 2020-08-23 10:10:38 +02:00
hr Update l10n files 2020-08-23 10:10:38 +02:00
hsb Update l10n files 2020-08-23 10:10:38 +02:00
hu Update l10n files 2020-08-23 10:10:38 +02:00
hy-AM Update l10n files 2020-08-23 10:10:38 +02:00
hye Update l10n files 2020-08-23 10:10:38 +02:00
ia Update l10n files 2020-08-23 10:10:38 +02:00
id Update l10n files 2020-08-23 10:10:38 +02:00
is Update l10n files 2020-08-23 10:10:38 +02:00
it Update l10n files 2020-08-23 10:10:38 +02:00
ja Update l10n files 2020-03-06 13:08:15 +01:00
ka Update l10n files 2020-08-23 10:10:38 +02:00
kab Update l10n files 2020-08-23 10:10:38 +02:00
kk Update l10n files 2020-08-23 10:10:38 +02:00
km Update l10n files 2020-08-23 10:10:38 +02:00
kn Update l10n files 2020-08-23 10:10:38 +02:00
ko Update l10n files 2020-08-23 10:10:38 +02:00
lij Update l10n files 2020-08-23 10:10:38 +02:00
lo Update translations 2018-10-23 23:32:42 +02:00
lt Update l10n files 2020-08-23 10:10:38 +02:00
ltg Update l10n files 2020-08-23 10:10:38 +02:00
lv Update l10n files 2020-08-23 10:10:38 +02:00
meh Update l10n files 2020-05-02 13:25:28 +02:00
mk Update l10n files 2020-08-23 10:10:38 +02:00
mr Update l10n files 2020-08-23 10:10:38 +02:00
ms Update l10n files 2020-08-23 10:10:38 +02:00
my Update l10n files 2020-08-23 10:10:38 +02:00
nb-NO Update l10n files 2020-08-23 10:10:38 +02:00
ne-NP Update l10n files 2020-08-23 10:10:38 +02:00
nl Update l10n files 2020-08-23 10:10:38 +02:00
nn-NO Update l10n files 2020-08-23 10:10:38 +02:00
oc Update l10n files 2020-08-23 10:10:38 +02:00
pa-IN Update l10n files 2020-08-23 10:10:38 +02:00
pl Update l10n files 2020-08-23 10:10:38 +02:00
pt-BR Update l10n files 2020-08-23 10:10:38 +02:00
pt-PT Update l10n files 2020-08-23 10:10:38 +02:00
rm Update l10n files 2020-08-23 10:10:38 +02:00
ro Update l10n files 2020-08-23 10:10:38 +02:00
ru Update l10n files 2020-08-23 10:10:38 +02:00
scn Update l10n files 2020-01-31 15:02:59 +01:00
si [Firefox] Stop fetching the chrome.properties files during gulp importl10n (PR 9566 follow-up) 2019-10-17 12:27:11 +02:00
sk Update l10n files 2020-08-23 10:10:38 +02:00
sl Update l10n files 2020-08-23 10:10:38 +02:00
son Update l10n files 2020-08-23 10:10:38 +02:00
sq Update l10n files 2020-08-23 10:10:38 +02:00
sr Update l10n files 2020-08-23 10:10:38 +02:00
sv-SE [api-minor] Add support for toggling of Optional Content in the viewer (issue 12096) 2020-08-30 16:28:40 +02:00
szl Update l10n files 2020-08-23 10:10:38 +02:00
ta Update l10n files 2020-08-23 10:10:38 +02:00
te Update l10n files 2020-08-23 10:10:38 +02:00
th Update l10n files 2020-08-23 10:10:38 +02:00
tl Update l10n files 2020-08-23 10:10:38 +02:00
tr Update l10n files 2020-08-23 10:10:38 +02:00
trs [Firefox] Stop fetching the chrome.properties files during gulp importl10n (PR 9566 follow-up) 2019-10-17 12:27:11 +02:00
uk Update l10n files 2020-08-23 10:10:38 +02:00
ur Update l10n files 2020-08-23 10:10:38 +02:00
uz Update l10n files 2020-08-23 10:10:38 +02:00
vi Update l10n files 2020-08-23 10:10:38 +02:00
wo [Firefox] Stop fetching the chrome.properties files during gulp importl10n (PR 9566 follow-up) 2019-10-17 12:27:11 +02:00
xh Update l10n files 2020-08-23 10:10:38 +02:00
zh-CN Update l10n files 2020-08-23 10:10:38 +02:00
zh-TW Update l10n files 2020-08-23 10:10:38 +02:00
README.md [Firefox] Stop building the metadata.inc/chrome.manifest.inc files during gulp locale (PR 9566 follow-up) 2019-10-17 11:49:30 +02:00

Most of the files in this folder (except for the en-US folder) have been imported from the Firefox Nightly branch; please see https://hg.mozilla.org/l10n-central. Some of the files are licensed under the MPL license. You can obtain a copy of the license at https://mozilla.org/MPL/2.0.