diff options
author | Mark Kopenga <mkopenga@gmail.com> | 2018-12-06 08:31:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 08:31:12 +0100 |
commit | 1b6d34e76a4d5d132f95072139fb3aba760eb771 (patch) | |
tree | fb6cc607a67f0d3d2ef0b9d66fafd439864e6d9a /pkg/i18n | |
parent | 67115436347dec591d12a1a31d1c971915cf0b05 (diff) | |
parent | 1a6a69a8f1f7c44978a384ba56321149f973223d (diff) |
Merge branch 'master' into https-ask-for-username-password
Diffstat (limited to 'pkg/i18n')
-rw-r--r-- | pkg/i18n/dutch.go | 24 | ||||
-rw-r--r-- | pkg/i18n/english.go | 24 | ||||
-rw-r--r-- | pkg/i18n/i18n_test.go | 4 | ||||
-rw-r--r-- | pkg/i18n/polish.go | 24 |
4 files changed, 76 insertions, 0 deletions
diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index 2f5a3a404..bd7305735 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -421,6 +421,30 @@ func addDutch(i18nObject *i18n.Bundle) error { }, &i18n.Message{ ID: "NoAutomaticGitFetchBody", Other: `Lazygit can't use "git fetch" in a private repo use f in the branch panel to run git fetch manually`, + }, &i18n.Message{ + ID: "StageLines", + Other: `stage individual hunks/lines`, + }, &i18n.Message{ + ID: "FileStagingRequirements", + Other: `Can only stage individual lines for tracked files with unstaged changes`, + }, &i18n.Message{ + ID: "StagingTitle", + Other: `Staging`, + }, &i18n.Message{ + ID: "StageHunk", + Other: `stage hunk`, + }, &i18n.Message{ + ID: "StageLine", + Other: `stage line`, + }, &i18n.Message{ + ID: "EscapeStaging", + Other: `return to files panel`, + }, &i18n.Message{ + ID: "CantFindHunks", + Other: `Could not find any hunks in this patch`, + }, &i18n.Message{ + ID: "CantFindHunk", + Other: `Could not find hunk`, }, ) } diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 2ef1d8597..5e0c8109f 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -429,6 +429,30 @@ func addEnglish(i18nObject *i18n.Bundle) error { }, &i18n.Message{ ID: "NoAutomaticGitFetchBody", Other: `Lazygit can't use "git fetch" in a private repo use f in the branch panel to run git fetch manually`, + }, &i18n.Message{ + ID: "StageLines", + Other: `stage individual hunks/lines`, + }, &i18n.Message{ + ID: "FileStagingRequirements", + Other: `Can only stage individual lines for tracked files with unstaged changes`, + }, &i18n.Message{ + ID: "StagingTitle", + Other: `Staging`, + }, &i18n.Message{ + ID: "StageHunk", + Other: `stage hunk`, + }, &i18n.Message{ + ID: "StageLine", + Other: `stage line`, + }, &i18n.Message{ + ID: "EscapeStaging", + Other: `return to files panel`, + }, &i18n.Message{ + ID: "CantFindHunks", + Other: `Could not find any hunks in this patch`, + }, &i18n.Message{ + ID: "CantFindHunk", + Other: `Could not find hunk`, }, ) } diff --git a/pkg/i18n/i18n_test.go b/pkg/i18n/i18n_test.go index 5ddfdd79c..0739d6dc6 100644 --- a/pkg/i18n/i18n_test.go +++ b/pkg/i18n/i18n_test.go @@ -16,10 +16,13 @@ func getDummyLog() *logrus.Entry { log.Out = ioutil.Discard return log.WithField("test", "test") } + +// TestNewLocalizer is a function. func TestNewLocalizer(t *testing.T) { assert.NotNil(t, NewLocalizer(getDummyLog())) } +// TestDetectLanguage is a function. func TestDetectLanguage(t *testing.T) { type scenario struct { langDetector func() (string, error) @@ -46,6 +49,7 @@ func TestDetectLanguage(t *testing.T) { } } +// TestLocalizer is a function. func TestLocalizer(t *testing.T) { type scenario struct { userLang string diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index d2b4a84ed..e7a6e64cc 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -404,6 +404,30 @@ func addPolish(i18nObject *i18n.Bundle) error { }, &i18n.Message{ ID: "NoAutomaticGitFetchBody", Other: `Lazygit can't use "git fetch" in a private repo use f in the branch panel to run git fetch manually`, + }, &i18n.Message{ + ID: "StageLines", + Other: `stage individual hunks/lines`, + }, &i18n.Message{ + ID: "FileStagingRequirements", + Other: `Can only stage individual lines for tracked files with unstaged changes`, + }, &i18n.Message{ + ID: "StagingTitle", + Other: `Staging`, + }, &i18n.Message{ + ID: "StageHunk", + Other: `stage hunk`, + }, &i18n.Message{ + ID: "StageLine", + Other: `stage line`, + }, &i18n.Message{ + ID: "EscapeStaging", + Other: `return to files panel`, + }, &i18n.Message{ + ID: "CantFindHunks", + Other: `Could not find any hunks in this patch`, + }, &i18n.Message{ + ID: "CantFindHunk", + Other: `Could not find hunk`, }, ) } |