Эх сурвалжийг харах

vcc: translated the full vcc

intirain 4 жил өмнө
parent
commit
a5ef66b22b
5 өөрчлөгдсөн 130 нэмэгдсэн , 9 устгасан
  1. 1 1
      Makefile
  2. 2 2
      include/vcc/version.h
  3. 5 4
      main.c
  4. 1 1
      plugins/script/script.c
  5. 121 1
      po/zh_CN.po

+ 1 - 1
Makefile

@@ -1,5 +1,5 @@
 VCC_MAJOR 		= 1
-VCC_MINOR 		= 18
+VCC_MINOR 		= 19
 VCC_PATCH 		= 0
 VCC_STR 		= -rc 
 

+ 2 - 2
include/vcc/version.h

@@ -1,2 +1,2 @@
-#define VCC_VERSION "VCC 1.18.0 2022年 05月 08日 星期日 16:00:03 CST root"
-#define VCC_SEMVER "vcc 1.18.0-rc "
+#define VCC_VERSION "VCC 1.19.0 2022年 05月 08日 星期日 17:43:49 CST root"
+#define VCC_SEMVER "vcc 1.19.0-rc "

+ 5 - 4
main.c

@@ -87,13 +87,13 @@ static char const *help_msg = {
 	"Usage: vcc [-auprh] [server]\n"
 	"Options: \n"
 	"  -u    --user    Set the username on the server. "
-	"If unspecified, you must input it interatively. \n"
-	"  -p    --port    Specified the port on the server. "
+	"If unspecified, you must input it interactively. \n"
+	"  -p    --port    Specify the port on the server. "
 	"Default port is 46. You must keep this as same "
 	"as the port on the server. \n"
 	"  -r    --robot   Enter the robot mode. \n"
 	"  -a    --address Address of the server. "
-	"As default, server is " VCC_DEFSERV ". \n"
+	"As default, server is %s. \n"
 	"  -h    --help    Show this help information. \n"
 };
 
@@ -140,7 +140,8 @@ static struct option longopts[] = {
 
 
 static int usage(void) {
-	fputs(_(help_msg), stderr);
+	fprintf(stderr, _(help_msg), VCC_DEFSERV);
+
 	return 1;
 }
 

+ 1 - 1
plugins/script/script.c

@@ -33,7 +33,7 @@ int do_cmd_if(int argc, char **argv);
 int handle_command(char *s);
 
 struct cmdtable script_cmdtab[] = {
-	{ "-if", do_cmd_if, "if condition then ... else ..." }, 
+	{ "-if", do_cmd_if, "-if condition then ... else ..." }, 
 
 	{ NULL, NULL, NULL }
 };

+ 121 - 1
po/zh_CN.po

@@ -5,7 +5,7 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: vcc 1.18.0\n"
+"Project-Id-Version: vcc 1.19.0\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2022-05-08 15:46+0800\n"
 "PO-Revision-Date: 2022-05-08 15:46+0800\n"
@@ -332,3 +332,123 @@ msgstr "已连接到服务器\n"
 #, c-format
 msgid "Server closed. \n"
 msgstr "服务器断开\n"
+
+#, c-format
+msgid "Show information about every message. "
+msgstr "显示有关所有指令的帮助信息"
+
+#, c-format
+msgid "Disconnect to server and exit vcc. "
+msgstr "与服务器断开连接然后退出 vcc"
+
+#, c-format
+msgid "List all users online now. "
+msgstr "列出在线的用户"
+
+#, c-format
+msgid "Create a new session. "
+msgstr "创建新会话"
+
+#, c-format
+msgid "Get current session id. "
+msgstr "获取当前会话 ID"
+
+#, c-format
+msgid "Switch to another session. "
+msgstr "加入另一个会话"
+
+#, c-format
+msgid "List all sessions created. "
+msgstr "列出所有会话"
+
+#, c-format
+msgid "Get one's information. "
+msgstr "获取用户信息"
+
+#, c-format
+msgid "Reload information of myself. "
+msgstr "重缓存自己的信息"
+
+#, c-format
+msgid "Increase one's score (root required). "
+msgstr "增加用户分数(需要管理权限)"
+
+#, c-format
+msgid "Raise CQD. "
+msgstr "发出求救信号(CQD)"
+
+#, c-format
+msgid "Don't receive more messages from somebody. "
+msgstr "不再接收某人的信息"
+
+#, c-format
+msgid "Receive more messages from somebody. "
+msgstr "继续接收某人的信息"
+
+#, c-format
+msgid "Send an encrypted message. "
+msgstr "发送一条加密信息"
+
+#, c-format
+msgid "List plugins installed (not inserted). "
+msgstr "列出插件(包括未安装的)"
+
+#, c-format
+msgid "Insert a plugin. "
+msgstr "安装插件"
+
+#, c-format
+msgid "Remove a plugin. "
+msgstr "禁用插件"
+
+#, c-format
+msgid "Multi-line. "
+msgstr "多行输入"
+
+#, c-format
+msgid "Greet you. "
+msgstr "问候你(字面意思)"
+
+#, c-format
+msgid "GNU M4 Expanding. "
+msgstr "GNU M4 宏扩展"
+
+#, c-format
+msgid "Define a macro which i will remember. "
+msgstr "定义记忆宏"
+
+#, c-format
+msgid "The robot plugin. "
+msgstr "机器人插件"
+
+#, c-format
+msgid "Standard vcc script. "
+msgstr "标准 vcc 脚本"
+
+#, c-format
+msgid "-if condition then ... else ..."
+msgstr "-if 条件 then ... else ..."
+
+#, c-format
+msgid ""
+"Usage: vcc [-auprh] [server]\n"
+"Options: \n"
+"  -u    --user    Set the username on the server. "
+"If unspecified, you must input it interactively. \n"
+"  -p    --port    Specify the port on the server. "
+"Default port is 46. You must keep this as same "
+"as the port on the server. \n"
+"  -r    --robot   Enter the robot mode. \n"
+"  -a    --address Address of the server. "
+"As default, server is %s. \n"
+"  -h    --help    Show this help information. \n"
+msgstr ""
+"用法:vcc [-auprh] [服务器地址]\n"
+"选项:\n"
+"  -u    --user    设置用户名。如果未指定,则需要交互式的输入它。\n"
+"  -p    --port    指定连接的端口号码。默认端口是 46。你必须确保它和服务器监听的端口一致。\n"
+"  -r    --robot   启动后进入机器人模式。\n"
+"  -a    --address 指定服务器地址。默认服务器是 %s。\n"
+"  -h    --help    显示该帮助信息。\n"
+
+