Browse Source

add i18n support for Chinese

pull/103/head
Unknown 12 years ago
parent
commit
f942263ed9
  1. 2
      README.md
  2. 2
      README_ZH.md
  3. 6
      conf/gpm.toml
  4. 2
      i18n/en-US/usage.tpl
  5. 11
      i18n/en-US/usage_build.txt
  6. 3
      i18n/en-US/usage_check.txt
  7. 3
      i18n/en-US/usage_install.txt
  8. 3
      i18n/en-US/usage_remove.txt
  9. 3
      i18n/en-US/usage_search.txt
  10. 14
      i18n/zh-CN/usage.tpl
  11. 30
      i18n/zh-CN/usage_build.txt
  12. 10
      i18n/zh-CN/usage_check.txt
  13. 33
      i18n/zh-CN/usage_install.txt
  14. 19
      i18n/zh-CN/usage_remove.txt
  15. 9
      i18n/zh-CN/usage_search.txt

2
README.md

@ -23,6 +23,7 @@ This application still in experiment, any change could happen, but it doesn't af
- `search` searchs packages in [Go Walker](http://gowalker.org) database by keyword. - `search` searchs packages in [Go Walker](http://gowalker.org) database by keyword.
- `install` downloads and installs packages and dependencies: you can download packages without version control tools like git, hg, svn, etc. It downloads and installs all packages including all dependencies automatically(except when you use bundle or snapshot). For now, this command supports `code.google.com`, `github.com`, `launchpad.net`, `bitbucket.org`. - `install` downloads and installs packages and dependencies: you can download packages without version control tools like git, hg, svn, etc. It downloads and installs all packages including all dependencies automatically(except when you use bundle or snapshot). For now, this command supports `code.google.com`, `github.com`, `launchpad.net`, `bitbucket.org`.
- `remove` removes packages and dependencies: it removes all packages including all dependencies(except when you use bundle or snapshot). - `remove` removes packages and dependencies: it removes all packages including all dependencies(except when you use bundle or snapshot).
- `check` checks dependencies of packages, and install all missing as a choose.
## Known issues ## Known issues
@ -32,7 +33,6 @@ This application still in experiment, any change could happen, but it doesn't af
### v0.2.* ### v0.2.*
- i18n support for Chinese.
- Add template projects for testing commands. - Add template projects for testing commands.
- Add feature auto-catch if run under GOPATH/bin. - Add feature auto-catch if run under GOPATH/bin.

2
README_ZH.md

@ -20,8 +20,10 @@ gpm(Go 包管理工具) 是一款涵盖搜索、安装、更新、分享以
## 主要命令 ## 主要命令
- `build` 编译并安装 Go 包以及其依赖包:该命令从底层调用 `go install` 命令,如果为 main 包,则会将可执行文件从 `GOPATH` 中移至当前目录,可执行文件的名称是由 `go install` 默认指定的当前文件夹名称。 - `build` 编译并安装 Go 包以及其依赖包:该命令从底层调用 `go install` 命令,如果为 main 包,则会将可执行文件从 `GOPATH` 中移至当前目录,可执行文件的名称是由 `go install` 默认指定的当前文件夹名称。
- `search` 通过关键字在 [Go Walker](http://gowalker.org) 数据库中查找相关包。
- `install` 下载并安装 Go 包以及其依赖包:您无需安装像 git、hg 或 svn 这类版本控制工具就可以下载您指定的包。该命令也会自动下载相关的依赖包(当您使用集合或快照下载时,不会自动下载依赖包)。目前,该命令支持托管在 `code.google.com`、`github.com`、`launchpad.net` 和 `bitbucket.org` 上的开源项目。 - `install` 下载并安装 Go 包以及其依赖包:您无需安装像 git、hg 或 svn 这类版本控制工具就可以下载您指定的包。该命令也会自动下载相关的依赖包(当您使用集合或快照下载时,不会自动下载依赖包)。目前,该命令支持托管在 `code.google.com`、`github.com`、`launchpad.net` 和 `bitbucket.org` 上的开源项目。
- `remove` 删除 Go 包及其依赖包:该命令可删除 Go 包及其依赖包(当您使用集合或快照删除时,无法自动删除依赖包)。 - `remove` 删除 Go 包及其依赖包:该命令可删除 Go 包及其依赖包(当您使用集合或快照删除时,无法自动删除依赖包)。
- `check` 检查当前包的依赖包是否全部安装,如果发现未安装的依赖包会提示您是否选择安装。
## 已知问题 ## 已知问题

6
conf/gpm.toml

@ -1,9 +1,9 @@
# This is a configuration file for gpm with toml format. # This is a configuration file for gpm with toml format.
title = "gpm(Go Package Manager)" title = "gpm(Go Package Manager)"
version = "v0.1.9 Build 0523" version = "v0.2.0 Build 0523"
user_language = "en-US" #user_language = "en-US"
#user_language = "zh-CN" user_language = "zh-CN"
auto_backup = true auto_backup = true
[account] [account]

2
i18n/en-US/usage.tpl

@ -1,4 +1,4 @@
gpm is a Go package manage tool for search, install, update and share packages. gpm(Go Package Manager) is a Go package manage tool for search, install, update, share packages.
Usage: Usage:

11
i18n/en-US/usage_build.txt

@ -2,14 +2,6 @@ compile and install packages and dependencies|||
Build compiles and installs the packages named by the import paths, Build compiles and installs the packages named by the import paths,
along with their dependencies. 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 If the package is main, the output file
name is the base name of the containing directory. name is the base name of the containing directory.
@ -20,8 +12,7 @@ The build flags are shared by the build and test commands:
-r -r
run program after built. run program after built.
The list flags accept a space-separated list of strings. To embed spaces The list flags accept a space-separated list of strings.
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 specifying packages, see 'go help packages'.

3
i18n/en-US/usage_check.txt

@ -5,5 +5,4 @@ and generate configure file.
The check flags are: The check flags are:
The list flags accept a space-separated list of strings. To embed spaces The list flags accept a space-separated list of strings.
in an element in the list, surround it with either single or double quotes.

3
i18n/en-US/usage_install.txt

@ -20,8 +20,7 @@ The install flags are:
-s -s
download from sources. download from sources.
The list flags accept a space-separated list of strings. To embed spaces The list flags accept a space-separated list of strings.
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 specifying packages, see 'go help packages'.
For more about bundle, see 'gpm help bundle'. For more about bundle, see 'gpm help bundle'.

3
i18n/en-US/usage_remove.txt

@ -5,8 +5,7 @@ along with their dependencies.
The remove flags are: The remove flags are:
The list flags accept a space-separated list of strings. To embed spaces The list flags accept a space-separated list of strings.
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 specifying packages, see 'go help packages'.
For more about bundle, see 'gpm help bundle'. For more about bundle, see 'gpm help bundle'.

3
i18n/en-US/usage_search.txt

@ -4,5 +4,4 @@ Search searchs packages by keyword.
The search flags are: The search flags are:
The list flags accept a space-separated list of strings. To embed spaces The list flags accept a space-separated list of strings.
in an element in the list, surround it with either single or double quotes.

14
i18n/zh-CN/usage.tpl

@ -1,18 +1,18 @@
gpm is a Go package manage tool for search, install, update and share packages. gpm(Go 包管理工具) 是一款涵盖搜索、安装、更新、分享功能 Go 包的管理工具。
Usage: 用法:
gpm command [arguments] gpm 命令 [参数]
The commands are: 命令列表:
{{range .}}{{if .Runnable}} {{range .}}{{if .Runnable}}
{{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}} {{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}}
Use "gpm help [command]" for more information about a command. 使用 "gpm help [命令]" 来获取相关命令的更多信息.
Additional help topics: 其它帮助主题:
{{range .}}{{if not .Runnable}} {{range .}}{{if not .Runnable}}
{{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}} {{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}}
Use "gpm help [topic]" for more information about that topic. 使用 "gpm help [主题]" 来获取相关主题的更多信息.

30
i18n/zh-CN/usage_build.txt

@ -1,29 +1,19 @@
compile and install packages and dependencies||| 编译安装 Go 包及其依赖包|||
Build compiles and installs the packages named by the import paths, Build 命令编译并安装 Go 包以及其依赖包.
along with their dependencies.
If the arguments are a list of .go files, build treats them as a list 如果被安装的包为 main 包,则可执行文件的名称是根据包含该包的
of source files specifying a single package. 文件夹目录的名称决定的.
When the command line specifies a single main package, 下列参数可用于 build 和 test 命令:
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:
-v -v
print the names of packages as they are compiled. 打印被编译包的名称列表.
-r -r
run program after built. 完成构建后运行程序.
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'. 获取更多有关包的信息,参见 'go help packages'.
See also: gpm install. 相关主题: gpm install.

10
i18n/zh-CN/usage_check.txt

@ -1,9 +1,7 @@
check packages dependencies||| 检查安装依赖包|||
Check checks packages dependencies if have been installed Check 命令用于检查并安装缺失的依赖包,并生成依赖配置文件.
and generate configure file.
The check flags are: 下列参数可用于 check 命令:
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.

33
i18n/zh-CN/usage_install.txt

@ -1,30 +1,27 @@
download and install packages and dependencies||| 下载并安装 Go 包及其依赖包|||
Install downloads and installs the packages named by the import paths, Install 命令下载并安装 Go 包及其依赖包.
along with their dependencies.
This command works even you haven't installed any version control tool 即使您没有安装像 git、hg 这类版本控制工具,该命令依旧有效.
such as git, hg, etc.
The install flags are: 下列参数可用于 install 命令:
-p -p
pure download packages without version control. 无版本控制的纯净下载.
-c -c
download source code only. 只下载代码文件.
-d -d
download without installing packages. 下载但不安装包.
-u -u
force to update pakcages. 强制更新包.
-e -e
download dependencies for examples. 下载示例代码中的依赖包.
-s -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'. 获取更多有关包的信息,参见 'go help packages'.
For more about bundle, see 'gpm help bundle'. 获取更多有关集合的信息,参见 'gpm help bundle'.
For more about snapshot, see 'gpm help snapshot'. 获取更多有关快照的信息,参见 'gpm help snapshot'.
See also: gpm build. 相关主题: gpm build.

19
i18n/zh-CN/usage_remove.txt

@ -1,15 +1,14 @@
remove packages and dependencies||| 删除 Go 包及其依赖包|||
Remove removes the packages named by the import paths, Remove 命令删除 Go 包及其依赖包.
along with their dependencies.
The remove flags are: 下列参数可用于 remove 命令:
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 install. 获取更多有关包的信息,参见 'go help packages'.
获取更多有关集合的信息,参见 'gpm help bundle'.
获取更多有关快照的信息,参见 'gpm help snapshot'.
相关主题: gpm install.

9
i18n/zh-CN/usage_search.txt

@ -1,8 +1,7 @@
search packages||| 搜索 Go 包|||
Search searchs packages by keyword. Search 命令通过关键字搜索 Go 包.
The search flags are: 下列参数可用于 search 命令:
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.

Loading…
Cancel
Save