Skip to content

Commit ab419cc

Browse files
Merge pull request #13383 from Snuffleupagus/update-packages
Update packages and translations
2 parents 438cf1e + 198ef04 commit ab419cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1061
-674
lines changed

.eslintrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"rules": {
3333
// Plugins
3434
"import/extensions": ["error", "always", { "ignorePackages": true, }],
35-
"import/no-unresolved": "error",
35+
"import/no-unresolved": ["error", {
36+
"ignore": ["pdfjs", "pdfjs-lib", "pdfjs-web"]
37+
}],
3638
"mozilla/avoid-removeChild": "error",
3739
"mozilla/use-includes-instead-of-indexOf": "error",
3840
"no-unsanitized/method": "error",

external/builder/builder.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ function preprocess(inFilename, outFilename, defines) {
122122
let line;
123123
let state = STATE_NONE;
124124
const stack = [];
125-
const control = /^(?:\/\/|<!--)\s*#(if|elif|else|endif|expand|include|error)\b(?:\s+(.*?)(?:-->)?$)?/;
125+
const control =
126+
/^(?:\/\/|<!--)\s*#(if|elif|else|endif|expand|include|error)\b(?:\s+(.*?)(?:-->)?$)?/;
126127

127128
while ((line = readLine()) !== null) {
128129
++lineNumber;

external/builder/test-fixtures.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const builder = require("./builder");
3+
const builder = require("./builder.js");
44
const fs = require("fs");
55
const path = require("path");
66

external/cmapscompress/parse.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ exports.parseAdobeCMap = function (content) {
3636
if (m) {
3737
result.usecmap = m[1];
3838
}
39-
const re = /(\d+)\s+(begincodespacerange|beginnotdefrange|begincidchar|begincidrange|beginbfchar|beginbfrange)\n([\s\S]*?)\n(endcodespacerange|endnotdefrange|endcidchar|endcidrange|endbfchar|endbfrange)/g;
39+
const re =
40+
/(\d+)\s+(begincodespacerange|beginnotdefrange|begincidchar|begincidrange|beginbfchar|beginbfrange)\n([\s\S]*?)\n(endcodespacerange|endnotdefrange|endcidchar|endcidrange|endbfchar|endbfrange)/g;
4041
while ((m = re.exec(body))) {
4142
const lines = m[3].toLowerCase().split("\n");
4243

gulpfile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ gulp.task("cmaps", function (done) {
756756
}
757757
});
758758

759-
const compressCmaps = require("./external/cmapscompress/compress.js")
760-
.compressCmaps;
759+
const compressCmaps =
760+
require("./external/cmapscompress/compress.js").compressCmaps;
761761
compressCmaps(CMAP_INPUT, VIEWER_CMAP_OUTPUT, true);
762762
done();
763763
});
@@ -1415,7 +1415,8 @@ function buildLibHelper(bundleDefines, inputStream, outputDir) {
14151415
babelPluginReplaceNonWebPackRequire,
14161416
],
14171417
}).code;
1418-
const removeCjsSrc = /^(var\s+\w+\s*=\s*(_interopRequireDefault\()?require\(".*?)(?:\/src)(\/[^"]*"\)\)?;)$/gm;
1418+
const removeCjsSrc =
1419+
/^(var\s+\w+\s*=\s*(_interopRequireDefault\()?require\(".*?)(?:\/src)(\/[^"]*"\)\)?;)$/gm;
14191420
content = content.replace(removeCjsSrc, (all, prefix, interop, suffix) => {
14201421
return prefix + suffix;
14211422
});
@@ -2176,9 +2177,8 @@ gulp.task(
21762177
let reason = process.env.PDFJS_UPDATE_REASON;
21772178
// Attempt to work-around the broken link, see https://github.com/mozilla/pdf.js/issues/10391
21782179
if (typeof reason === "string") {
2179-
const reasonParts = /^(See )(mozilla\/pdf\.js)@tags\/(v\d+\.\d+\.\d+)\s*$/.exec(
2180-
reason
2181-
);
2180+
const reasonParts =
2181+
/^(See )(mozilla\/pdf\.js)@tags\/(v\d+\.\d+\.\d+)\s*$/.exec(reason);
21822182

21832183
if (reasonParts) {
21842184
reason =

l10n/ast/viewer.properties

+2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ zoom.title=Zoom
3636
presentation_mode.title=Cambiar al mou de presentación
3737
presentation_mode_label=Mou de presentación
3838
open_file_label=Abrir
39+
print.title=Imprentar
3940
print_label=Imprentar
41+
download.title=Baxar
4042
download_label=Baxar
4143
bookmark_label=Vista actual
4244

l10n/cy/viewer.properties

+8-8
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ cursor_hand_tool_label=Offeryn Llaw
6767

6868
scroll_vertical.title=Defnyddio Sgrolio Fertigol
6969
scroll_vertical_label=Sgrolio Fertigol
70-
scroll_horizontal.title=Defnyddio Sgrolio Fertigol
71-
scroll_horizontal_label=Sgrolio Fertigol
70+
scroll_horizontal.title=Defnyddio Sgrolio Llorweddol
71+
scroll_horizontal_label=Sgrolio Llorweddol
7272
scroll_wrapped.title=Defnyddio Sgrolio Amlapio
7373
scroll_wrapped_label=Sgrolio Amlapio
7474

75-
spread_none.title=Peidio uno taeniadau canol
76-
spread_none_label=Dim Taeniadau
77-
spread_odd.title=Uno taeniadau tudalen yn cychwyn gyda thudalennau odrif
78-
spread_odd_label=Taeniadau Odrifau
79-
spread_even.title=Uno taeniadau tudalen yn cychwyn gyda thudalennau eilrif
80-
spread_even_label=Taeniadau Eilrif
75+
spread_none.title=Peidio uno trawsdaleniadau
76+
spread_none_label=Dim Trawsdaleniadau
77+
spread_odd.title=Uno trawsdaleniadau gan gychwyn gyda thudalennau odrif
78+
spread_odd_label=Trawsdaleniadau Odrif
79+
spread_even.title=Uno trawsdaleniadau gan gychwyn gyda thudalennau eilrif
80+
spread_even_label=Trawsdaleniadau Eilrif
8181

8282
# Document properties dialog box
8383
document_properties.title=Priodweddau Dogfen…

l10n/gn/viewer.properties

+3
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,6 @@ password_cancel=Heja
256256
printing_not_supported=Kyhyjerã: Ñembokuatia ndojokupytypái ko kundahára ndive.
257257
printing_not_ready=Kyhyjerã: Ko PDF nahenyhẽmbái oñembokuatia hag̃uáicha.
258258
web_fonts_disabled=Ñanduti taity oñemongéma: ndaikatumo’ãi eipuru PDF jehai’íva taity.
259+
# LOCALIZATION NOTE (unsupported_feature_signatures): Should contain the same
260+
# exact string as in the `chrome.properties` file.
261+
unsupported_feature_signatures=Ko PDF kuatiaite oreko mboheraguapy ñandutigua. Noñemoneĩri ñemboheraguapy.

l10n/hr/viewer.properties

+3
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,6 @@ password_cancel=Odustani
256256
printing_not_supported=Upozorenje: Ovaj preglednik ne podržava u potpunosti ispisivanje.
257257
printing_not_ready=Upozorenje: PDF nije u potpunosti učitan za ispis.
258258
web_fonts_disabled=Web fontovi su deaktivirani: nije moguće koristiti ugrađene PDF fontove.
259+
# LOCALIZATION NOTE (unsupported_feature_signatures): Should contain the same
260+
# exact string as in the `chrome.properties` file.
261+
unsupported_feature_signatures=Ovaj PDF dokument sadrži digitalne potpise. Provjera potpisa nije podržana.

l10n/ja/viewer.properties

+3
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,6 @@ password_cancel=キャンセル
256256
printing_not_supported=警告: このブラウザーでは印刷が完全にサポートされていません。
257257
printing_not_ready=警告: PDF を印刷するための読み込みが終了していません。
258258
web_fonts_disabled=ウェブフォントが無効になっています: 埋め込まれた PDF のフォントを使用できません。
259+
# LOCALIZATION NOTE (unsupported_feature_signatures): Should contain the same
260+
# exact string as in the `chrome.properties` file.
261+
unsupported_feature_signatures=この PDF ドキュメントは、デジタル署名が含まれています。署名の検証はサポートされていません。

l10n/ka/viewer.properties

+8
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ findbar_label=ძიება
156156
additional_layers=დამატებითი ფენები
157157
# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
158158
page_canvas=გვერდი {{page}}
159+
# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
160+
page_landmark=გვერდი {{page}}
159161
# Thumbnails panel item (tooltip and alt text for images)
160162
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
161163
# number.
@@ -229,6 +231,9 @@ page_scale_percent={{scale}}%
229231

230232
# Loading indicator messages
231233
loading_error_indicator=შეცდომა
234+
235+
# Loading indicator messages
236+
loading=ჩატვირთვა…
232237
loading_error=შეცდომა, PDF-ფაილის ჩატვირთვისას.
233238
invalid_file_error=არამართებული ან დაზიანებული PDF-ფაილი.
234239
missing_file_error=ნაკლული PDF-ფაილი.
@@ -251,3 +256,6 @@ password_cancel=გაუქმება
251256
printing_not_supported=გაფრთხილება: ამობეჭდვა ამ ბრაუზერში არაა სრულად მხარდაჭერილი.
252257
printing_not_ready=გაფრთხილება: PDF სრულად ჩატვირთული არაა, ამობეჭდვის დასაწყებად.
253258
web_fonts_disabled=ვებშრიფტები გამორთულია: ჩაშენებული PDF-შრიფტების გამოყენება ვერ ხერხდება.
259+
# LOCALIZATION NOTE (unsupported_feature_signatures): Should contain the same
260+
# exact string as in the `chrome.properties` file.
261+
unsupported_feature_signatures=ეს PDF შეიცავს ციფრულ ხელმოწერებს. ხელმოწერების დამოწმება არაა მხარდაჭერილი.

l10n/pl/viewer.properties

+3
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,6 @@ password_cancel=Anuluj
256256
printing_not_supported=Ostrzeżenie: drukowanie nie jest w pełni obsługiwane przez tę przeglądarkę.
257257
printing_not_ready=Ostrzeżenie: dokument PDF nie jest całkowicie wczytany, więc nie można go wydrukować.
258258
web_fonts_disabled=Czcionki sieciowe są wyłączone: nie można użyć osadzonych czcionek PDF.
259+
# LOCALIZATION NOTE (unsupported_feature_signatures): Should contain the same
260+
# exact string as in the `chrome.properties` file.
261+
unsupported_feature_signatures=Ten dokument PDF zawiera podpisy cyfrowe. Weryfikacja podpisów nie jest obsługiwana.

l10n/sco/viewer.properties

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Copyright 2012 Mozilla Foundation
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Main toolbar buttons (tooltips and alt text for images)
16+
17+
# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input.
18+
page.title=Page
19+
# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number
20+
# representing the total number of pages in the document.
21+
# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}"
22+
# will be replaced by a number representing the currently visible page,
23+
# respectively a number representing the total number of pages in the document.
24+
25+
print.title=Prent
26+
print_label=Prent
27+
28+
# Secondary toolbar and context menu
29+
30+
31+
32+
33+
# Document properties dialog box
34+
# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
35+
# will be replaced by the PDF file size in kilobytes, respectively in bytes.
36+
document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
37+
# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
38+
# will be replaced by the PDF file size in megabytes, respectively in bytes.
39+
document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
40+
# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
41+
# will be replaced by the creation/modification date, and time, of the PDF file.
42+
document_properties_date_string={{date}}, {{time}}
43+
# LOCALIZATION NOTE (document_properties_page_size_dimension_string):
44+
# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
45+
# the size, respectively their unit of measurement and orientation, of the (current) page.
46+
document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} ({{orientation}})
47+
# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string):
48+
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
49+
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
50+
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})
51+
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
52+
# the document; usually called "Fast Web View" in English locales of Adobe software.
53+
document_properties_close=Sneck
54+
55+
# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
56+
# a numerical per cent value.
57+
print_progress_percent={{progress}}%
58+
59+
# Tooltips and alt text for side panel toolbar buttons
60+
# (the _label strings are alt text for the buttons, the .title strings are
61+
# tooltips)
62+
63+
# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
64+
page_canvas=Page {{page}}
65+
# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
66+
page_landmark=Page {{page}}
67+
# Thumbnails panel item (tooltip and alt text for images)
68+
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
69+
# number.
70+
thumb_page_title=Page {{page}}
71+
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
72+
# number.
73+
74+
# Find panel button title and messages
75+
# LOCALIZATION NOTE (find_match_count): The supported plural forms are
76+
# [one|two|few|many|other], with [other] as the default value.
77+
# "{{current}}" and "{{total}}" will be replaced by a number representing the
78+
# index of the currently active find result, respectively a number representing
79+
# the total number of matches in the document.
80+
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
81+
# [zero|one|two|few|many|other], with [other] as the default value.
82+
# "{{limit}}" will be replaced by a numerical value.
83+
84+
# Error panel labels
85+
error_more_info=Mair Information
86+
error_close=Sneck
87+
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
88+
# replaced by the PDF.JS version and build ID.
89+
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
90+
# english string describing the error.
91+
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
92+
# trace.
93+
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
94+
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
95+
96+
# Predefined zoom values
97+
# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
98+
# numerical scale value.
99+
page_scale_percent={{scale}}%
100+
101+
# Loading indicator messages
102+
103+
# Loading indicator messages
104+
105+
# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
106+
# replaced by the modification date, and time, of the annotation.
107+
annotation_date_string={{date}}, {{time}}
108+
109+
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
110+
# "{{type}}" will be replaced with an annotation type from a list defined in
111+
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
112+
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
113+
114+
# LOCALIZATION NOTE (unsupported_feature_signatures): Should contain the same
115+
# exact string as in the `chrome.properties` file.

l10n/szl/viewer.properties

+6-1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ findbar_label=Znojdź
154154
additional_layers=Nadbytnie warstwy
155155
# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
156156
page_canvas=Strōna {{page}}
157+
# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
157158
# Thumbnails panel item (tooltip and alt text for images)
158159
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
159160
# number.
@@ -169,7 +170,7 @@ find_previous.title=Znojdź piyrwyjsze pokozanie sie tyj frazy
169170
find_previous_label=Piyrwyjszo
170171
find_next.title=Znojdź nastympne pokozanie sie tyj frazy
171172
find_next_label=Dalij
172-
find_highlight=Ôbznocz wszysko
173+
find_highlight=Zaznacz wszysko
173174
find_match_case_label=Poznowej srogość liter
174175
find_entire_word_label=Cołke słowa
175176
find_reached_top=Doszło do samego wiyrchu strōny, dalij ôd spodku
@@ -227,6 +228,8 @@ page_scale_percent={{scale}}%
227228

228229
# Loading indicator messages
229230
loading_error_indicator=Feler
231+
232+
# Loading indicator messages
230233
loading_error=Przi ladowaniu PDFa pokozoł sie feler.
231234
invalid_file_error=Zły abo felerny zbiōr PDF.
232235
missing_file_error=Chybio zbioru PDF.
@@ -249,3 +252,5 @@ password_cancel=Pociep
249252
printing_not_supported=Pozōr: Ta przeglōndarka niy cołkiym ôbsuguje durk.
250253
printing_not_ready=Pozōr: Tyn PDF niy ma za tela zaladowany do durku.
251254
web_fonts_disabled=Necowe fōnty sōm zastawiōne: niy idzie użyć wkludzōnych fōntōw PDF.
255+
# LOCALIZATION NOTE (unsupported_feature_signatures): Should contain the same
256+
# exact string as in the `chrome.properties` file.

l10n/tg/viewer.properties

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ zoom_in_label=Калон кардан
2929
zoom.title=Танзими андоза
3030
open_file.title=Кушодани файл
3131
open_file_label=Кушодан
32+
print.title=Чоп кардан
33+
print_label=Чоп кардан
3234
download.title=Боргирӣ кардан
3335
download_label=Боргирӣ кардан
3436
bookmark.title=Намуди ҷорӣ (нусха бардоштан ё кушодан дар равзанаи нав)
@@ -66,8 +68,10 @@ document_properties_page_size_dimension_name_string={{width}} × {{height}} {{un
6668
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
6769
# the document; usually called "Fast Web View" in English locales of Adobe software.
6870

71+
print_progress_message=Омодасозии ҳуҷҷат барои чоп…
6972
# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
7073
# a numerical per cent value.
74+
print_progress_percent={{progress}}%
7175
print_progress_close=Бекор кардан
7276

7377
# Tooltips and alt text for side panel toolbar buttons

l10n/th/viewer.properties

+3
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,6 @@ password_cancel=ยกเลิก
256256
printing_not_supported=คำเตือน: เบราว์เซอร์นี้ไม่ได้สนับสนุนการพิมพ์อย่างเต็มที่
257257
printing_not_ready=คำเตือน: PDF ไม่ได้รับการโหลดอย่างเต็มที่สำหรับการพิมพ์
258258
web_fonts_disabled=แบบอักษรเว็บถูกปิดใช้งาน: ไม่สามารถใช้แบบอักษร PDF ฝังตัว
259+
# LOCALIZATION NOTE (unsupported_feature_signatures): Should contain the same
260+
# exact string as in the `chrome.properties` file.
261+
unsupported_feature_signatures=เอกสาร PDF นี้มีลายเซ็นดิจิทัล ไม่รองรับการตรวจสอบลายเซ็น

0 commit comments

Comments
 (0)