diff --git a/plugins/migration/build.gradle.kts b/plugins/migration/build.gradle.kts
index eb840a7..4ff7920 100644
--- a/plugins/migration/build.gradle.kts
+++ b/plugins/migration/build.gradle.kts
@@ -3,7 +3,7 @@ plugins {
}
-project.version = "0.0.2"
+project.version = "0.0.3"
dependencies {
diff --git a/plugins/migration/src/main/kotlin/app/termora/plugins/migration/DoormanDialog.kt b/plugins/migration/src/main/kotlin/app/termora/plugins/migration/DoormanDialog.kt
index 2705230..f257be9 100644
--- a/plugins/migration/src/main/kotlin/app/termora/plugins/migration/DoormanDialog.kt
+++ b/plugins/migration/src/main/kotlin/app/termora/plugins/migration/DoormanDialog.kt
@@ -46,7 +46,7 @@ class DoormanDialog(owner: Window?) : DialogWrapper(owner) {
controlsVisible = false
if (SystemInfo.isWindows || SystemInfo.isLinux) {
- title = I18n.getString("termora.doorman.safe")
+ title = MigrationI18n.getString("termora.doorman.safe")
rootPane.putClientProperty(FlatClientProperties.TITLE_BAR_SHOW_TITLE, false)
}
@@ -65,8 +65,8 @@ class DoormanDialog(owner: Window?) : DialogWrapper(owner) {
}
override fun createCenterPanel(): JComponent {
- label.text = I18n.getString("termora.doorman.safe")
- tip.text = I18n.getString("termora.doorman.unlock-data")
+ label.text = MigrationI18n.getString("termora.doorman.safe")
+ tip.text = MigrationI18n.getString("termora.doorman.unlock-data")
icon.icon = FlatSVGIcon(Icons.role.name, 80, 80)
safeBtn.icon = Icons.unlocked
@@ -95,24 +95,24 @@ class DoormanDialog(owner: Window?) : DialogWrapper(owner) {
.add(passwordTextField).xy(2, rows)
.add(safeBtn).xy(4, rows).apply { rows += step }
.add(tip).xyw(2, rows, 4, "center, fill").apply { rows += step }
- .add(JXHyperlink(object : AnAction(I18n.getString("termora.doorman.forget-password")) {
+ .add(JXHyperlink(object : AnAction(MigrationI18n.getString("termora.doorman.forget-password")) {
override fun actionPerformed(evt: AnActionEvent) {
val option = OptionPane.showConfirmDialog(
- this@DoormanDialog, I18n.getString("termora.doorman.forget-password-message"),
+ this@DoormanDialog, MigrationI18n.getString("termora.doorman.forget-password-message"),
options = arrayOf(
- I18n.getString("termora.doorman.have-a-mnemonic"),
- I18n.getString("termora.doorman.dont-have-a-mnemonic"),
+ MigrationI18n.getString("termora.doorman.have-a-mnemonic"),
+ MigrationI18n.getString("termora.doorman.dont-have-a-mnemonic"),
),
optionType = JOptionPane.YES_NO_OPTION,
messageType = JOptionPane.INFORMATION_MESSAGE,
- initialValue = I18n.getString("termora.doorman.have-a-mnemonic")
+ initialValue = MigrationI18n.getString("termora.doorman.have-a-mnemonic")
)
if (option == JOptionPane.YES_OPTION) {
showMnemonicsDialog()
} else if (option == JOptionPane.NO_OPTION) {
OptionPane.showMessageDialog(
this@DoormanDialog,
- I18n.getString("termora.doorman.delete-data"),
+ MigrationI18n.getString("termora.doorman.delete-data"),
messageType = JOptionPane.WARNING_MESSAGE
)
Application.browse(MigrationApplicationRunnerExtension.instance.getDatabaseFile().toURI())
@@ -141,7 +141,7 @@ class DoormanDialog(owner: Window?) : DialogWrapper(owner) {
log.error(e.message, e)
}
OptionPane.showMessageDialog(
- this, I18n.getString("termora.doorman.mnemonic-data-corrupted"),
+ this, MigrationI18n.getString("termora.doorman.mnemonic-data-corrupted"),
messageType = JOptionPane.ERROR_MESSAGE
)
passwordTextField.outline = "error"
@@ -166,7 +166,7 @@ class DoormanDialog(owner: Window?) : DialogWrapper(owner) {
} catch (e: Exception) {
if (e is PasswordWrongException) {
OptionPane.showMessageDialog(
- this, I18n.getString("termora.doorman.password-wrong"),
+ this, MigrationI18n.getString("termora.doorman.password-wrong"),
messageType = JOptionPane.ERROR_MESSAGE
)
}
@@ -197,7 +197,7 @@ class DoormanDialog(owner: Window?) : DialogWrapper(owner) {
isModal = true
isResizable = true
controlsVisible = false
- title = I18n.getString("termora.doorman.mnemonic.title")
+ title = MigrationI18n.getString("termora.doorman.mnemonic.title")
init()
pack()
size = Dimension(max(size.width, UIManager.getInt("Dialog.width") - 250), size.height)
@@ -251,7 +251,7 @@ class DoormanDialog(owner: Window?) : DialogWrapper(owner) {
} catch (e: Exception) {
OptionPane.showMessageDialog(
this,
- I18n.getString("termora.doorman.mnemonic.incorrect"),
+ MigrationI18n.getString("termora.doorman.mnemonic.incorrect"),
messageType = JOptionPane.ERROR_MESSAGE
)
return
diff --git a/plugins/migration/src/main/resources/i18n/messages.properties b/plugins/migration/src/main/resources/i18n/messages.properties
index 2d0726e..01da6b2 100644
--- a/plugins/migration/src/main/resources/i18n/messages.properties
+++ b/plugins/migration/src/main/resources/i18n/messages.properties
@@ -7,3 +7,18 @@ termora.plugins.migration.message= \
\
termora.plugins.migration.migrate=Migrate
+
+# Doorman
+termora.doorman.safe=Data is encrypted
+termora.doorman.unlock-data=Enter password to unlock data
+termora.doorman.password-wrong=Wrong password
+termora.doorman.forget-password=Forgot password?
+termora.doorman.delete-data=Delete the data catalog and restart, This will lose all data
+termora.doorman.forget-password-message=Unlock data with a mnemonic. Without it, data cannot be accessed
+termora.doorman.have-a-mnemonic=I have a mnemonic
+termora.doorman.dont-have-a-mnemonic=I don't have a mnemonic
+termora.doorman.mnemonic-data-corrupted=Unable to decrypt data with the mnemonic, the data maybe corrupted
+
+termora.doorman.mnemonic.title=Enter 12 mnemonic words
+termora.doorman.mnemonic.incorrect=Incorrect mnemonic
+
diff --git a/plugins/migration/src/main/resources/i18n/messages_ru_RU.properties b/plugins/migration/src/main/resources/i18n/messages_ru_RU.properties
new file mode 100644
index 0000000..4e8f719
--- /dev/null
+++ b/plugins/migration/src/main/resources/i18n/messages_ru_RU.properties
@@ -0,0 +1,18 @@
+
+# Doorman
+termora.doorman.safe=Данные защифрованы
+termora.doorman.unlock-data=Введите пароль для разблокировки данных
+termora.doorman.verify-password=Введите пароль для проверки
+termora.doorman.password-wrong=Неверный пароль
+termora.doorman.password-correct=Пароль верный
+termora.doorman.unsafe=Данные не зашифрованы
+termora.doorman.lock-data=Спрашивать пароль при запуске
+termora.doorman.forget-password=Забыли пароль?
+termora.doorman.delete-data=Удалить данные и перезапустить, это приведет к потере всех данных
+termora.doorman.forget-password-message=Разблокировать данные с помощью мнемоники. Без него доступ к данным невозможен.
+termora.doorman.have-a-mnemonic=У меня есть мнемоники
+termora.doorman.dont-have-a-mnemonic=У меня нет мнемоники
+termora.doorman.mnemonic-data-corrupted=Невозможно расшифровать данные с помощью мнемоники, возможно, данные повреждены.
+
+termora.doorman.mnemonic.title=Введите 12 слов мнемоники
+termora.doorman.mnemonic.incorrect=Неверные мнемоники
diff --git a/plugins/migration/src/main/resources/i18n/messages_zh_CN.properties b/plugins/migration/src/main/resources/i18n/messages_zh_CN.properties
index 78633e3..f1169ad 100644
--- a/plugins/migration/src/main/resources/i18n/messages_zh_CN.properties
+++ b/plugins/migration/src/main/resources/i18n/messages_zh_CN.properties
@@ -7,3 +7,17 @@ termora.plugins.migration.message= \
\
termora.plugins.migration.migrate=迁移
+
+# Doorman
+termora.doorman.safe=数据已加密
+termora.doorman.unlock-data=输入密码解锁数据
+termora.doorman.password-wrong=密码错误
+termora.doorman.forget-password=忘记密码?
+termora.doorman.delete-data=删除数据目录后重新启动程序,这样会丢失所有数据
+termora.doorman.forget-password-message=通过助记词解锁数据,没有助记词则无法解锁
+termora.doorman.have-a-mnemonic=我有助记词
+termora.doorman.dont-have-a-mnemonic=我没有助记词
+termora.doorman.mnemonic-data-corrupted=无法从助记词解密数据,数据可能已经损坏
+
+termora.doorman.mnemonic.title=输入 12 个助记词
+termora.doorman.mnemonic.incorrect=助记词错误
diff --git a/plugins/migration/src/main/resources/i18n/messages_zh_TW.properties b/plugins/migration/src/main/resources/i18n/messages_zh_TW.properties
index d8d8076..6cd6e27 100644
--- a/plugins/migration/src/main/resources/i18n/messages_zh_TW.properties
+++ b/plugins/migration/src/main/resources/i18n/messages_zh_TW.properties
@@ -7,3 +7,18 @@ termora.plugins.migration.message= \
\
termora.plugins.migration.migrate=遷移
+
+
+# Doorman
+termora.doorman.safe=資料已加密
+termora.doorman.unlock-data=輸入密碼解鎖資料
+termora.doorman.password-wrong=密碼錯誤
+termora.doorman.forget-password=忘記密碼?
+termora.doorman.delete-data=刪除資料目錄後重新啟動程序,這樣會遺失所有數據
+termora.doorman.forget-password-message=透過助記詞解鎖數據,沒有助記詞則無法解鎖
+termora.doorman.have-a-mnemonic=我有助記詞
+termora.doorman.dont-have-a-mnemonic=我沒有助記詞
+termora.doorman.mnemonic-data-corrupted=無法從助記詞解密數據,資料可能已損壞
+termora.doorman.mnemonic.title=輸入 12 個助記詞
+termora.doorman.mnemonic.incorrect=助記詞錯誤
+
diff --git a/src/main/kotlin/app/termora/I18n.kt b/src/main/kotlin/app/termora/I18n.kt
index 9413943..d11c548 100644
--- a/src/main/kotlin/app/termora/I18n.kt
+++ b/src/main/kotlin/app/termora/I18n.kt
@@ -20,6 +20,7 @@ object I18n : AbstractI18n() {
"en_US" to "English",
"zh_CN" to "简体中文",
"zh_TW" to "繁體中文",
+ "ru_RU" to "Русский",
)
fun containsLanguage(locale: Locale): String? {
diff --git a/src/main/resources/i18n/messages.properties b/src/main/resources/i18n/messages.properties
index 89ec2b7..6a2618a 100644
--- a/src/main/resources/i18n/messages.properties
+++ b/src/main/resources/i18n/messages.properties
@@ -23,21 +23,6 @@ termora.update.title=New version
termora.update.update=Update
termora.update.ignore=Remind me next time
-# Doorman
-termora.doorman.safe=Data is encrypted
-termora.doorman.unlock-data=Enter password to unlock data
-termora.doorman.password-wrong=Wrong password
-termora.doorman.forget-password=Forgot password?
-termora.doorman.delete-data=Delete the data catalog and restart, This will lose all data
-termora.doorman.forget-password-message=Unlock data with a mnemonic. Without it, data cannot be accessed
-termora.doorman.have-a-mnemonic=I have a mnemonic
-termora.doorman.dont-have-a-mnemonic=I don't have a mnemonic
-termora.doorman.mnemonic-data-corrupted=Unable to decrypt data with the mnemonic, the data maybe corrupted
-
-termora.doorman.mnemonic.title=Enter 12 mnemonic words
-termora.doorman.mnemonic.incorrect=Incorrect mnemonic
-
-
# Hosts
termora.host.modified-server-key.title=HOST [{0}] IDENTIFICATION HAS CHANGED
termora.host.modified-server-key.thumbprint=Host key thumbprint
diff --git a/src/main/resources/i18n/messages_ru_RU.properties b/src/main/resources/i18n/messages_ru_RU.properties
index b82040e..c0816f2 100644
--- a/src/main/resources/i18n/messages_ru_RU.properties
+++ b/src/main/resources/i18n/messages_ru_RU.properties
@@ -19,24 +19,6 @@ termora.update.title=Новая версия
termora.update.update=Обновить
termora.update.ignore=Напомнить в следующий раз
-# Doorman
-termora.doorman.safe=Данные защифрованы
-termora.doorman.unlock-data=Введите пароль для разблокировки данных
-termora.doorman.verify-password=Введите пароль для проверки
-termora.doorman.password-wrong=Неверный пароль
-termora.doorman.password-correct=Пароль верный
-termora.doorman.unsafe=Данные не зашифрованы
-termora.doorman.lock-data=Спрашивать пароль при запуске
-termora.doorman.forget-password=Забыли пароль?
-termora.doorman.delete-data=Удалить данные и перезапустить, это приведет к потере всех данных
-termora.doorman.forget-password-message=Разблокировать данные с помощью мнемоники. Без него доступ к данным невозможен.
-termora.doorman.have-a-mnemonic=У меня есть мнемоники
-termora.doorman.dont-have-a-mnemonic=У меня нет мнемоники
-termora.doorman.mnemonic-data-corrupted=Невозможно расшифровать данные с помощью мнемоники, возможно, данные повреждены.
-
-termora.doorman.mnemonic.title=Введите 12 слов мнемоники
-termora.doorman.mnemonic.incorrect=Неверные мнемоники
-
# Hosts
termora.host.modified-server-key.title=HOST [{0}] ИДЕНТИФИКАЦИЯ ИЗМЕНИЛАСЬ
diff --git a/src/main/resources/i18n/messages_zh_CN.properties b/src/main/resources/i18n/messages_zh_CN.properties
index c3d1c11..9934503 100644
--- a/src/main/resources/i18n/messages_zh_CN.properties
+++ b/src/main/resources/i18n/messages_zh_CN.properties
@@ -24,20 +24,6 @@ termora.update.title=新版本
termora.update.update=更新
termora.update.ignore=下次提醒我
-# Doorman
-termora.doorman.safe=数据已加密
-termora.doorman.unlock-data=输入密码解锁数据
-termora.doorman.password-wrong=密码错误
-termora.doorman.forget-password=忘记密码?
-termora.doorman.delete-data=删除数据目录后重新启动程序,这样会丢失所有数据
-termora.doorman.forget-password-message=通过助记词解锁数据,没有助记词则无法解锁
-termora.doorman.have-a-mnemonic=我有助记词
-termora.doorman.dont-have-a-mnemonic=我没有助记词
-termora.doorman.mnemonic-data-corrupted=无法从助记词解密数据,数据可能已经损坏
-
-termora.doorman.mnemonic.title=输入 12 个助记词
-termora.doorman.mnemonic.incorrect=助记词错误
-
# Hosts
termora.host.modified-server-key.title=主机 [{0}] 身份已发生变化
diff --git a/src/main/resources/i18n/messages_zh_TW.properties b/src/main/resources/i18n/messages_zh_TW.properties
index 0afc1ef..f79853a 100644
--- a/src/main/resources/i18n/messages_zh_TW.properties
+++ b/src/main/resources/i18n/messages_zh_TW.properties
@@ -23,21 +23,6 @@ termora.update.ignore=下次提醒我
-# Doorman
-termora.doorman.safe=資料已加密
-termora.doorman.unlock-data=輸入密碼解鎖資料
-termora.doorman.password-wrong=密碼錯誤
-termora.doorman.forget-password=忘記密碼?
-termora.doorman.delete-data=刪除資料目錄後重新啟動程序,這樣會遺失所有數據
-termora.doorman.forget-password-message=透過助記詞解鎖數據,沒有助記詞則無法解鎖
-termora.doorman.have-a-mnemonic=我有助記詞
-termora.doorman.dont-have-a-mnemonic=我沒有助記詞
-termora.doorman.mnemonic-data-corrupted=無法從助記詞解密數據,資料可能已損壞
-termora.doorman.mnemonic.title=輸入 12 個助記詞
-termora.doorman.mnemonic.incorrect=助記詞錯誤
-
-
-
# Hosts
termora.host.modified-server-key.title=主機 [{0}] 身分已變更
termora.host.modified-server-key.thumbprint=主機密鑰指紋