File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,7 @@ TAppSettings = class(TObject)
433433 function EscapeHotkeyPrefix (Text: String): String;
434434 function GetFileNameWithoutExtension (Filename: String): String;
435435 function GetCommandLine : String;
436+ // This returns a stable, lowercase name "heidisql", used for configuration files and translations
436437 function GetApplicationName : String;
437438
438439var
@@ -2677,7 +2678,7 @@ procedure InitMoFile(LangCode: String);
26772678 if LangCode.IsEmpty then
26782679 LangCode := SysLanguage;
26792680 LocaleDir := AppendPathDelim(ExtractFilePath(Application.ExeName)) + AppendPathDelim(' locale' );
2680- AppLanguageMoBasePath := LocaleDir + LowerCase(APPNAME) ;
2681+ AppLanguageMoBasePath := LocaleDir + GetApplicationName ;
26812682 MOFileName := ' ' ;
26822683 if not LangCode.IsEmpty then begin
26832684 MOFileName := AppLanguageMoBasePath + ' .' + LangCode + ' .mo' ;
You can’t perform that action at this time.
0 commit comments