Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
修复#1
Browse files Browse the repository at this point in the history
1)修复因为OmetaT默认大写LanguageCode导致腾讯云API报错。
  • Loading branch information
Ovear authored Apr 8, 2018
1 parent 88bbee8 commit 6e3b026
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private String tmtLang(Language language) {
} else if (lang.equalsIgnoreCase("ko")) {
return "kr";
} else {
return language.getLanguageCode();
return language.getLanguageCode().toLowerCase();
}

}
Expand Down Expand Up @@ -115,4 +115,4 @@ protected void onConfirm() {
dialog.panel.temporaryCheckBox.setSelected(isCredentialStoredTemporarily(PROPERTY_API_SECRET_KEY));
dialog.show();
}
}
}

0 comments on commit 6e3b026

Please sign in to comment.