mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
get rid of hardcoded text
This commit is contained in:
parent
eeca1e2338
commit
fd930922db
2 changed files with 4 additions and 6 deletions
|
@ -161,7 +161,7 @@ class MsgText(Enum):
|
||||||
ImportAborted = "Entries were NOT imported"
|
ImportAborted = "Entries were NOT imported"
|
||||||
|
|
||||||
JournalsToUpgrade = """
|
JournalsToUpgrade = """
|
||||||
The following {journal_type} journals will be upgraded to jrnl {version}:
|
The following journals will be upgraded to jrnl {version}:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ class MsgText(Enum):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
UpgradingJournal = """
|
UpgradingJournal = """
|
||||||
Upgrading {journal_type} '{journal_name}' journal stored in {path}...
|
Upgrading '{journal_name}' journal stored in {path}...
|
||||||
"""
|
"""
|
||||||
|
|
||||||
UpgradingConfig = "Upgrading config..."
|
UpgradingConfig = "Upgrading config..."
|
||||||
|
@ -209,6 +209,8 @@ class MsgText(Enum):
|
||||||
YAML export must be to a directory, not a single file
|
YAML export must be to a directory, not a single file
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
JournalExportedTo = "Journal exported to {path}"
|
||||||
|
|
||||||
# --- Import --- #
|
# --- Import --- #
|
||||||
ImportSummary = """
|
ImportSummary = """
|
||||||
{count} imported to {journal_name} journal
|
{count} imported to {journal_name} journal
|
||||||
|
|
|
@ -92,7 +92,6 @@ def upgrade_jrnl(config_path):
|
||||||
header=Message(
|
header=Message(
|
||||||
MsgText.JournalsToUpgrade,
|
MsgText.JournalsToUpgrade,
|
||||||
params={
|
params={
|
||||||
"journal_type": "encrypted",
|
|
||||||
"version": __version__,
|
"version": __version__,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -104,7 +103,6 @@ def upgrade_jrnl(config_path):
|
||||||
header=Message(
|
header=Message(
|
||||||
MsgText.JournalsToUpgrade,
|
MsgText.JournalsToUpgrade,
|
||||||
params={
|
params={
|
||||||
"journal_type": "plain text",
|
|
||||||
"version": __version__,
|
"version": __version__,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -126,7 +124,6 @@ def upgrade_jrnl(config_path):
|
||||||
Message(
|
Message(
|
||||||
MsgText.UpgradingJournal,
|
MsgText.UpgradingJournal,
|
||||||
params={
|
params={
|
||||||
"journal_type": "encrypted",
|
|
||||||
"journal_name": journal_name,
|
"journal_name": journal_name,
|
||||||
"path": path,
|
"path": path,
|
||||||
},
|
},
|
||||||
|
@ -144,7 +141,6 @@ def upgrade_jrnl(config_path):
|
||||||
Message(
|
Message(
|
||||||
MsgText.UpgradingJournal,
|
MsgText.UpgradingJournal,
|
||||||
params={
|
params={
|
||||||
"journal_type": "plain text",
|
|
||||||
"journal_name": journal_name,
|
"journal_name": journal_name,
|
||||||
"path": path,
|
"path": path,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue