Fix localizations with quotes in them

main
Isaiah Odhner 2020-12-19 01:58:26 -05:00
parent 0a10ff5f47
commit eb4af4d7f9
6 changed files with 37 additions and 38 deletions

View File

@ -274,7 +274,7 @@ loaded_localizations("ar", {
"Fonts": "‏‏خطوط",
"Tools": "‏‏أدوات",
"All Picture Files": "‏‏كافة ملفات الصور",
"For Help, click Help Topics on the Help Menu.": "‏‏للحصول على التعليمات؛ انقر \\",
"For Help, click Help Topics on the Help Menu.": "‏‏للحصول على التعليمات؛ انقر \"مواضيع التعليمات\" في لائحة \"تعليمات\".",
"Select an area on which to get Help.": "‏‏حدد المنطقة التي تريد تعليمات حولها.",
"%1 in %2": "%1 في %2",
"%1 - %2": "%1 - %2",

View File

@ -287,7 +287,7 @@ loaded_localizations("de", {
"Fonts": "Schriftarten",
"Tools": "Extras",
"All Picture Files": "Alle Bilddateien",
"For Help, click Help Topics on the Help Menu.": "Klicken Sie im Menü \\",
"For Help, click Help Topics on the Help Menu.": "Klicken Sie im Menü \"Hilfe\" auf \"Hilfethemen\".",
"Select an area on which to get Help.": "Wählen Sie einen Bereich aus, über den Sie sich informieren möchten.",
"Creates a new document.": "Erstellt ein neues Dokument.",
"Opens an existing document.": "Öffnet ein vorhandenes Dokument.",

View File

@ -274,7 +274,7 @@ loaded_localizations("el", {
"Fonts": "Γραμματοσειρές",
"Tools": "Εργαλεία",
"All Picture Files": "Όλα τα αρχεία εικόνας",
"For Help, click Help Topics on the Help Menu.": "Για βοήθεια, επιλέξτε τα \\",
"For Help, click Help Topics on the Help Menu.": "Για βοήθεια, επιλέξτε τα \"Θέματα στη Βοήθεια\" από το μενού \"Βοήθεια\".",
"Select an area on which to get Help.": "Επιλέξτε μία περιοχή για την οποία θέλετε Βοήθεια.",
"%1 in %2": "%1 σε %2",
"Creates a new document.": "Δημιουργεί ένα νέο έγγραφο.",

View File

@ -14,8 +14,8 @@ loaded_localizations("he", {
"Units": "יחידות",
"&Inches": "אי&נץ'",
"Inches": "אינץ'",
"C&m": "&ס\\",
"Cm": "ס\\",
"C&m": "&ס\",
"Cm": "ס\",
"&Pixels": "&פיקסלים",
"Pixels": "פיקסלים",
"Colors": "צבעים",

View File

@ -85,7 +85,7 @@ function parse_rc_file(rc_file_text, callback, lang) {
// actually just do any time, find any strings
}{
// let match = line.match(/^[\t ]*(\w+)[\t ]+(L?"([^"]*?("")*)*?")/);
let match = line.match(/(L?"([^"]*?("")*)*?")/);
let match = line.match(/(L?"(.*)")/);
if (match) { // test for one-line string definitions
// id_str = match[1];
// hint = match[1];
@ -97,7 +97,7 @@ function parse_rc_file(rc_file_text, callback, lang) {
if (match) {
id_str = match[1];
} else {
match = line.match(/^[\t ]*(L?"([^"]*?("")*)*?")/);
match = line.match(/^[\t ]*(L?"(.*)")/);
if (id_str && match) { // test for the second line (string) of the two-line string definitions
hint = id_str;
orig_str = match[1];
@ -116,12 +116,11 @@ function parse_rc_file(rc_file_text, callback, lang) {
str = str.replace(/\\r/g, "\r");
str = str.replace(/\\n/g, "\n");
str = str.replace(/\\t/g, "\t");
str = str.replace(/\\"/g, '"');
if (wide) {
str = str.replace(/\\x([0-9a-fA-F]{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16)));
}
str = str.replace(/""/g, '"');
strings.push(str);
// translated_str = callback(str, hint, lang, id_str);

View File

@ -272,7 +272,7 @@ loaded_localizations("ru", {
"Fonts": "Шрифты",
"Tools": "Панель",
"All Picture Files": "Все файлы рисунков",
"For Help, click Help Topics on the Help Menu.": "Для получения справки выберите команду \\",
"For Help, click Help Topics on the Help Menu.": "Для получения справки выберите команду \"Вызов справки\" из меню \"Справка\".",
"Select an area on which to get Help.": "Выберите интересующий объект.",
"%1 in %2": "%1 в %2",
"Creates a new document.": "Создание нового документа.",
@ -331,7 +331,7 @@ loaded_localizations("ru", {
"A required resource was unavailable.": "Запрашиваемый ресурс недоступен.",
"Out of memory.": "Недостаточно памяти.",
"An unknown error has occurred.": "Неопознанная ошибка.",
"on %1": "на \\",
"on %1": "на \"%1\"",
"&One Page": "&Одна страница",
"One Page": "Одна страница",
"&Two Page": "&Две страницы",
@ -350,7 +350,7 @@ loaded_localizations("ru", {
"Invalid filename.": "Неправильное имя файла.",
"Failed to open document.": "Не удалось открыть документ.",
"Failed to save document.": "Не удалось сохранить документ.",
"Save changes to %1?": "Сохранить изменения в файле \\",
"Save changes to %1?": "Сохранить изменения в файле \"%1\"?",
"Failed to create empty document.": "Не удалось создать новый документ.",
"The file is too large to open.": "Не удалось открыть слишком большой файл.",
"Could not start print job.": "Не удалось запустить задание на печать.",
@ -360,8 +360,8 @@ loaded_localizations("ru", {
"Insufficient memory to perform operation.": "Недостаточно памяти для выполнения операции.",
"System registry entries have been removed and the INI file (if any) was deleted.": "Элементы системного реестра были удалены, и INI-файл (если таковой существовал) также был удален.",
"Not all of the system registry entries (or INI file) were removed.": "Не все элементы системного реестра (или INI-файлы) были удалены.",
"This program requires the file %s, which was not found on this system.": "Этой программе нужен файл \\",
"This program is linked to the missing export %s in the file %s. This machine may have an incompatible version of %s.": "Программа связана с отсутствующей функцией %s в файле \\",
"This program requires the file %s, which was not found on this system.": "Этой программе нужен файл \"%s\", который не найден на этом компьютере.",
"This program is linked to the missing export %s in the file %s. This machine may have an incompatible version of %s.": "Программа связана с отсутствующей функцией %s в файле \"%s\". На компьютере может быть установлена несовместимая версия %s.",
"Please enter an integer.": "Введите целое число.",
"Please enter a number.": "Введите числовое значение.",
"Please enter an integer between %1 and %2.": "Введите целое число в диапазоне от %1 до %2.",
@ -376,10 +376,10 @@ loaded_localizations("ru", {
"Cannot find this file.": "Не удается найти файл.",
"Please verify that the correct path and file name are given.": "Проверьте правильность указания пути и имени файла.",
"Destination disk drive is full.": "Диск назначения заполнен.",
"Unable to read from %1, it is opened by someone else.": "Не удается прочесть данные из файла \\",
"Unable to write to %1, it is read-only or opened by someone else.": "Не удается записать данные в файл \\",
"An unexpected error occurred while reading %1.": "Непредусмотренная ошибка при чтении файла \\",
"An unexpected error occurred while writing %1.": "Непредусмотренная ошибка при записи файла \\",
"Unable to read from %1, it is opened by someone else.": "Не удается прочесть данные из файла \"%1\", он открыт другим пользователем.",
"Unable to write to %1, it is read-only or opened by someone else.": "Не удается записать данные в файл \"%1\", он предназначен только для чтения или открыт другим пользователем.",
"An unexpected error occurred while reading %1.": "Непредусмотренная ошибка при чтении файла \"%1\".",
"An unexpected error occurred while writing %1.": "Непредусмотренная ошибка при записи файла \"%1\".",
"Unable to register document.": "Не удается зарегистрировать документ.",
"The document may already be open.": "Возможно, он уже открыт.",
"Update %1 before proceeding?": "Обновить %1 перед продолжением?",
@ -391,27 +391,27 @@ loaded_localizations("ru", {
"Unable to write read-only property.": "Не удалось записать - свойство только для чтения.",
"Unable to load mail system support.": "Не удалось загрузить поддержку почтовой системы.",
"Mail system DLL is invalid.": "Неправильная библиотека DLL почтовой системы.",
"Send Mail failed to send message.": "Команда \\",
"Send Mail failed to send message.": "Команда \"Отправить\" не смогла отправить сообщение.",
"No error occurred.": "Нет ошибки.",
"An unknown error occurred while accessing %1.": "Произошла неизвестная ошибка во время доступа к \\",
"%1 was not found.": "Файл \\",
"%1 contains an invalid path.": "\\",
"%1 could not be opened because there are too many open files.": "Не удается открыть \\",
"Access to %1 was denied.": "Нет доступа к \\",
"An invalid file handle was associated with %1.": "С файлом \\",
"%1 could not be removed because it is the current directory.": "Не удается удалить \\",
"%1 could not be created because the directory is full.": "Невозможно создать \\",
"Seek failed on %1": "Ошибка поиска в \\",
"A hardware I/O error was reported while accessing %1.": "Аппаратная ошибка ввода/вывода при доступе к \\",
"A sharing violation occurred while accessing %1.": "Нарушение совместного использования при доступе к \\",
"A locking violation occurred while accessing %1.": "Нарушение блокировки при доступе к \\",
"Disk full while accessing %1.": "Нет места на диске при доступе к \\",
"An attempt was made to access %1 past its end.": "Попытка доступа к \\",
"An attempt was made to write to the reading %1.": "Попытка выполнить операцию записи при чтении \\",
"An attempt was made to read from the writing %1.": "Попытка выполнить операцию чтения при записи \\",
"%1 has a bad format.": "\\",
"%1 contained an unexpected object.": "\\",
"%1 contains an incorrect schema.": "\\",
"An unknown error occurred while accessing %1.": "Произошла неизвестная ошибка во время доступа к \"%1\".",
"%1 was not found.": "Файл \"%1\" не найден.",
"%1 contains an invalid path.": "\"%1\" содержит неправильный путь.",
"%1 could not be opened because there are too many open files.": "Не удается открыть \"%1\", поскольку уже открыто слишком много файлов.",
"Access to %1 was denied.": "Нет доступа к \"%1\".",
"An invalid file handle was associated with %1.": "С файлом \"%1\" связан неправильный дескриптор файла.",
"%1 could not be removed because it is the current directory.": "Не удается удалить \"%1\", поскольку это текущая папка.",
"%1 could not be created because the directory is full.": "Невозможно создать \"%1\", поскольку данная папка заполнена.",
"Seek failed on %1": "Ошибка поиска в \"%1\"",
"A hardware I/O error was reported while accessing %1.": "Аппаратная ошибка ввода/вывода при доступе к \"%1\".",
"A sharing violation occurred while accessing %1.": "Нарушение совместного использования при доступе к \"%1\".",
"A locking violation occurred while accessing %1.": "Нарушение блокировки при доступе к \"%1\".",
"Disk full while accessing %1.": "Нет места на диске при доступе к \"%1\".",
"An attempt was made to access %1 past its end.": "Попытка доступа к \"%1\" за пределами файла.",
"An attempt was made to write to the reading %1.": "Попытка выполнить операцию записи при чтении \"%1\".",
"An attempt was made to read from the writing %1.": "Попытка выполнить операцию чтения при записи \"%1\".",
"%1 has a bad format.": "\"%1\" имеет неправильный формат.",
"%1 contained an unexpected object.": "\"%1\" содержит неподдерживаемый объект.",
"%1 contains an incorrect schema.": "\"%1\" содержит неправильную схему.",
"Selects a rectangular part of the picture to move, copy, or edit.": "Выделение прямоугольного элемента рисунка.",
"Select": "Выделение",
"Selects a free-form part of the picture to move, copy, or edit.": "Выделение произвольного фрагмента рисунка.",