Make it possible to translate error screens.

This commit is contained in:
aquanull 2013-05-25 13:37:43 +08:00
parent 4ba40fcd2f
commit 88d83e3a74
3 changed files with 9 additions and 3 deletions

View File

@ -1219,11 +1219,13 @@ void ErrorScreen::render()
UIBegin(UIShader_Get());
DrawBackground(1.0f);
I18NCategory *ge = GetI18NCategory("Error");
ui_draw2d.SetFontScale(1.5f, 1.5f);
ui_draw2d.DrawText(UBUNTU24, errorTitle_.c_str(), dp_xres / 2, 30, 0xFFFFFFFF, ALIGN_HCENTER);
ui_draw2d.DrawText(UBUNTU24, ge->T(errorTitle_.c_str()), dp_xres / 2, 30, 0xFFFFFFFF, ALIGN_HCENTER);
ui_draw2d.SetFontScale(1.0f, 1.0f);
ui_draw2d.DrawText(UBUNTU24, errorMessage_.c_str(), 40, 120, 0xFFFFFFFF, ALIGN_LEFT);
ui_draw2d.DrawText(UBUNTU24, ge->T(errorMessage_.c_str()), 40, 120, 0xFFFFFFFF, ALIGN_LEFT);
I18NCategory *g = GetI18NCategory("General");

View File

@ -102,6 +102,8 @@ Back = 返回
Delete = 删除
Finish = 完成
Shift = Shift
[Error]
Error loading file = 文件载入错误
繁體中文
[MainMenu]
@ -207,3 +209,5 @@ There is no data = 沒有存檔
DeleteConfirm = 這份檔案將被刪除。\n您確定要繼續嗎?
Deleting = 刪除中\n請稍候...
Delete completed = 已刪除
[Error]
Error loading file = 檔案載入錯誤

2
lang

@ -1 +1 @@
Subproject commit 5c4d7f33b0398de7f5d95ae6a41fbf32da7fcd8e
Subproject commit ee757b76849a885445acdfa7ae54ae1446dadf63