-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change gettext-rs to rust-i18n fix i18n string
- Loading branch information
Showing
26 changed files
with
808 additions
and
482 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("{},{}!", "hello", "world") |
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,51 @@ | ||
[tshell] | ||
welcome = "Welcome to tshell.Type help() to get more infomation" | ||
|
||
[compiler] | ||
ZeroDivisionError = "ZeroDivisionError" | ||
NumberOverFlowError = "NumberOverFlowError" | ||
ArgumentError = "ArgumentError" | ||
FormatStringError = "FormatStringError" | ||
SymbolError = "SymbolError" | ||
TypeError = "TypeError" | ||
OperatorError = "OperatorError" | ||
VmError = "VmError" | ||
SyntaxError = "SyntaxError" | ||
|
||
[compiler.syntaxerror] | ||
str_error = "this string should be ended with \"" | ||
unmatched = "%{0} is unmatched" | ||
prefix_float = "Prefix %{0} can be used for float" | ||
unexpected_token = "token %{0} is not expected" | ||
unclosed_comment = "unclosed comment" | ||
char_error = "char should be the format like 'x'." | ||
|
||
[compiler.symbolerror] | ||
not_found_sym = "Symbol %{0} not found" | ||
redefined_sym = "Symbol %{0} redefined" | ||
|
||
[compiler.argumenterror] | ||
argu_num = "expect %{0}.But given %{1}" | ||
type_unmatched = "Expect type %{0}.But given type %{1}" | ||
void_argu = "argument cannot be 'void'" | ||
|
||
[compiler.formatstringerror] | ||
unclosed_format = "unmatched {" | ||
|
||
[compiler.typerror] | ||
operator_unsupport = "operator %{0} is not supported for type %{1}" | ||
type_not_same = "Type %{0} and %{1} are not the same" | ||
|
||
[compiler.report] | ||
in_module = "In module %{name}" | ||
error_in_line = "Error in line %{line}" | ||
|
||
[compiler.numberoverflowerror] | ||
float_over_flow = "Float %{0} is too large to store" | ||
|
||
[vm.vmerror] | ||
data_num_error = "The number of data of vm stack is not correct, should have %{0} data" | ||
stack_frame_empty = "frame stack is empty.But running a pop frame opcode" | ||
|
||
[vm.zerodivisionerror] | ||
zerodiv = "%{0} is divided by zero" |
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,51 @@ | ||
[tshell] | ||
welcome = "欢迎使用tshell。输入help()获取更多信息" | ||
|
||
[compiler] | ||
NumberOverFlowError = "数值溢出错误" | ||
FormatStringError = "格式化字符串错误" | ||
SymbolError = "符号错误" | ||
TypeError = "类型错误" | ||
ZeroDivisionError = "除零错误" | ||
VmError = "虚拟机错误" | ||
ArgumentError = "参数错误" | ||
SyntaxError = "语法错误" | ||
OperatorError = "操作符错误" | ||
|
||
[compiler.syntaxerror] | ||
unmatched = "%{0}未匹配" | ||
char_error = "字符应当以类似'x'的格式书写." | ||
str_error = "这个字符串应当以\"结束" | ||
unclosed_comment = "未闭合的注释" | ||
prefix_float = "前缀%{0}不能对浮点数使用" | ||
unexpected_token = "token %{0}不是被期望的" | ||
|
||
[compiler.symbolerror] | ||
not_found_sym = "未找到符号%{0}" | ||
redefined_sym = "符号%{0}重定义" | ||
|
||
[compiler.argumenterror] | ||
void_argu = "参数不能为void" | ||
type_unmatched = "期望类型%{0}.但是传入类型是%{1}" | ||
argu_num = "期望%{0}个参数.但是输入%{1}个参数" | ||
|
||
[compiler.formatstringerror] | ||
unclosed_format = "{未匹配" | ||
|
||
[compiler.typerror] | ||
operator_unsupport = "操作符%{0}不支持类型%{1}" | ||
type_not_same = "类型%{0}和%{1}不同" | ||
|
||
[compiler.report] | ||
error_in_line = "错误在第%{line}行" | ||
in_module = "在模块%{name}中" | ||
|
||
[compiler.numberoverflowerror] | ||
float_over_flow = "浮点数%{0}超过了储存范围" | ||
|
||
[vm.vmerror] | ||
data_num_error = "虚拟机栈中数据数量不正确,期望有%{0}个数据" | ||
stack_frame_empty = "帧栈为空,但运行了pop frame指令" | ||
|
||
[vm.zerodivisionerror] | ||
zerodiv = "%{0}被零除" |
Binary file not shown.
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.