Skip to content

Commit

Permalink
give a favor to the British
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Jun 21, 2018
1 parent 27fc882 commit 7f2e8ee
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/RisohEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,21 @@ WORD LangFromText(LPWSTR pszLang)
break;
}

// is it UK?
if (lstrcmpiW(pszLang, L"United Kingdom") == 0 ||
lstrcmpiW(pszLang, L"Great Britain") == 0 ||
lstrcmpiW(pszLang, L"British") == 0 ||
lstrcmpiW(pszLang, L"UK") == 0 ||
lstrcmpiW(pszLang, L"GB") == 0 ||
lstrcmpiW(pszLang, LoadStringDx(IDS_UNITEDKINGDOM)) == 0 ||
lstrcmpiW(pszLang, LoadStringDx(IDS_GREATBRITAIN)) == 0 ||
lstrcmpiW(pszLang, LoadStringDx(IDS_BRITISH)) == 0)
{
// Russian
lang = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_UK);
break;
}

// is it numeric?
if (mchr_is_digit(strLang[0]))
{
Expand Down
4 changes: 4 additions & 0 deletions src/lang/en-US.rc
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,12 @@ STRINGTABLE
IDS_TOOL_IMPORT, "Import..."
IDS_TOOL_EXTRACT, "Extract..."
IDS_TOOL_GUIEDIT, "Edit by GUI"
IDS_UNITEDKINGDOM, "United Kingdom"
IDS_GREATBRITAIN, "Great Britain"
IDS_BRITISH, "British"
}


IDD_REPLACERES DIALOGEX 0, 0, 215, 170
CAPTION "Replace Resource"
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
Expand Down
3 changes: 3 additions & 0 deletions src/lang/ja-JP.rc
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ STRINGTABLE
IDS_TOOL_IMPORT, "インポート..."
IDS_TOOL_EXTRACT, "抽出..."
IDS_TOOL_GUIEDIT, "GUI編集"
IDS_UNITEDKINGDOM, "英国"
IDS_GREATBRITAIN, "イギリス"
IDS_BRITISH, "イギリス語"
}

IDD_REPLACERES DIALOGEX 0, 0, 215, 170
Expand Down
3 changes: 3 additions & 0 deletions src/lang/zh-CN.rc
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ STRINGTABLE
IDS_TOOL_IMPORT, "导入..."
IDS_TOOL_EXTRACT, "导出..."
IDS_TOOL_GUIEDIT, "GUI编辑"
IDS_UNITEDKINGDOM, "英国"
IDS_GREATBRITAIN, "大不列颠"
IDS_BRITISH, "英国的"
}

IDD_REPLACERES DIALOGEX 0, 0, 215, 170
Expand Down
3 changes: 3 additions & 0 deletions src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@
#define IDS_TOOL_IMPORT 274
#define IDS_TOOL_EXTRACT 275
#define IDS_TOOL_GUIEDIT 276
#define IDS_UNITEDKINGDOM 277
#define IDS_GREATBRITAIN 278
#define IDS_BRITISH 279

#define IDC_DUMMYCONTROLID1 1000
#define IDC_DUMMYCONTROLID2 1001
Expand Down

0 comments on commit 7f2e8ee

Please sign in to comment.