1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Add more i18n for worktrees

This commit is contained in:
Jesse Duffield
2023-07-28 18:58:19 +10:00
parent 06be88aef7
commit eecf07cd12
3 changed files with 27 additions and 9 deletions

View File

@ -151,7 +151,8 @@ func (self *ReposHelper) DispatchSwitchTo(path string, errMsg string, contextKey
return nil
}
self.c.LogCommand(fmt.Sprintf("Changing directory to %s", path), false)
msg := utils.ResolvePlaceholderString(self.c.Tr.ChangingDirectoryTo, map[string]string{"path": path})
self.c.LogCommand(msg, false)
if err := os.Chdir(path); err != nil {
if os.IsNotExist(err) {