forked from Plemya-x/ALR
chore: make the application more internationalized
This commit is contained in:
parent
dcac0b9ee5
commit
0fa288b8a2
@ -52,7 +52,7 @@ func GetAppCliTemplate() string {
|
|||||||
{{template "helpNameTemplate" .}}
|
{{template "helpNameTemplate" .}}
|
||||||
|
|
||||||
%s:
|
%s:
|
||||||
{{if .UsageText}}{{wrap .UsageText 3}}{{else}}{{.HelpName}} {{if .VisibleFlags}}[global options]{{end}}{{if .Commands}} command [command options]{{end}} {{if .ArgsUsage}}{{.ArgsUsage}}{{else}}[arguments...]{{end}}{{end}}{{if .Version}}{{if not .HideVersion}}
|
{{if .UsageText}}{{wrap .UsageText 3}}{{else}}{{.HelpName}} {{if .VisibleFlags}}[%s]{{end}}{{if .Commands}} %s [%s]{{end}} {{if .ArgsUsage}}{{.ArgsUsage}}{{else}}[%s...]{{end}}{{end}}{{if .Version}}{{if not .HideVersion}}
|
||||||
|
|
||||||
%s:
|
%s:
|
||||||
{{.Version}}{{end}}{{end}}{{if .Description}}
|
{{.Version}}{{end}}{{end}}{{if .Description}}
|
||||||
@ -71,7 +71,7 @@ func GetAppCliTemplate() string {
|
|||||||
|
|
||||||
%s:
|
%s:
|
||||||
{{template "copyrightTemplate" .}}{{end}}
|
{{template "copyrightTemplate" .}}{{end}}
|
||||||
`, gotext.Get("NAME"), gotext.Get("USAGE"), gotext.Get("VERSION"), gotext.Get("DESCRIPTION"), gotext.Get("AUTHOR"), gotext.Get("COMMANDS"), gotext.Get("GLOBAL OPTIONS"), gotext.Get("GLOBAL OPTIONS"), gotext.Get("COPYRIGHT"))
|
`, gotext.Get("NAME"), gotext.Get("USAGE"), gotext.Get("global options"), gotext.Get("command"), gotext.Get("command options"), gotext.Get("arguments"), gotext.Get("VERSION"), gotext.Get("DESCRIPTION"), gotext.Get("AUTHOR"), gotext.Get("COMMANDS"), gotext.Get("GLOBAL OPTIONS"), gotext.Get("GLOBAL OPTIONS"), gotext.Get("COPYRIGHT"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetCommandHelpTemplate() string {
|
func GetCommandHelpTemplate() string {
|
||||||
@ -79,7 +79,7 @@ func GetCommandHelpTemplate() string {
|
|||||||
{{template "helpNameTemplate" .}}
|
{{template "helpNameTemplate" .}}
|
||||||
|
|
||||||
%s:
|
%s:
|
||||||
{{if .UsageText}}{{wrap .UsageText 3}}{{else}}{{.HelpName}}{{if .VisibleFlags}} [%s]{{end}} {{if .ArgsUsage}}{{.ArgsUsage}}{{else}}[%s]{{end}}{{end}}{{if .Category}}
|
{{if .UsageText}}{{wrap .UsageText 3}}{{else}}{{.HelpName}}{{if .VisibleFlags}} [%s]{{end}} {{if .ArgsUsage}}{{.ArgsUsage}}{{else}}[%s...]{{end}}{{end}}{{if .Category}}
|
||||||
|
|
||||||
%s:
|
%s:
|
||||||
{{.Category}}{{end}}{{if .Description}}
|
{{.Category}}{{end}}{{if .Description}}
|
||||||
@ -93,7 +93,7 @@ func GetCommandHelpTemplate() string {
|
|||||||
`, gotext.Get("NAME"),
|
`, gotext.Get("NAME"),
|
||||||
gotext.Get("USAGE"),
|
gotext.Get("USAGE"),
|
||||||
gotext.Get("command options"),
|
gotext.Get("command options"),
|
||||||
gotext.Get("arguments..."),
|
gotext.Get("arguments"),
|
||||||
gotext.Get("CATEGORY"),
|
gotext.Get("CATEGORY"),
|
||||||
gotext.Get("DESCRIPTION"),
|
gotext.Get("DESCRIPTION"),
|
||||||
gotext.Get("OPTIONS"),
|
gotext.Get("OPTIONS"),
|
||||||
|
@ -202,6 +202,22 @@ msgstr ""
|
|||||||
msgid "USAGE"
|
msgid "USAGE"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: internal/cliutils/template.go:74
|
||||||
|
msgid "global options"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: internal/cliutils/template.go:74
|
||||||
|
msgid "command"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: internal/cliutils/template.go:74 internal/cliutils/template.go:95
|
||||||
|
msgid "command options"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: internal/cliutils/template.go:74 internal/cliutils/template.go:96
|
||||||
|
msgid "arguments"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: internal/cliutils/template.go:74
|
#: internal/cliutils/template.go:74
|
||||||
msgid "VERSION"
|
msgid "VERSION"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -226,14 +242,6 @@ msgstr ""
|
|||||||
msgid "COPYRIGHT"
|
msgid "COPYRIGHT"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: internal/cliutils/template.go:95
|
|
||||||
msgid "command options"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: internal/cliutils/template.go:96
|
|
||||||
msgid "arguments..."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: internal/cliutils/template.go:97
|
#: internal/cliutils/template.go:97
|
||||||
msgid "CATEGORY"
|
msgid "CATEGORY"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: unnamed project\n"
|
"Project-Id-Version: unnamed project\n"
|
||||||
"PO-Revision-Date: 2025-02-27 11:33+0300\n"
|
"PO-Revision-Date: 2025-02-27 14:27+0300\n"
|
||||||
"Last-Translator: Maxim Slipenko <maks1ms@alt-gnome.ru>\n"
|
"Last-Translator: Maxim Slipenko <maks1ms@alt-gnome.ru>\n"
|
||||||
"Language-Team: Russian\n"
|
"Language-Team: Russian\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
|
||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||||
"X-Generator: Gtranslator 47.1\n"
|
"X-Generator: Gtranslator 47.1\n"
|
||||||
|
|
||||||
#: build.go:44
|
#: build.go:44
|
||||||
@ -209,6 +209,22 @@ msgstr "НАЗВАНИЕ"
|
|||||||
msgid "USAGE"
|
msgid "USAGE"
|
||||||
msgstr "ИСПОЛЬЗОВАНИЕ"
|
msgstr "ИСПОЛЬЗОВАНИЕ"
|
||||||
|
|
||||||
|
#: internal/cliutils/template.go:74
|
||||||
|
msgid "global options"
|
||||||
|
msgstr "глобальные опции"
|
||||||
|
|
||||||
|
#: internal/cliutils/template.go:74
|
||||||
|
msgid "command"
|
||||||
|
msgstr "команда"
|
||||||
|
|
||||||
|
#: internal/cliutils/template.go:74 internal/cliutils/template.go:95
|
||||||
|
msgid "command options"
|
||||||
|
msgstr "опции команды"
|
||||||
|
|
||||||
|
#: internal/cliutils/template.go:74 internal/cliutils/template.go:96
|
||||||
|
msgid "arguments"
|
||||||
|
msgstr "аргументы"
|
||||||
|
|
||||||
#: internal/cliutils/template.go:74
|
#: internal/cliutils/template.go:74
|
||||||
msgid "VERSION"
|
msgid "VERSION"
|
||||||
msgstr "ВЕРСИЯ"
|
msgstr "ВЕРСИЯ"
|
||||||
@ -233,14 +249,6 @@ msgstr "ГЛОБАЛЬНЫЕ ОПЦИИ"
|
|||||||
msgid "COPYRIGHT"
|
msgid "COPYRIGHT"
|
||||||
msgstr "АВТОРСКОЕ ПРАВО"
|
msgstr "АВТОРСКОЕ ПРАВО"
|
||||||
|
|
||||||
#: internal/cliutils/template.go:95
|
|
||||||
msgid "command options"
|
|
||||||
msgstr "опции команды"
|
|
||||||
|
|
||||||
#: internal/cliutils/template.go:96
|
|
||||||
msgid "arguments..."
|
|
||||||
msgstr "аргументы..."
|
|
||||||
|
|
||||||
#: internal/cliutils/template.go:97
|
#: internal/cliutils/template.go:97
|
||||||
msgid "CATEGORY"
|
msgid "CATEGORY"
|
||||||
msgstr "КАТЕГОРИЯ"
|
msgstr "КАТЕГОРИЯ"
|
||||||
|
Loading…
Reference in New Issue
Block a user