Skip to content

Commit

Permalink
Fix missing space before (empty) in a translation
Browse files Browse the repository at this point in the history
because in a ini file the spaces at the beginning of an item are ignored.
  • Loading branch information
RamonUnch authored Mar 11, 2023
1 parent 08ba99b commit a6e663f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion languages.h
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ static const struct strings en_US = {
/* about */ TEXT("&About"),
/* open ini file */ TEXT("&Open ini file"),
/* savezones */ TEXT("&Save test windows as snap layout"),
/* emptyzone */ TEXT(" (empty)"),
/* emptyzone */ TEXT("(empty)"),
/* snaplayout */ TEXT("Snap layout &"),
/* exit */ TEXT("E&xit"),

Expand Down
3 changes: 2 additions & 1 deletion tray.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static void ClearAllZones()
{
int i;
TCHAR txt[128], name[32];
for (i = 0; i < 32; i++) {
for (i = 0; i < 2048; i++) {
ZidxToZonestr(LayoutNumber, i, name);
if (GetPrivateProfileString(TEXT("Zones"), name, TEXT(""), txt, ARR_SZ(txt), inipath)) {
WritePrivateProfileString(TEXT("Zones"), name, TEXT(""), inipath);
Expand Down Expand Up @@ -229,6 +229,7 @@ static void catFullLayoutName(TCHAR *txt, size_t len, int laynum)
lstrcat_s(txt, len, Uint2lStr(numstr, HIWORD(rez)));
lstrcat_s(txt, len, TEXT(")"));
} else {
lstrcat_s(txt, len, TEXT(" "));
lstrcat_s(txt, len, l10n->menu_emptyzone); // (empty)
}
} else {
Expand Down

0 comments on commit a6e663f

Please sign in to comment.