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

Update l10n files #11282

Merged
merged 2 commits into from
Oct 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions external/importL10n/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ function downloadLanguageCodes() {
response.on('end', function() {
content = content.trim(); // Remove any leading/trailing white-space.
var langCodes = normalizeText(content).split('\n');
// Remove all locales that we don't want to download below.
for (var langCode of [DEFAULT_LOCALE, ...EXCLUDE_LANG_CODES]) {
var i = langCodes.indexOf(langCode);
if (i > -1) {
langCodes.splice(i, 1);
}
}
resolve(langCodes);
});
} else {
Expand Down Expand Up @@ -107,8 +114,7 @@ async function downloadL10n(root, callback) {
var langCodes = await downloadLanguageCodes();

for (var langCode of langCodes) {
if (!langCode || langCode === DEFAULT_LOCALE ||
EXCLUDE_LANG_CODES.includes(langCode)) {
if (!langCode) {
continue;
}
await downloadLanguageFiles(root, langCode);
Expand All @@ -119,7 +125,7 @@ async function downloadL10n(root, callback) {
var dirPath = path.join(root, entry), stat = fs.lstatSync(dirPath);

if (stat.isDirectory() && entry !== DEFAULT_LOCALE &&
(!langCodes.includes(entry) || EXCLUDE_LANG_CODES.includes(entry))) {
!langCodes.includes(entry)) {
removeCodes.push(entry);
}
}
Expand Down
2 changes: 1 addition & 1 deletion l10n/cak/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ toggle_sidebar_notification.title=Tik'ex ri ajxikin yuqkajtz'ik (ri wuj eruk'wan
toggle_sidebar_label=Tijal ri ajxikin kajtz'ik
document_outline.title=Tik'ut pe ruch'akulal wuj (kamul-pitz'oj richin nirik'/nich'utinirisäx ronojel ruch'akulal)
document_outline_label=Ruch'akulal wuj
attachments.title=Kek'ut pe taq taqoj
attachments.title=Kek'ut pe ri taq taqoj
attachments_label=Taq taqoj
thumbs.title=Kek'ut pe taq ch'utiq
thumbs_label=Koköj
Expand Down