Files
8bitMyGoUI/pixel/messages.go
T

42 lines
2.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package pixel
import "fmt"
var messages = map[Locale]map[string]string{
En: {
"ok": "OK", "cancel": "CANCEL", "yes": "YES", "no": "NO", "close": "CLOSE",
"continue": "CONTINUE?", "game_over": "GAME OVER", "loading": "NOW LOADING",
"search": "SEARCH", "empty": "NO ITEMS", "minimize": "MINIMIZE", "resize": "RESIZE",
"scroll_up": "SCROLL UP", "scroll_down": "SCROLL DOWN",
"up": "UP", "down": "DOWN", "left": "LEFT", "right": "RIGHT", "disabled": "DISABLED",
"remove": "REMOVE", "online": "ONLINE", "away": "AWAY", "busy": "BUSY", "offline": "OFFLINE",
"gold": "GOLD", "silver": "SILVER", "bronze": "BRONZE",
"common": "COMMON", "uncommon": "UNCOMMON", "rare": "RARE", "epic": "EPIC", "legendary": "LEGENDARY",
"hold": "HOLD TO CONFIRM", "del": "DEL", "end": "END", "lives": "+30 LIVES!",
"retry": "RETRY", "stage_clear": "STAGE CLEAR!", "level_up": "LEVEL UP!", "achievement": "ACHIEVEMENT UNLOCKED",
"combo": "COMBO!", "saving": "SAVING", "saved": "SAVED", "go": "GO!", "wait": "PLEASE WAIT",
},
Zh: {
"ok": "确定", "cancel": "取消", "yes": "是", "no": "否", "close": "关闭",
"continue": "继续?", "game_over": "游戏结束", "loading": "读取中",
"search": "搜索", "empty": "空空如也", "minimize": "最小化", "resize": "调整大小",
"scroll_up": "向上滚动", "scroll_down": "向下滚动",
"up": "上", "down": "下", "left": "左", "right": "右", "disabled": "已禁用",
"remove": "移除", "online": "在线", "away": "离开", "busy": "忙碌", "offline": "离线",
"gold": "金", "silver": "银", "bronze": "铜",
"common": "普通", "uncommon": "优秀", "rare": "稀有", "epic": "史诗", "legendary": "传说",
"hold": "长按确认", "del": "删", "end": "完", "lives": "命数 +30!",
"retry": "重试", "stage_clear": "过关!", "level_up": "升级!", "achievement": "成就解锁",
"combo": "连击!", "saving": "存档中", "saved": "已存档", "go": "开始!", "wait": "请稍候",
},
}
// Msg is built-in copy in the frame's locale.
func (k Kit) Msg(key string) string {
s, ok := messages[k.locale][key]
if !ok {
panic(fmt.Sprintf("pixel: no message %q for locale %d", key, k.locale))
}
return s
}