#include "Ventoy2Disk.h"
#include "Language.h"
-const TCHAR * g_Str_English[STR_ID_MAX] =
+const TCHAR * GetString(enum STR_ID ID)
{
- TEXT("Error"),
- TEXT("Warning"),
- TEXT("Info"),
- TEXT("Please run under the correct directory!"),
- TEXT("Device"),
- TEXT("Ventoy At Local"),
- TEXT("Ventoy In Device"),
- TEXT("Status - READY"),
- TEXT("Install"),
- TEXT("Update"),
- TEXT("Upgrade operation is safe, ISO files will be unchanged.\r\nContinue?"),
- TEXT("The disk will be formatted and all the data will be lost.\r\nContinue?"),
- TEXT("The disk will be formatted and all the data will be lost.\r\nContinue? (Double Check)"),
- TEXT("Congratulations!\r\nVentoy has been successfully installed to the device."),
- TEXT("An error occurred during the installation. Please check log.txt for detail."),
- TEXT("Congratulations!\r\nVentoy has been successfully updated to the device."),
- TEXT("An error occurred during the update. Please check log.txt for detail."),
-
- TEXT("A thread is running, please wait..."),
+ return g_cur_lang_data->MsgString[ID];
};
-const TCHAR * g_Str_ChineseSimple[STR_ID_MAX] =
+static const UINT16 g_unicode_icon[UNICODE_BUTT][3] =
{
- TEXT("´íÎó"),
- TEXT("¾¯¸æ"),
- TEXT("ÌáÐÑ"),
- TEXT("ÇëÔÚÕýÈ·µÄĿ¼ÏÂÔËÐÐ!"),
- TEXT("É豸"),
- TEXT("±¾µØ Ventoy"),
- TEXT("É豸ÉÏ Ventoy"),
- TEXT("״̬ - ×¼±¸¾ÍÐ÷"),
- TEXT("°²×°"),
- TEXT("Éý¼¶"),
- TEXT("Éý¼¶²Ù×÷Êǰ²È«µÄ, ISOÎļþ²»»á¶ªÊ§\r\nÊÇ·ñ¼ÌÐø£¿"),
- TEXT("´ÅÅ̻ᱻ¸ñʽ»¯, ËùÓÐÊý¾Ý¶¼»á¶ªÊ§!\r\nÊÇ·ñ¼ÌÐø£¿"),
- TEXT("´ÅÅ̻ᱻ¸ñʽ»¯, ËùÓÐÊý¾Ý¶¼»á¶ªÊ§!\r\nÔÙ´ÎÈ·ÈÏÊÇ·ñ¼ÌÐø£¿"),
- TEXT("¹§Ï²Äã! Ventoy ÒѾ³É¹¦°²×°µ½´ËÉ豸ÖÐ."),
- TEXT("°²×° Ventoy ¹ý³ÌÖз¢Éú´íÎó. ÏêϸÐÅÏ¢Çë²éÔÄ log.txt Îļþ."),
- TEXT("¹§Ï²Äã! а汾µÄ Ventoy ÒѾ³É¹¦¸üе½´ËÉ豸ÖÐ."),
- TEXT("¸üРVentoy ¹ý³ÌÖÐÓöµ½´íÎó. ÏêϸÐÅÏ¢Çë²éÔÄ log.txt Îļþ."),
-
- TEXT("µ±Ç°ÓÐÈÎÎñÕýÔÚÔËÐÐ, ÇëµÈ´ý..."),
+ { 0xD83D, 0xDD12, 0x0000 },
};
-const TCHAR * GetString(enum STR_ID ID)
+const UINT16 * GetUnicodeIcon(icon)
{
- return g_Str_English[ID];
-};
+ return g_unicode_icon[icon];
+}