1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00

fixed @jesseduffield comment #137

This commit is contained in:
Mark Kopenga 2018-08-13 20:46:53 +02:00
parent 62fc831407
commit d9959eb998
2 changed files with 25 additions and 21 deletions

27
i18n.go
View File

@ -11,9 +11,32 @@ func getlocalizer() *i18n.Localizer {
// TODO: currently the system language issn't detected
// I'm not sure how to detect it
var i18nObject = &i18n.Bundle{DefaultLanguage: language.English}
var i18nObject = &i18n.Bundle{DefaultLanguage: language.Dutch}
i18nObject.RegisterUnmarshalFunc("toml", toml.Unmarshal)
i18nObject.MustLoadMessageFile("i18n/nl.toml")
// Dutch translation for some words
i18nObject.AddMessages(language.Dutch,
&i18n.Message{
ID: "FilesTitle",
Other: "Bestanden",
}, &i18n.Message{
ID: "BranchesTitle",
Other: "Branches",
}, &i18n.Message{
ID: "CommitsTitle",
Other: "Commits",
}, &i18n.Message{
ID: "StashTitle",
Other: "Stash",
}, &i18n.Message{
ID: "CommitMessage",
Other: "Commit Bericht",
}, &i18n.Message{
ID: "StatusTitle",
Other: "Status",
},
)
return i18n.NewLocalizer(i18nObject)
}

View File

@ -1,19 +0,0 @@
# The dutch translation for this program
[FilesTitle]
other = "Bestanden"
[BranchesTitle]
other = "Branches"
[CommitsTitle]
other = "Commits"
[StashTitle]
other = "Stash"
[CommitMessage]
other = "Commit Bericht"
[StatusTitle]
other = "Status"