Skip to content

Commit fafebcd

Browse files
committed
for translate.google.com (and others) for korean lang use ko, not kr
#5368
1 parent 01e6e85 commit fafebcd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/HomePage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ static void DrawHomePageLayout(const HomePageLayout& l) {
10151015
l.rcPromoteInfo.dy);
10161016
}
10171017
#endif
1018-
//COLORREF promoBgCol = RGB(232, 232, 240);
1018+
// COLORREF promoBgCol = RGB(232, 232, 240);
10191019
COLORREF promoBgCol = RGB(255, 255, 255);
10201020
FillRect(hdc, l.rcPromote, promoBgCol);
10211021

src/SumatraPDF.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4898,6 +4898,9 @@ static void LaunchBrowserWithSelection(WindowTab* tab, const char* urlPattern) {
48984898
// ${userLang} and and ${selectin} are typed by user in settings file
48994899
// to be shomewhat resilient against typos, we'll accept a different case
49004900
const char* lang = trans::GetCurrentLangCode();
4901+
if (str::Eq(lang, "kr")) {
4902+
lang = "ko";
4903+
}
49014904
auto contryCode = GetISO639LangCodeFromLang(lang);
49024905
TempStr uri = str::ReplaceNoCaseTemp(urlPattern, kUserLangStr, contryCode);
49034906
uri = str::ReplaceNoCaseTemp(uri, kSelectionStr, encodedSelection);

0 commit comments

Comments
 (0)