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:
parent
62fc831407
commit
d9959eb998
27
i18n.go
27
i18n.go
@ -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)
|
||||
}
|
||||
|
||||
|
19
i18n/nl.toml
19
i18n/nl.toml
@ -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"
|
Loading…
Reference in New Issue
Block a user