fix group message can't be translated
Signed-off-by: aiyijing <aiyijing@live.com>pull/16850/head
parent
f23e93b1c4
commit
6d0c25e0c0
|
@ -225,6 +225,8 @@ func init() {
|
||||||
RootCmd.PersistentFlags().Bool(config.SkipAuditFlag, false, "Skip recording the current command in the audit logs.")
|
RootCmd.PersistentFlags().Bool(config.SkipAuditFlag, false, "Skip recording the current command in the audit logs.")
|
||||||
RootCmd.PersistentFlags().Bool(config.Rootless, false, "Force to use rootless driver (docker and podman driver only)")
|
RootCmd.PersistentFlags().Bool(config.Rootless, false, "Force to use rootless driver (docker and podman driver only)")
|
||||||
|
|
||||||
|
translate.DetermineLocale()
|
||||||
|
|
||||||
groups := templates.CommandGroups{
|
groups := templates.CommandGroups{
|
||||||
{
|
{
|
||||||
Message: translate.T("Basic Commands:"),
|
Message: translate.T("Basic Commands:"),
|
||||||
|
@ -297,7 +299,6 @@ func init() {
|
||||||
exit.Error(reason.InternalBindFlags, "Unable to bind flags", err)
|
exit.Error(reason.InternalBindFlags, "Unable to bind flags", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
translate.DetermineLocale()
|
|
||||||
cobra.OnInitialize(initConfig)
|
cobra.OnInitialize(initConfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue