Add custom language

This commit is contained in:
shiyj.cn
2023-09-04 10:23:04 +08:00
parent 602044a30d
commit e7eac157a9
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -112,6 +112,8 @@ static const char * const print_info[] = {
#include "Languages/zh-CN/cmb_zh_CN.h" #include "Languages/zh-CN/cmb_zh_CN.h"
#elif (CMB_PRINT_LANGUAGE == CMB_PRINT_LANGUAGE_CHINESE_UTF8) #elif (CMB_PRINT_LANGUAGE == CMB_PRINT_LANGUAGE_CHINESE_UTF8)
#include "Languages/zh-CN/cmb_zh_CN_UTF8.h" #include "Languages/zh-CN/cmb_zh_CN_UTF8.h"
#elif (CMB_PRINT_LANGUAGE == CMB_PRINT_LANGUAGE_CUSTOM)
#include "cmb_language_custom.h"
#else #else
#error "CMB_PRINT_LANGUAGE defined error in 'cmb_cfg.h'" #error "CMB_PRINT_LANGUAGE defined error in 'cmb_cfg.h'"
#endif #endif
+1
View File
@@ -51,6 +51,7 @@
#define CMB_PRINT_LANGUAGE_ENGLISH 0 #define CMB_PRINT_LANGUAGE_ENGLISH 0
#define CMB_PRINT_LANGUAGE_CHINESE 1 #define CMB_PRINT_LANGUAGE_CHINESE 1
#define CMB_PRINT_LANGUAGE_CHINESE_UTF8 2 #define CMB_PRINT_LANGUAGE_CHINESE_UTF8 2
#define CMB_PRINT_LANGUAGE_CUSTOM 0xFF
/* name max length, default size: 32 */ /* name max length, default size: 32 */
#ifndef CMB_NAME_MAX #ifndef CMB_NAME_MAX