cleanup tweaks

This commit is contained in:
Eric Bell 2024-12-14 19:40:31 -05:00
parent e1ff43c285
commit c98b526554

View file

@ -1,7 +1,7 @@
# Copyright © 2012-2023 jrnl contributors # Copyright © 2012-2023 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html # License: https://www.gnu.org/licenses/gpl-3.0.html
# format example, delete later # localization format example
# OneLineMessage = T( # OneLineMessage = T(
# en="something", # en="something",
# ja="何か", # ja="何か",
@ -56,12 +56,10 @@ class MsgText(Enum):
続行する場合は古いバージョンの jrnl ではジャーナルを使用できなくなります 続行する場合は古いバージョンの jrnl ではジャーナルを使用できなくなります
""", """,
) )
AllDoneUpgrade = T( AllDoneUpgrade = T(
en="We're all done here and you can start enjoying jrnl 2", en="We're all done here and you can start enjoying jrnl 2",
ja="これですべて完了です、jrnl 2 をお楽しみください", ja="これですべて完了です、jrnl 2 をお楽しみください",
) )
InstallComplete = T( InstallComplete = T(
en=""" en="""
jrnl configuration created at {config_path} jrnl configuration created at {config_path}
@ -139,7 +137,6 @@ class MsgText(Enum):
https://github.com/jrnl-org/jrnl/issues/new/choose https://github.com/jrnl-org/jrnl/issues/new/choose
""", """,
) )
ConfigDirectoryIsFile = T( ConfigDirectoryIsFile = T(
en=""" en="""
Problem with config file! Problem with config file!
@ -159,7 +156,6 @@ class MsgText(Enum):
""", """,
) )
CantParseConfigFile = T( CantParseConfigFile = T(
en=""" en="""
Unable to parse config file at: Unable to parse config file at:
@ -170,7 +166,6 @@ class MsgText(Enum):
{config_path} {config_path}
""", """,
) )
LineWrapTooSmallForDateFormat = T( LineWrapTooSmallForDateFormat = T(
en=""" en="""
The provided linewrap value of {config_linewrap} is too small by The provided linewrap value of {config_linewrap} is too small by
@ -189,7 +184,6 @@ class MsgText(Enum):
指定するかコマンド ラインで --config-override を使用してください 指定するかコマンド ラインで --config-override を使用してください
""", """,
) )
CannotEncryptJournalType = T( CannotEncryptJournalType = T(
en=""" en="""
The journal {journal_name} can't be encrypted because it is a The journal {journal_name} can't be encrypted because it is a
@ -205,7 +199,6 @@ class MsgText(Enum):
ジャーナルにエクスポートしてから新しいジャーナルを暗号化してください ジャーナルにエクスポートしてから新しいジャーナルを暗号化してください
""", """,
) )
ConfigEncryptedForUnencryptableJournalType = T( ConfigEncryptedForUnencryptableJournalType = T(
en=""" en="""
The config for journal "{journal_name}" has 'encrypt' set to true, but this type The config for journal "{journal_name}" has 'encrypt' set to true, but this type
@ -216,17 +209,14 @@ class MsgText(Enum):
このタイプのジャーナルは暗号化できません構成ファイルを修正してください このタイプのジャーナルは暗号化できません構成ファイルを修正してください
""", """,
) )
DecryptionFailedGeneric = T( DecryptionFailedGeneric = T(
en="The decryption of journal data failed.", en="The decryption of journal data failed.",
ja="ジャーナル データの復号化に失敗しました。", ja="ジャーナル データの復号化に失敗しました。",
) )
KeyboardInterruptMsg = T( KeyboardInterruptMsg = T(
en="Aborted by user", en="Aborted by user",
ja="ユーザーによって中止しました", ja="ユーザーによって中止しました",
) )
CantReadTemplate = T( CantReadTemplate = T(
en=""" en="""
Unable to find a template file {template_path}. Unable to find a template file {template_path}.
@ -243,13 +233,11 @@ class MsgText(Enum):
* {actual_template_path} * {actual_template_path}
""", """,
) )
NoNamedJournal = T( NoNamedJournal = T(
en="No '{journal_name}' journal configured\n{journals}", en="No '{journal_name}' journal configured\n{journals}",
ja="'{journal_name}' ジャーナルが設定されていません\n{journals}", ja="'{journal_name}' ジャーナルが設定されていません\n{journals}",
) )
# is that \n{journals} supposed to be there? # is that \n{journals} supposed to be there?
DoesNotExist = T( DoesNotExist = T(
en="{name} does not exist", en="{name} does not exist",
ja="{name} が存在しません", ja="{name} が存在しません",
@ -264,62 +252,50 @@ class MsgText(Enum):
en="Entry added to {journal_name} journal", en="Entry added to {journal_name} journal",
ja="エントリが {journal_name} ジャーナルに追加されました", ja="エントリが {journal_name} ジャーナルに追加されました",
) )
JournalCountAddedSingular = T( JournalCountAddedSingular = T(
en="{num} entry added", en="{num} entry added",
ja="{num} 個のエントリが追加されました", ja="{num} 個のエントリが追加されました",
) )
JournalCountModifiedSingular = T( JournalCountModifiedSingular = T(
en="{num} entry modified", en="{num} entry modified",
ja="{num} 個のエントリが変更されました", ja="{num} 個のエントリが変更されました",
) )
JournalCountDeletedSingular = T( JournalCountDeletedSingular = T(
en="{num} entry deleted", en="{num} entry deleted",
ja="{num} 個のエントリが削除されました", ja="{num} 個のエントリが削除されました",
) )
JournalCountAddedPlural = T( JournalCountAddedPlural = T(
en="{num} entries added", en="{num} entries added",
ja="{num} 個のエントリが追加されました", ja="{num} 個のエントリが追加されました",
) )
JournalCountModifiedPlural = T( JournalCountModifiedPlural = T(
en="{num} entries modified", en="{num} entries modified",
ja="{num} 個のエントリが変更されました", ja="{num} 個のエントリが変更されました",
) )
JournalCountDeletedPlural = T( JournalCountDeletedPlural = T(
en="{num} entries deleted", en="{num} entries deleted",
ja="{num} 個のエントリが削除されました", ja="{num} 個のエントリが削除されました",
) )
JournalCreated = T( JournalCreated = T(
en="Journal '{journal_name}' created at {filename}", en="Journal '{journal_name}' created at {filename}",
ja="ジャーナル '{journal_name}'{filename} に作成されました", ja="ジャーナル '{journal_name}'{filename} に作成されました",
) )
DirectoryCreated = T( DirectoryCreated = T(
en="Directory {directory_name} created", en="Directory {directory_name} created",
ja="ディレクトリ {directory_name} が作成されました", ja="ディレクトリ {directory_name} が作成されました",
) )
JournalEncrypted = T( JournalEncrypted = T(
en="Journal will be encrypted", en="Journal will be encrypted",
ja="ジャーナルは暗号化されます", ja="ジャーナルは暗号化されます",
) )
JournalEncryptedTo = T( JournalEncryptedTo = T(
en="Journal encrypted to {path}", en="Journal encrypted to {path}",
ja="ジャーナルが {path} に暗号化されました", ja="ジャーナルが {path} に暗号化されました",
) )
JournalDecryptedTo = T( JournalDecryptedTo = T(
en="Journal decrypted to {path}", en="Journal decrypted to {path}",
ja="ジャーナルが {path} に復号されました", ja="ジャーナルが {path} に復号されました",
) )
BackupCreated = T( BackupCreated = T(
en="Created a backup at {filename}", en="Created a backup at {filename}",
ja="{filename} にバックアップが作成されました", ja="{filename} にバックアップが作成されました",
@ -341,12 +317,10 @@ class MsgText(Enum):
en="Ctrl+z and then Enter", en="Ctrl+z and then Enter",
ja="Ctrl+z を押してから Enter を押してください", ja="Ctrl+z を押してから Enter を押してください",
) )
HowToQuitLinux = T( HowToQuitLinux = T(
en="Ctrl+d", en="Ctrl+d",
ja="Ctrl+d", ja="Ctrl+d",
) )
EditorMisconfigured = T( EditorMisconfigured = T(
en=""" en="""
No such file or directory: '{editor_key}' No such file or directory: '{editor_key}'
@ -361,7 +335,6 @@ class MsgText(Enum):
エディター: '{editor_key}' エディター: '{editor_key}'
""", """,
) )
EditorNotConfigured = T( EditorNotConfigured = T(
en=""" en="""
There is no editor configured There is no editor configured
@ -382,7 +355,6 @@ class MsgText(Enum):
https://jrnl.sh/en/stable/external-editors/ https://jrnl.sh/en/stable/external-editors/
""", """,
) )
NoEditsReceivedJournalNotDeleted = T( NoEditsReceivedJournalNotDeleted = T(
en=""" en="""
No text received from editor. Were you trying to delete all the entries? No text received from editor. Were you trying to delete all the entries?
@ -399,12 +371,10 @@ class MsgText(Enum):
すべてのエントリを削除するには--delete オプションを使用してください すべてのエントリを削除するには--delete オプションを使用してください
""", """,
) )
NoEditsReceived = T( NoEditsReceived = T(
en="No edits to save, because nothing was changed", en="No edits to save, because nothing was changed",
ja="変更がなかったため、保存する編集はありません", ja="変更がなかったため、保存する編集はありません",
) )
NoTextReceived = T( NoTextReceived = T(
en=""" en="""
No entry to save, because no text was received No entry to save, because no text was received
@ -413,7 +383,6 @@ class MsgText(Enum):
テキストが受信されてないため保存するエントリがありません テキストが受信されてないため保存するエントリがありません
""", """,
) )
NoChangesToTemplate = T( NoChangesToTemplate = T(
en=""" en="""
No entry to save, because the template was not changed No entry to save, because the template was not changed
@ -440,22 +409,18 @@ class MsgText(Enum):
https://github.com/jrnl-org/jrnl/issues/new?title=JournalFailedUpgrade https://github.com/jrnl-org/jrnl/issues/new?title=JournalFailedUpgrade
""", """,
) )
UpgradeAborted = T( UpgradeAborted = T(
en="jrnl was NOT upgraded", en="jrnl was NOT upgraded",
ja="jrnl はアップグレードされませんでした", ja="jrnl はアップグレードされませんでした",
) )
AbortingUpgrade = T( AbortingUpgrade = T(
en="Aborting upgrade...", en="Aborting upgrade...",
ja="アップグレードを中止しています...", ja="アップグレードを中止しています...",
) )
ImportAborted = T( ImportAborted = T(
en="Entries were NOT imported", en="Entries were NOT imported",
ja="エントリがインポートされませんでした", ja="エントリがインポートされませんでした",
) )
JournalsToUpgrade = T( JournalsToUpgrade = T(
en=""" en="""
The following journals will be upgraded to jrnl {version}: The following journals will be upgraded to jrnl {version}:
@ -466,7 +431,6 @@ class MsgText(Enum):
""", """,
) )
JournalsToIgnore = T( JournalsToIgnore = T(
en=""" en="""
The following journals will not be touched: The following journals will not be touched:
@ -477,7 +441,6 @@ class MsgText(Enum):
""", """,
) )
UpgradingJournal = T( UpgradingJournal = T(
en=""" en="""
Upgrading '{journal_name}' journal stored in {path}... Upgrading '{journal_name}' journal stored in {path}...
@ -486,12 +449,10 @@ class MsgText(Enum):
{path} に保存されている '{journal_name}' ジャーナルをアップグレードしています... {path} に保存されている '{journal_name}' ジャーナルをアップグレードしています...
""", """,
) )
UpgradingConfig = T( UpgradingConfig = T(
en="Upgrading config...", en="Upgrading config...",
ja="構成をアップグレードしています...", ja="構成をアップグレードしています...",
) )
PaddedJournalName = "{journal_name:{pad}} -> {path}" PaddedJournalName = "{journal_name:{pad}} -> {path}"
# -- Config --- # # -- Config --- #
@ -505,7 +466,6 @@ class MsgText(Enum):
{config_file} {config_file}
""", """,
) )
ConfigUpdated = T( ConfigUpdated = T(
en=""" en="""
Configuration updated to newest version at {config_path} Configuration updated to newest version at {config_path}
@ -514,7 +474,6 @@ class MsgText(Enum):
{config_path} で構成が最新バージョンに更新されました {config_path} で構成が最新バージョンに更新されました
""", """,
) )
ConfigDoubleKeys = T( ConfigDoubleKeys = T(
en=""" en="""
There is at least one duplicate key in your configuration file. There is at least one duplicate key in your configuration file.
@ -625,6 +584,7 @@ class MsgText(Enum):
{count} 個が {journal_name} ジャーナルにインポートされました {count} 個が {journal_name} ジャーナルにインポートされました
""", """,
) )
# --- Color --- # # --- Color --- #
InvalidColor = T( InvalidColor = T(
en="{key} set to invalid color: {color}", en="{key} set to invalid color: {color}",