-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
153 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
/* | ||
* Copyright(C) 2021 hikyuu.org | ||
* | ||
* Create on: 2021-05-01 | ||
* Create on: 2021-05-02 | ||
* Author: fasiondog | ||
*/ | ||
|
||
#include "mo.h" | ||
|
||
namespace hku { | ||
|
||
moFileLib::moFileReader g_moFR; | ||
std::unordered_map<std::string, moFileLib::moFileReader> MOHelper::ms_dict; | ||
|
||
void mo_init(const char *filename) { | ||
g_moFR.ReadFile(filename); | ||
void MOHelper::init() { | ||
ms_dict["zh_cn"] = moFileLib::moFileReader(); | ||
ms_dict["zh_cn"].ReadFile("i8n/zh_CN.mo"); | ||
} | ||
|
||
} // namespace hku |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
xgettext -k_ -k"_LC:1c,2" -k"_LC:1c,2" -s -c --package-name=hikyuu -f po/POTFILES.in -o po/hikyuu.pot | ||
; 实际不需要使用该命令,因为不能自动更新;实际直接使用 poedit 打开 i8n/zh_CN.po 进行更新 | ||
; 此处保留,用于 poedit 设置关键字时参考 | ||
xgettext -k_tr -k"_ctr:1c,2" -s -c --package-name=hikyuu -f i8n/POTFILES.in -o i8n/hikyuu.pot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
service/filter.cpp | ||
service/user/SignHandle.h | ||
service/user/UserHandle.h |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Hikyuu\n" | ||
"POT-Creation-Date: 2021-05-03 01:44+0800\n" | ||
"PO-Revision-Date: 2021-05-03 01:44+0800\n" | ||
"Last-Translator: \n" | ||
"Language-Team: hikyuu.org\n" | ||
"Language: zh_CN\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 2.4.3\n" | ||
"X-Poedit-Basepath: ..\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
"X-Poedit-SourceCharset: UTF-8\n" | ||
"X-Poedit-KeywordsList: _tr;_ctr:1c,2\n" | ||
"X-Poedit-SearchPath-0: .\n" | ||
|
||
#: service/filter.cpp:30 | ||
msgctxt "authorize" | ||
msgid "Miss token" | ||
msgstr "缺失令牌" | ||
|
||
#: service/filter.cpp:32 | ||
msgctxt "authorize" | ||
msgid "Invalid token" | ||
msgstr "无效令牌" | ||
|
||
#: service/filter.cpp:66 | ||
msgctxt "authorize" | ||
msgid "token is expired" | ||
msgstr "令牌过期" | ||
|
||
#: service/user/SignHandle.h:35 service/user/UserHandle.h:42 | ||
msgctxt "user" | ||
msgid "Duplicate user name" | ||
msgstr "用户名重复" | ||
|
||
#: service/user/SignHandle.h:62 | ||
msgctxt "user" | ||
msgid "User does not exist" | ||
msgstr "用户不存在" | ||
|
||
#: service/user/SignHandle.h:64 | ||
msgctxt "user" | ||
msgid "Wrong password" | ||
msgstr "密码错误" | ||
|
||
#: service/user/UserHandle.h:63 | ||
msgctxt "user" | ||
msgid "No operation permission" | ||
msgstr "没有操作权限" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.