- snprintf(msg_path, sizeof(msg_path), "%s/msg.txt", cfg_path);
- FILE *fp = fopen(msg_path, "r");
+ FILE *fp = 0;
+ if( BC_Resources::language[0] ) {
+ snprintf(msg_path, sizeof(msg_path), "%s/msg/%s",
+ cfg_path, BC_Resources::language);
+ fp = fopen(msg_path, "r");
+ }
+ if( !fp ) {
+ snprintf(msg_path, sizeof(msg_path), "%s/msg/txt",
+ cfg_path);
+ fp = fopen(msg_path, "r");
+ }