summaryrefslogtreecommitdiffstats
path: root/pkg/i18n
diff options
context:
space:
mode:
authorSean <seand52@gmail.com>2023-01-21 11:38:14 +0000
committerJesse Duffield <jessedduffield@gmail.com>2023-04-30 13:19:53 +1000
commit9d68b287db57b49eddf4b2b81ca1acd2e16aa5aa (patch)
treed286af9a7cfa27348fb5034ee01a1e16a699057b /pkg/i18n
parenta5c72d056ddbd639db3597ffb19a60e0cbae1826 (diff)
Split commit message panel into commit summary and commit description panel
When we use the one panel for the entire commit message, its tricky to have a keybinding both for adding a newline and submitting. By having two panels: one for the summary line and one for the description, we allow for 'enter' to submit the message when done from the summary panel, and 'enter' to add a newline when done from the description panel. Alt-enter, for those who can use that key combo, also works for submitting the message from the description panel. For those who can't use that key combo, and don't want to remap the keybinding, they can hit tab to go back to the summary panel and then 'enter' to submit the message. We have some awkwardness in that both contexts (i.e. panels) need to appear and disappear in tandem and we don't have a great way of handling that concept, so we just push both contexts one after the other, and likewise remove both contexts when we escape.
Diffstat (limited to 'pkg/i18n')
-rw-r--r--pkg/i18n/chinese.go2
-rw-r--r--pkg/i18n/dutch.go2
-rw-r--r--pkg/i18n/english.go10
-rw-r--r--pkg/i18n/japanese.go2
-rw-r--r--pkg/i18n/korean.go2
-rw-r--r--pkg/i18n/polish.go2
6 files changed, 12 insertions, 8 deletions
diff --git a/pkg/i18n/chinese.go b/pkg/i18n/chinese.go
index 1e41ff961..decbb4ea8 100644
--- a/pkg/i18n/chinese.go
+++ b/pkg/i18n/chinese.go
@@ -47,7 +47,7 @@ func chineseTranslationSet() TranslationSet {
StagingTitle: "正在暂存",
MergingTitle: "正在合并",
NormalTitle: "正常",
- CommitMessage: "提交信息",
+ CommitSummary: "提交信息",
CredentialsUsername: "用户名",
CredentialsPassword: "密码",
CredentialsPassphrase: "输入 SSH 密钥的密码",
diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go
index c3b42da38..8e8c9d21a 100644
--- a/pkg/i18n/dutch.go
+++ b/pkg/i18n/dutch.go
@@ -13,7 +13,7 @@ func dutchTranslationSet() TranslationSet {
MainTitle: "Hoofd",
StagingTitle: "Staging",
NormalTitle: "Normaal",
- CommitMessage: "Commitbericht",
+ CommitSummary: "Commitbericht",
CredentialsUsername: "Gebruikersnaam",
CredentialsPassword: "Wachtwoord",
CredentialsPassphrase: "Voer een wachtwoordzin in voor de SSH-sleutel",
diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go
index 34af886a8..5e34022d3 100644
--- a/pkg/i18n/english.go
+++ b/pkg/i18n/english.go
@@ -27,7 +27,7 @@ type TranslationSet struct {
MergeConfirmTitle string
NormalTitle string
LogTitle string
- CommitMessage string
+ CommitSummary string
CredentialsUsername string
CredentialsPassword string
CredentialsPassphrase string
@@ -195,6 +195,8 @@ type TranslationSet struct {
MergeOptionsTitle string
RebaseOptionsTitle string
CommitMessageTitle string
+ CommitDescriptionTitle string
+ CommitDescriptionSubTitle string
LocalBranchesTitle string
SearchTitle string
TagsTitle string
@@ -696,7 +698,7 @@ func EnglishTranslationSet() TranslationSet {
MergingTitle: "Main Panel (Merging)",
NormalTitle: "Main Panel (Normal)",
LogTitle: "Log",
- CommitMessage: "Commit message",
+ CommitSummary: "Commit summary",
CredentialsUsername: "Username",
CredentialsPassword: "Password",
CredentialsPassphrase: "Enter passphrase for SSH key",
@@ -862,7 +864,9 @@ func EnglishTranslationSet() TranslationSet {
RecentRepos: "recent repositories",
MergeOptionsTitle: "Merge Options",
RebaseOptionsTitle: "Rebase Options",
- CommitMessageTitle: "Commit Message",
+ CommitMessageTitle: "Commit Summary",
+ CommitDescriptionTitle: "Commit description",
+ CommitDescriptionSubTitle: "Press tab to toggle focus",
LocalBranchesTitle: "Local Branches",
SearchTitle: "Search",
TagsTitle: "Tags",
diff --git a/pkg/i18n/japanese.go b/pkg/i18n/japanese.go
index 2fd2b850f..1defdf1c9 100644
--- a/pkg/i18n/japanese.go
+++ b/pkg/i18n/japanese.go
@@ -34,7 +34,7 @@ func japaneseTranslationSet() TranslationSet {
MergingTitle: "メインパネル (Merging)",
NormalTitle: "メインパネル (Normal)",
LogTitle: "ログ",
- CommitMessage: "コミットメッセージ",
+ CommitSummary: "コミットメッセージ",
CredentialsUsername: "ユーザ名",
CredentialsPassword: "パスワード",
CredentialsPassphrase: "SSH鍵のパスフレーズを入力",
diff --git a/pkg/i18n/korean.go b/pkg/i18n/korean.go
index 3de86121a..ebdcb2ea5 100644
--- a/pkg/i18n/korean.go
+++ b/pkg/i18n/korean.go
@@ -33,7 +33,7 @@ func koreanTranslationSet() TranslationSet {
MergingTitle: "메인 패널 (Merging)",
NormalTitle: "메인 패널 (Normal)",
LogTitle: "로그",
- CommitMessage: "커밋 메시지",
+ CommitSummary: "커밋 메시지",
CredentialsUsername: "사용자 이름",
CredentialsPassword: "패스워드",
CredentialsPassphrase: "SSH키의 passphrase 입력",
diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go
index fb73dbf3d..5fdbbad74 100644
--- a/pkg/i18n/polish.go
+++ b/pkg/i18n/polish.go
@@ -10,7 +10,7 @@ func polishTranslationSet() TranslationSet {
StashTitle: "Schowek",
UnstagedChanges: "Zmiany poza poczekalnią",
StagedChanges: "Zmiany w poczekalni",
- CommitMessage: "Komunikat commita",
+ CommitSummary: "Komunikat commita",
CredentialsUsername: "Użytkownik",
CredentialsPassword: "Hasło",
CredentialsPassphrase: "Fraza",