Browse Source

strings add i18n support

pull/103/head
Unknown 12 years ago
parent
commit
0c54abd2ea
  1. 3
      conf/gpm.toml
  2. 28
      i18n/zh-CN/prompt.txt
  3. 18
      i18n/zh-CN/usage.tpl
  4. 61
      i18n/zh-CN/usage_build.txt
  5. 28
      i18n/zh-CN/usage_install.txt

3
conf/gpm.toml

@ -4,4 +4,5 @@ title = "gpm(Go Package Manager)"
version = "v0.1.3 Build 0522"
username = ""
password = ""
user_language = "en-US"
#user_language = "en-US"
user_language = "zh-CN"

28
i18n/zh-CN/prompt.txt

@ -0,0 +1,28 @@
LoadCommandUsage=加载命令 (%s) 说明失败 [ %s ]
ReadCoammndUsage=不可用的 (%s) 说明文件.
LoadLocalData=无法加载本地数据 [ %s ]
ParseJSON=JSON 解析失败 [ %s ]
OpenFile=文件打开失败 [ %s ]
RemoveFile=移除文件失败 [ %s ]
UnknownCommand=gpm: 未知命令 %q. 运行 'gpm help' 获取帮助.
MoveFile=从 $GOPATH(%s) 拷贝文件到当前目录 (%s) 失败.
UnknownFlag=未知参数: %s.
DownloadError=下载包 (%s) 失败 [ %s ]
NotFoundError=合法的源代码托管平台,但正则匹配失败.
ErrNoMatch=不被支持的源代码托管平台.
MovedFile=成功将文件从 $GOPATH(%s) 移动至当前目录 (%s).
PureDownload=已激活纯净下载模式.
DownloadOnly=已激活无安装模式.
DownloadExDeps=已激活下载示例代码依赖.
DownloadFromSrcs=已激活从用户源下载.
NoPackage=请列出至少一个包、集合或快照.
DownloadPath=所有包将会被下载至 GOPATH(%s).
InstallStatus=正在安装包: %s.
BundleInfo=集合 (%s) 包含以下结点:
ContinueDownload=是否继续下载?(Y/n).
SkipDownloaded=忽略已下载包: %s.
SkipInvalidPath=忽略无效的导入路径: %s.
InstallByGoGet=正在通过 'go get' 安装包 (%s).
NoVCSTool=未找到合适的版本控制工具,已激活纯净下载模式!
DownloadStatus=正在下载包: %s.

18
i18n/zh-CN/usage.tpl

@ -0,0 +1,18 @@
gpm is a Go package manage tool for search, install, update and share packages.
Usage:
gpm command [arguments]
The commands are:
{{range .}}{{if .Runnable}}
{{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}}
Use "gpm help [command]" for more information about a command.
Additional help topics:
{{range .}}{{if not .Runnable}}
{{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}}
Use "gpm help [topic]" for more information about that topic.

61
i18n/zh-CN/usage_build.txt

@ -0,0 +1,61 @@
compile and install packages and dependencies|||
Build compiles and installs the packages named by the import paths,
along with their dependencies.
If the arguments are a list of .go files, build treats them as a list
of source files specifying a single package.
When the command line specifies a single main package,
build writes the resulting executable to output.
Otherwise build compiles the packages but discards the results,
serving only as a check that the packages can be built.
If the package is main, the output file
name is the base name of the containing directory.
The build flags are shared by the build and test commands:
-a
force rebuilding of packages that are already up-to-date.
-n
print the commands but do not run them.
-p n
the number of builds that can be run in parallel.
The default is the number of CPUs available.
-race
enable data race detection.
Supported only on linux/amd64, darwin/amd64 and windows/amd64.
-v
print the names of packages as they are compiled.
-work
print the name of the temporary work directory and
do not delete it when exiting.
-x
print the commands.
-ccflags 'arg list'
arguments to pass on each 5c, 6c, or 8c compiler invocation.
-compiler name
name of compiler to use, as in runtime.Compiler (gccgo or gc).
-gccgoflags 'arg list'
arguments to pass on each gccgo compiler/linker invocation.
-gcflags 'arg list'
arguments to pass on each 5g, 6g, or 8g compiler invocation.
-installsuffix suffix
a suffix to use in the name of the package installation directory,
in order to keep output separate from default builds.
If using the -race flag, the install suffix is automatically set to race
or, if set explicitly, has _race appended to it.
-ldflags 'flag list'
arguments to pass on each 5l, 6l, or 8l linker invocation.
-tags 'tag list'
a list of build tags to consider satisfied during the build.
See the documentation for the go/build package for
more information about build tags.
The list flags accept a space-separated list of strings. To embed spaces
in an element in the list, surround it with either single or double quotes.
For more about specifying packages, see 'go help packages'.
See also: gpm install.

28
i18n/zh-CN/usage_install.txt

@ -0,0 +1,28 @@
download and install packages and dependencies|||
Install downloads and installs the packages named by the import paths,
along with their dependencies.
This command works even you haven't installed any version control tool
such as git, hg, etc.
The install flags are:
-p
pure download packages without version control.
-d
download without installing packages.
-u
force to update pakcages.
-e
download dependencies for examples.
-s
download from sources.
The list flags accept a space-separated list of strings. To embed spaces
in an element in the list, surround it with either single or double quotes.
For more about specifying packages, see 'go help packages'.
For more about bundle, see 'gpm help bundle'.
For more about snapshot, see 'gpm help snapshot'.
See also: gpm build.
Loading…
Cancel
Save