-
Notifications
You must be signed in to change notification settings - Fork 281
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
[JA] Languages #297
Comments
This problem occurs because the code page cannot get from the language file. [MultiLangSupport.pas]
procedure TdevMultiLangSupport.Open(const Filename: String);
var
LangFile: String;
begin
// Load file from languages directory
LangFile := ValidateFile(Filename, devDirs.Lang);
if LangFile = '' then begin
MessageDlg('Could not open language file ' + Filename, mtError, [mbOK], 0);
Exit;
end;
// Load file into fStrings
fStrings.LoadFromFile(LangFile,TEncoding.ANSI);
fLangFile := LangFile;
// Get languange
fCurLang := fStrings.Values['Lang'];
if fCurLang = '' then
fCurLang := ChangeFileExt(ExtractFileName(LangFile), '');
fCurCodePage := GetCodePage(fCurLang); // <- Here
devData.Language := ExtractFileName(LangFile);
end;
If Lang in the language file is changed to “Japanese”, garbled characters will not occur.
↓
|
ht-deko
added a commit
to ht-deko/Dev-Cpp
that referenced
this issue
May 23, 2024
Lang=Japanese (日本語) // Please see issue Embarcadero#297 Same number of items as English.lng.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I change the language to Japanese, the characters are garbled.
([Tool | Environment Options...] > [General] Tab -> "Language:" )
The text was updated successfully, but these errors were encountered: