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

Commit

Permalink
Merge pull request #2 from ovear/master
Browse files Browse the repository at this point in the history
修复因为OmetaT默认大写LanguageCode导致腾讯云API报错
  • Loading branch information
yoyicue authored Apr 9, 2018
2 parents 88bbee8 + 6e3b026 commit fa6a09e
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 fa6a09e

Please sign in to comment.