Skip to content

Commit 93bf989

Browse files
committed
fix: use GetApplicationName in InitMoFile as well, plus documentation
Refs #2310
1 parent 0469dd9 commit 93bf989

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/apphelpers.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

438439
var
@@ -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';

0 commit comments

Comments
 (0)