Skip to content

Commit a6e663f

Browse files
authored
Fix missing space before (empty) in a translation
because in a ini file the spaces at the beginning of an item are ignored.
1 parent 08ba99b commit a6e663f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

languages.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static const struct strings en_US = {
509509
/* about */ TEXT("&About"),
510510
/* open ini file */ TEXT("&Open ini file"),
511511
/* savezones */ TEXT("&Save test windows as snap layout"),
512-
/* emptyzone */ TEXT(" (empty)"),
512+
/* emptyzone */ TEXT("(empty)"),
513513
/* snaplayout */ TEXT("Snap layout &"),
514514
/* exit */ TEXT("E&xit"),
515515

tray.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static void ClearAllZones()
179179
{
180180
int i;
181181
TCHAR txt[128], name[32];
182-
for (i = 0; i < 32; i++) {
182+
for (i = 0; i < 2048; i++) {
183183
ZidxToZonestr(LayoutNumber, i, name);
184184
if (GetPrivateProfileString(TEXT("Zones"), name, TEXT(""), txt, ARR_SZ(txt), inipath)) {
185185
WritePrivateProfileString(TEXT("Zones"), name, TEXT(""), inipath);
@@ -229,6 +229,7 @@ static void catFullLayoutName(TCHAR *txt, size_t len, int laynum)
229229
lstrcat_s(txt, len, Uint2lStr(numstr, HIWORD(rez)));
230230
lstrcat_s(txt, len, TEXT(")"));
231231
} else {
232+
lstrcat_s(txt, len, TEXT(" "));
232233
lstrcat_s(txt, len, l10n->menu_emptyzone); // (empty)
233234
}
234235
} else {

0 commit comments

Comments
 (0)