Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lang.c #731

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/core/lang.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#define FILE_MM_RUS "c3_mm.rus"
#define FILE_EDITOR_TEXT_ENG "c3_map.eng"
#define FILE_EDITOR_MM_ENG "c3_map_mm.eng"
#define FILE_EDITOR_TEXT_RUS "c3_map.rus"
#define FILE_EDITOR_MM_RUS "c3_map_mm.rus"

static struct {
struct {
Expand Down Expand Up @@ -150,7 +152,9 @@ static int load_files(const char *text_filename, const char *message_filename, i
int lang_load(int is_editor)
{
if (is_editor) {
return load_files(FILE_EDITOR_TEXT_ENG, FILE_EDITOR_MM_ENG, MAY_BE_LOCALIZED);
return
load_files(FILE_EDITOR_TEXT_RUS, FILE_EDITOR_MM_RUS, MAY_BE_LOCALIZED) ||
load_files(FILE_EDITOR_TEXT_ENG, FILE_EDITOR_MM_ENG, MAY_BE_LOCALIZED);
}
// Prefer language files from localized dir, fall back to main dir
return
Expand Down
Loading