From d5d29c1c929c0e199b52c01b26cb69cfe2e30199 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 20 Jun 2017 11:23:34 +0100 Subject: [PATCH 1/7] Give _t to PasswordNagBar, add CSS for UserSettings password warning Codep https://github.com/matrix-org/matrix-react-sdk/pull/1123 --- src/components/views/globals/PasswordNagBar.js | 10 +++++----- .../matrix-react-sdk/structures/_UserSettings.scss | 13 +++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/views/globals/PasswordNagBar.js b/src/components/views/globals/PasswordNagBar.js index 37d011a60..56eb7bd76 100644 --- a/src/components/views/globals/PasswordNagBar.js +++ b/src/components/views/globals/PasswordNagBar.js @@ -20,6 +20,7 @@ import React from 'react'; import sdk from 'matrix-react-sdk'; import Modal from 'matrix-react-sdk/lib/Modal'; import dis from 'matrix-react-sdk/lib/dispatcher'; +import { _t } from 'matrix-react-sdk/lib/languageHandler'; export default React.createClass({ onUpdateClicked: function() { @@ -33,12 +34,11 @@ export default React.createClass({ dis.dispatch({ action: 'password_changed', }); - } + }, }); }, render: function() { - const AccessibleButton = sdk.getComponent('elements.AccessibleButton'); const toolbarClasses = "mx_MatrixToolbar mx_MatrixToolbar_clickable"; return (
@@ -49,12 +49,12 @@ export default React.createClass({ alt="Warning" />
- To return to your account in future you need to set a password + { _t("To return to your account in future you need to set a password") }
); - } + }, }); diff --git a/src/skins/vector/css/matrix-react-sdk/structures/_UserSettings.scss b/src/skins/vector/css/matrix-react-sdk/structures/_UserSettings.scss index 9809a81ab..7fa8ceb8c 100644 --- a/src/skins/vector/css/matrix-react-sdk/structures/_UserSettings.scss +++ b/src/skins/vector/css/matrix-react-sdk/structures/_UserSettings.scss @@ -102,6 +102,19 @@ limitations under the License. padding-right: 1em; } +.mx_UserSettings_passwordWarning { + padding: 6px; + background-color: #76cfa6; + border-radius: 3px; + color: #fff; + margin-bottom: 5px; +} + +.mx_UserSettings_passwordWarning_icon { + vertical-align: -6px; + margin-right: 3px; +} + .mx_UserSettings_importExportButtons { padding-top: 10px; padding-left: 40px; From 6bae293bdf77ca0456ae4f9274af4b08e02869dc Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 20 Jun 2017 10:19:34 +0100 Subject: [PATCH 2/7] Merge pull request #4361 from RiotTranslateBot/weblate-riot-web-riot-web Update from Weblate. --- src/i18n/strings/de_DE.json | 6 ++-- src/i18n/strings/ru.json | 70 ++++++++++++++++++------------------- src/i18n/strings/uk.json | 4 +-- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/i18n/strings/de_DE.json b/src/i18n/strings/de_DE.json index 19d43523e..e6ae460ec 100644 --- a/src/i18n/strings/de_DE.json +++ b/src/i18n/strings/de_DE.json @@ -86,7 +86,7 @@ "Cancel Sending": "Senden abbrechen", "Close": "Schließen", "Delete the room alias %(alias)s and remove %(name)s from the directory?": "Soll der Raum-Alias %(alias)s gelöscht und der %(name)s aus dem Verzeichnis entfernt werden?", - "Download this file": "Diese Datei herunterladen", + "Download this file": "Datei herunterladen", "Failed to add tag %(tagName)s to room": "Das Hinzufügen des Tags %(tagName)s für den Raum ist fehlgeschlagen", "Failed to forget room %(errCode)s": "Das Entfernen des Raums ist fehlgeschlagen %(errCode)s", "Failed to remove tag %(tagName)s from room": "Das Entfernen des Tags %(tagName)s für den Raum ist fehlgeschlagen", @@ -95,14 +95,14 @@ "Mute": "Stummschalten", "Permalink": "Permanenter Link", "Quote": "Zitat", - "Redact": "Redaktionell entfernen", + "Redact": "Löschen", "Remove %(name)s from the directory?": "Soll der Raum %(name)s aus dem Verzeichnis entfernt werden?", "remove %(name)s from the directory.": "entferne %(name)s aus dem Verzeichnis.", "Resend": "Erneut senden", "Source URL": "Quell-URL", "Unable to look up room ID from server": "Es ist nicht möglich, die Raum-ID auf dem Server nachzuschlagen", "Unhide Preview": "Vorschau wieder anzeigen", - "Uploaded on %(date)s by %(user)s": "Hochgeladen am %(date)s durch %(user)s", + "Uploaded on %(date)s by %(user)s": "Hochgeladen am %(date)s von %(user)s", "View Decrypted Source": "Entschlüsselten Quellcode ansehen", "View Source": "Quellcode ansehen", "You cannot delete this image. (%(code)s)": "Das Bild kann nicht gelöscht werden. (%(code)s)", diff --git a/src/i18n/strings/ru.json b/src/i18n/strings/ru.json index 1c3bb0163..aac71dfd9 100644 --- a/src/i18n/strings/ru.json +++ b/src/i18n/strings/ru.json @@ -5,8 +5,8 @@ "and remove": "и удалить", "Can't update user notification settings": "Не возможно обновить пользовательские настройки оповещения", "Create new room": "Создать новую комнату", - "Couldn't find a matching Matrix room": "Не возможно найти подходящую Матриксу комнату", - "Custom Server Options": "Расширенные настройки сервера", + "Couldn't find a matching Matrix room": "Не возможно найти подходящую комнату Matrix", + "Custom Server Options": "Собственные настройки сервера", "delete the alias.": "удалить псевдоним.", "Delete the room alias": "Удалить привязку комнаты", "Direct Chat": "Приватный чат", @@ -30,16 +30,16 @@ "Failed to get public room list": "Не удалось получить список открытых комнат", "Failed to join the room": "Не удалось войти в комнату", "Failed to remove tag ": "Не удалось удалить тег ", - "Failed to set Direct Message status of room": "Не удалось задать статус комнаты Персональное Сообщение", + "Failed to set Direct Message status of room": "Не удалось установить статус прямого сообщения в комнате", "Favourite": "Избранное", - "Fetching third party location failed": "Не удалось получить местоположение", + "Fetching third party location failed": "Не удалось получить другую локацию", "Files": "Файлы", - "Filter room names": "Фильтр по назв. комнаты", + "Filter room names": "Фильтр по названию комнат", "Forget": "Удалить", "from the directory": "из каталога", " from room": " из комнаты", "Guests can join": "Гость может присоединиться", - "Guest users can't invite users. Please register to invite.": "Гость не может приглашать пользователей. Зарегистрируйтесь для приглашений.", + "Guest users can't invite users. Please register to invite.": "Гость не может приглашать пользователей. Пожалуйста зарегистрируйтесь.", "Invite to this room": "Пригласить", "Keywords": "Ключевые слова", "Leave": "Покинуть", @@ -51,12 +51,12 @@ "Notifications": "Уведомления", "Notifications on the following keywords follow rules which can’t be displayed here:": "Уведомления по следующим ключевым словам соответствуют правилам, которые нельзя отобразить здесь:", "Notify for all other messages/rooms": "Уведомить обо всех других сообщениях/комнатах", - "Notify me for anything else": "Уведомить меня обо всем кроме", + "Notify me for anything else": "Уведомить меня о чем либо еще", "Off": "Выключить", "On": "Включить", "Operation failed": "Действие не удалось", "Please Register": "Пожалуйста, зарегистрируйтесь", - "powered by Matrix": "управляемый с Matrix", + "powered by Matrix": "Основано на Matrix", "Reject": "Отклонить", "Remove": "Удалить", "remove": "удалить", @@ -86,14 +86,14 @@ "Close": "Закрыть", "Download this file": "Скачать этот файл", "Drop here %(toAction)s": "Вставить сюда: %(toAction)s", - "Delete the room alias %(alias)s and remove %(name)s from the directory?": "Удалить псевдоним комнаты %(alias)s и очистить %(name)s из каталога?", + "Delete the room alias %(alias)s and remove %(name)s from the directory?": "Удалить псевдоним комнаты %(alias)s и удалить %(name)s из каталога?", "Failed to add tag %(tagName)s to room": "Не удалось добавить тег %(tagName)s в комнату", "Failed to forget room %(errCode)s": "Не удалось удалить комнату %(errCode)s", "Failed to remove tag %(tagName)s from room": "Не удалось убрать пометку %(tagName)s из комнаты", - "Failed to set direct chat tag": "Не удалось пометить прямую беседу", + "Failed to set direct chat tag": "Не удалось установить тег прямого чата", "Unhide Preview": "Показать анонс", "Uploaded on %(date)s by %(user)s": "Загружено %(date)s %(user)s", - "View Decrypted Source": "Просмотр зашифрованного источника", + "View Decrypted Source": "Просмотр расшифрованного источника", "View Source": "Просмотр источника", "You cannot delete this image. (%(code)s)": "Вы не можете удалить это изображение. (%(code)s)", "You cannot delete this message. (%(code)s)": "Вы не можете удалить это сообщение. (%(code)s)", @@ -113,7 +113,7 @@ "Redact": "Удалить", "Remove %(name)s from the directory?": "Удалить %(name)s из каталога?", "remove %(name)s from the directory.": "удалить %(name)s из каталога.", - "Resend": "Переслать снова", + "Resend": "Отправить снова", "Source URL": "Исходный URL", "Welcome page": "Домашняя страница", "Advanced notification settings": "Настройки уведомлений", @@ -131,31 +131,31 @@ "Cancel": "Отмена", "Changelog": "История изменений", "Collapse panel": "Свернуть панель", - "Collecting app version information": "Сбор информации о версиях программы", + "Collecting app version information": "Сбор информации о версии приложения", "Collecting logs": "Сбор протоколов", "%(appName)s via %(browserName)s on %(osName)s": "%(appName)s с %(browserName)s на %(osName)s", "Safari and Opera work too.": "Safari и Opera работают тоже.", "Describe your problem here.": "Опиши здесь свою проблему.", - "Expand panel": "Открыть панель", + "Expand panel": "Развернуть панель", "Failed to send report: ": "Не удалось отослать отчет: ", - "Forward Message": "Переслать сообщение дальше", + "Forward Message": "Переслать сообщение", "Hide panel": "Скрыть панель", - "I understand the risks and wish to continue": "Я понимаю риск и хочу продолжать", - "In order to diagnose problems, logs from this client will be sent with this bug report. If you would prefer to only send the text above, please untick:": "Что бы выявить проблему, будет отослан журнал этого клиента с сообщением о ошибке. Если Вы только верхний текст отослать хотите, отключите следующее:", - "Loading bug report module": "Загрузи Модуль ошибок", + "I understand the risks and wish to continue": "Я понимаю риск и хочу продолжить", + "In order to diagnose problems, logs from this client will be sent with this bug report. If you would prefer to only send the text above, please untick:": "Чтобы диагностировать проблемы, логи этого клиента будут отправляться с этим сообщением об ошибке. Если вы предпочитаете отправить только текст выше, пожалуйста, отключите:", + "Loading bug report module": "Загрузка Модуля отчета об ошибках", "Messages containing keywords": "Сообщения, которые содержат определенные ключевые слова", "Please describe the bug. What did you do? What did you expect to happen? What actually happened?": "Пожалуйста опишите (на Английском) ошибку. Что Вы делали? Что Вы ожидали получить? Что произошло?", - "Please describe the bug and/or send logs.": "Пожалуйста опишите ошибку и/или перешлите протоколы.", - "Please install Chrome or Firefox for the best experience.": "Пожалуйста установите Chrome или Firefox для лучшего результата.", - "Report a bug": "Отчет о ошибке", + "Please describe the bug and/or send logs.": "Пожалуйста опишите ошибку и/или перешлите логи.", + "Please install Chrome or Firefox for the best experience.": "Пожалуйста установите Chrome или Firefox для корректной работы чата.", + "Report a bug": "Отчет об ошибке", "Riot Desktop on %(platformName)s": "Riot Desktop на %(platformName)s", - "Riot is not supported on mobile web. Install the app?": "Riot не будет на мобильном Интернете работать. Программу инсталлировать?", - "Riot uses many advanced browser features, some of which are not available or experimental in your current browser.": "Riot использует некоторые расширенные функции интернет-проводника - некоторые из них отсутствуют или экспериментальные в этом проводнике.", + "Riot is not supported on mobile web. Install the app?": "Riot может некорректно работать в мобильном браузере. Установить мобильное приложение?", + "Riot uses many advanced browser features, some of which are not available or experimental in your current browser.": "Riot использует много расширенных функции интернет-браузера - некоторые из них отсутствуют или экспериментальные в этом браузере.", "Search": "Поиск", "Search…": "Поиск.…", "Send": "Отослать", - "Send logs": "Отослать протокол", - "Sorry, your browser is not able to run Riot.": "Извините, ваш браузер не может Riot запустить.", + "Send logs": "Отослать логи", + "Sorry, your browser is not able to run Riot.": "Извините, ваш браузер не может запустить Riot.", "This Room": "Эта комната", "Unavailable": "Недоступен", "Unknown device": "Неизвестное устройство", @@ -166,28 +166,28 @@ "Waiting for response from server": "Подождите ответа от сервера", "You are Rioting as a guest. Register or sign in to access more rooms and features!": "Вы вошли в Riot как гость. Зарегистрируйтесь или войдите в систему и получите доступ к огромному количеству комнат и функций!", "OK": "ОК", - "You need to be using HTTPS to place a screen-sharing call.": "Вы должны пользоваться HTTPS чтобы пользоваться видео звонком.", + "You need to be using HTTPS to place a screen-sharing call.": "Используйте протокол HTTPS чтобы совершать видео вызов.", "With your current browser, the look and feel of the application may be completely incorrect, and some or all features may not function. If you want to try it anyway you can continue, but you are on your own in terms of any issues you may encounter!": "Если Ваш браузер не корректно отображает информацию и все или некоторые функции отключены, Вы можете и дальше этим браузером пользоваться но ваши проблемы останутся с вами!", "Login": "Войти", - "Welcome to Riot.im": "Добро пожаловать на Riot.im", + "Welcome to Riot.im": "Добро пожаловать в Riot.im", "Decentralised, encrypted chat & collaboration powered by [matrix]": "Децентрализованное, шифрованное общение и сотрудничество на основе [matrix]", "Search the room directory": "Поиск по директории комнат", - "Chat with Riot Bot": "Пообщаться с Riot Bot", + "Chat with Riot Bot": "Пообщаться с ботом Riot", "Get started with some tips from Riot Bot!": "Начните с некоторых советов от Riot бота!", "General discussion about Matrix and Riot": "Общая дискуссия о Matrix и Riot", "Discussion of all things Matrix!": "Дискуссия обо всем Matrix!", - "Riot/Web & Desktop chat": "Riot-Web & Desktop-Чат", + "Riot/Web & Desktop chat": "Riot-Web & Desktop чат", "Matrix technical discussions": "Техническая дискуссия о Matrix", - "Running Matrix services": "Предлагать Matrix-Сервис", + "Running Matrix services": "Запуск сервиса Matrix", "Community-run support for Synapse": "Поддержка Synapse от сообщества", "Admin support for Dendrite": "Админ. помощь для Dendrite", - "Building services on Matrix": "Построить услуги для Matrix", + "Building services on Matrix": "Разработка сервисов на Matrix", "Implementing VoIP services with Matrix": "Внедрение услуги VoIP с Matrix", - "(HTTP status %(httpStatus)s)": "(HTTP-Состояние %(httpStatus)s)", - "Riot/iOS & matrix-ios-sdk chat": "Riot-iOS & \"matrix-ios-sdk\"-Чат", - "Riot/Android & matrix-android-sdk chat": "Riot-Android & matrix-android-sdk-Чат", + "(HTTP status %(httpStatus)s)": "(HTTP-статус %(httpStatus)s)", + "Riot/iOS & matrix-ios-sdk chat": "Riot-iOS & matrix-ios-sdk чат", + "Riot/Android & matrix-android-sdk chat": "Riot-Android & matrix-android-sdk чат", "Announcements about Synapse releases": "Объявления релизов Synapse", - "Support for those using and running matrix-appservice-irc": "Поддержка тех, кто matrix-appservice-irc эксплуатирует и использует", + "Support for those using and running matrix-appservice-irc": "Поддержка тех, кто использует matrix-appservice-irc", "You have successfully set a password!": "Вы успешно установили пароль!", "Continue": "Продолжить", "Please set a password!": "Задайте пароль!", diff --git a/src/i18n/strings/uk.json b/src/i18n/strings/uk.json index a16cd7516..59852cf1b 100644 --- a/src/i18n/strings/uk.json +++ b/src/i18n/strings/uk.json @@ -3,7 +3,7 @@ "All messages": "Усі повідомлення", "All messages (loud)": "Усі повідомлення (гучно)", "All Rooms": "Усі кімнати", - "All notifications are currently disabled for all targets.": "Повідомлення для усіх цілей на даний момент вимкнені.", + "All notifications are currently disabled for all targets.": "Сповіщення для усіх цілей на даний момент вимкнені.", "An error occurred whilst saving your email notification preferences.": "Під час збереження налаштувань сповіщень е-поштою трапилася помилка.", "Cancel": "Скасувати", "Cancel Sending": "Скасувати надсилання", @@ -21,7 +21,7 @@ "%(appName)s via %(browserName)s on %(osName)s": "%(appName)s через %(browserName)s на %(osName)s", "Safari and Opera work too.": "Safari та Opera також підтримуються.", "Add an email address above to configure email notifications": "Додайте вище адресу е-пошти щоб налаштувати сповіщення е-поштою", - "Advanced notification settings": "Додаткові налаштування повідомлень", + "Advanced notification settings": "Додаткові налаштування сповіщень", "Delete the room alias %(alias)s and remove %(name)s from the directory?": "Видалити псевдонім %(alias)s та прибрати з каталогу %(name)s?", "Describe your problem here.": "Опишіть вашу проблему тут.", "Direct Chat": "Прямий чат", From 6ef32f182ad55d991f7d89a13a781e8f4336dad1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 20 Jun 2017 13:13:03 +0100 Subject: [PATCH 3/7] react-sdk 0.9.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9d29f1cb2..a36216256 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "highlight.js": "^9.0.0", "linkifyjs": "^2.1.3", "matrix-js-sdk": "0.7.12", - "matrix-react-sdk": "0.9.5", + "matrix-react-sdk": "0.9.6", "modernizr": "^3.1.0", "pako": "^1.0.5", "q": "^1.4.1", From eda3f20b262598a4a3abec2205f8cf1f39ad94ca Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 20 Jun 2017 13:13:28 +0100 Subject: [PATCH 4/7] v0.11.3 --- electron_app/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron_app/package.json b/electron_app/package.json index 26cfe095f..8144c2090 100644 --- a/electron_app/package.json +++ b/electron_app/package.json @@ -2,7 +2,7 @@ "name": "riot-web", "productName": "Riot", "main": "src/electron-main.js", - "version": "0.11.2", + "version": "0.11.3", "description": "A feature-rich client for Matrix.org", "author": "Vector Creations Ltd.", "dependencies": { From ea8a49f1b7274b496d1954f8a1a637e3c2c2bfbc Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 20 Jun 2017 13:15:35 +0100 Subject: [PATCH 5/7] Prepare changelog for v0.11.3 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f96118150..d0586b97e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Changes in [0.11.3](https://github.com/vector-im/riot-web/releases/tag/v0.11.3) (2017-06-20) +============================================================================================ +[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.11.2...v0.11.3) + + * Update to matrix-react-sdk 0.9.6 to fix infinite spinner bugs + and some parts of the app that had missed translation. + Changes in [0.11.2](https://github.com/vector-im/riot-web/releases/tag/v0.11.2) (2017-06-19) ============================================================================================ [Full Changelog](https://github.com/vector-im/riot-web/compare/v0.11.2-rc.2...v0.11.2) From 639b17c66358d7c446fd870a31f50e659718bdc6 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 20 Jun 2017 13:15:36 +0100 Subject: [PATCH 6/7] v0.11.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a36216256..7c0384487 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "riot-web", "productName": "Riot", "main": "electron_app/src/electron-main.js", - "version": "0.11.2", + "version": "0.11.3", "description": "A feature-rich client for Matrix.org", "author": "Vector Creations Ltd.", "repository": { From 047b255e144304858a6708792c6500ca876fcd4b Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 20 Jun 2017 13:33:38 +0100 Subject: [PATCH 7/7] Add en_EN translations --- src/i18n/strings/en_EN.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 4717e267e..99b961a07 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -198,5 +198,7 @@ "Please set a password!": "Please set a password!", "This will allow you to return to your account after signing out, and sign in on other devices.": "This will allow you to return to your account after signing out, and sign in on other devices.", "You have successfully set a password and an email address!": "You have successfully set a password and an email address!", - "Remember, you can always set an email address in user settings if you change your mind.": "Remember, you can always set an email address in user settings if you change your mind." + "Remember, you can always set an email address in user settings if you change your mind.": "Remember, you can always set an email address in user settings if you change your mind.", + "To return to your account in future you need to set a password": "To return to your account in future you need to set a password", + "Set Password" }