winefile: The title format string cannot really be translated so remove it from the resources.
Francois Gouget
fgouget at free.fr
Fri Aug 26 08:32:46 CDT 2011
---
One less string to puzzle over for the translators (and po file
checkers).
programs/winefile/resource.h | 1 -
programs/winefile/winefile.c | 4 ++--
programs/winefile/winefile.rc | 1 -
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/programs/winefile/resource.h b/programs/winefile/resource.h
index 023890a..4d03c29 100644
--- a/programs/winefile/resource.h
+++ b/programs/winefile/resource.h
@@ -114,7 +114,6 @@
#define IDS_UNIXFS 1203
#define IDS_DESKTOP 1204
#define IDS_SHELL 1205
-#define IDS_TITLEFMT 1206
#define IDS_NO_IMPL 1207
#define IDS_WINE_FILE 1208
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 08524ea..9374891 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -1353,8 +1353,8 @@ static ChildWnd* alloc_child_window(LPCWSTR path, LPITEMIDLIST pidl, HWND hwnd)
{
WCHAR drv[_MAX_DRIVE+1], dir[_MAX_DIR], name[_MAX_FNAME], ext[_MAX_EXT];
WCHAR dir_path[MAX_PATH];
- WCHAR b1[BUFFER_LEN];
static const WCHAR sAsterics[] = {'*', '\0'};
+ static const WCHAR sTitleFmt[] = {'%','s',' ','-',' ','%','s','\0'};
ChildWnd* child = HeapAlloc(GetProcessHeap(), 0, sizeof(ChildWnd));
Root* root = &child->root;
@@ -1406,7 +1406,7 @@ static ChildWnd* alloc_child_window(LPCWSTR path, LPITEMIDLIST pidl, HWND hwnd)
load_string(root->entry.data.cFileName, sizeof(root->entry.data.cFileName)/sizeof(root->entry.data.cFileName[0]), IDS_DESKTOP);
else
#endif
- wsprintfW(root->entry.data.cFileName, RS(b1,IDS_TITLEFMT), drv, root->fs);
+ wsprintfW(root->entry.data.cFileName, sTitleFmt, drv, root->fs);
root->entry.data.dwFileAttributes = FILE_ATTRIBUTE_DIRECTORY;
diff --git a/programs/winefile/winefile.rc b/programs/winefile/winefile.rc
index 3854393..4dd4d43 100644
--- a/programs/winefile/winefile.rc
+++ b/programs/winefile/winefile.rc
@@ -102,7 +102,6 @@ STRINGTABLE
IDS_UNIXFS "unixfs"
IDS_DESKTOP "#msgctxt#display name#Desktop"
IDS_SHELL "Shell"
- IDS_TITLEFMT "%s - %s"
IDS_NO_IMPL "Not yet implemented"
IDS_WINE_FILE "Wine File"
}
--
1.7.5.4
More information about the wine-patches
mailing list