Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f108b034
Commit
f108b034
authored
Aug 23, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Aug 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Move strings used by StrFromTimeInterval to resources.
parent
1ee7095e
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
53 additions
and
8 deletions
+53
-8
resource.h
dlls/shlwapi/resource.h
+3
-0
shlwapi_De.rc
dlls/shlwapi/shlwapi_De.rc
+3
-0
shlwapi_En.rc
dlls/shlwapi/shlwapi_En.rc
+3
-0
shlwapi_Eo.rc
dlls/shlwapi/shlwapi_Eo.rc
+3
-0
shlwapi_Es.rc
dlls/shlwapi/shlwapi_Es.rc
+3
-0
shlwapi_Fi.rc
dlls/shlwapi/shlwapi_Fi.rc
+3
-0
shlwapi_Fr.rc
dlls/shlwapi/shlwapi_Fr.rc
+3
-0
shlwapi_Hu.rc
dlls/shlwapi/shlwapi_Hu.rc
+3
-0
shlwapi_It.rc
dlls/shlwapi/shlwapi_It.rc
+3
-0
shlwapi_Ja.rc
dlls/shlwapi/shlwapi_Ja.rc
+3
-0
shlwapi_Ko.rc
dlls/shlwapi/shlwapi_Ko.rc
+3
-0
shlwapi_Nl.rc
dlls/shlwapi/shlwapi_Nl.rc
+3
-0
shlwapi_No.rc
dlls/shlwapi/shlwapi_No.rc
+3
-0
shlwapi_Pl.rc
dlls/shlwapi/shlwapi_Pl.rc
+3
-0
shlwapi_Pt.rc
dlls/shlwapi/shlwapi_Pt.rc
+3
-0
shlwapi_Tr.rc
dlls/shlwapi/shlwapi_Tr.rc
+3
-0
string.c
dlls/shlwapi/string.c
+5
-8
No files found.
dlls/shlwapi/resource.h
View file @
f108b034
...
...
@@ -21,6 +21,9 @@
#define WINE_SHLWAPI_RESOURCE_H
#define IDS_BYTES_FORMAT 64
#define IDS_TIME_INTERVAL_HOURS 65
#define IDS_TIME_INTERVAL_MINUTES 66
#define IDS_TIME_INTERVAL_SECONDS 67
/* These numbers match native ID's and shouldn't be abitrarily changed */
#define IDD_ERR_DIALOG 0x1200
...
...
dlls/shlwapi/shlwapi_De.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld Bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_En.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Eo.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Es.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Fi.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Fr.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Hu.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_It.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Ja.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 9, "MS UI Gothic"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Ko.rc
View file @
f108b034
...
...
@@ -38,4 +38,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld 바이트"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Nl.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_No.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld byte"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Pl.rc
View file @
f108b034
...
...
@@ -38,4 +38,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bajtw"
IDS_TIME_INTERVAL_HOURS " godz."
IDS_TIME_INTERVAL_MINUTES " min."
IDS_TIME_INTERVAL_SECONDS " s"
}
dlls/shlwapi/shlwapi_Pt.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/shlwapi_Tr.rc
View file @
f108b034
...
...
@@ -37,4 +37,7 @@ FONT 8, "MS Shell Dlg"
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
IDS_TIME_INTERVAL_HOURS " hr"
IDS_TIME_INTERVAL_MINUTES " min"
IDS_TIME_INTERVAL_SECONDS " sec"
}
dlls/shlwapi/string.c
View file @
f108b034
...
...
@@ -1996,14 +1996,14 @@ inline static int SHLWAPI_FormatSignificant(LPWSTR lpszNum, int dwDigits)
* Internal helper for StrFromTimeIntervalW.
*/
static
int
WINAPI
SHLWAPI_WriteTimeClass
(
LPWSTR
lpszOut
,
DWORD
dwValue
,
LPCWSTR
lpszClass
,
int
iDigits
)
UINT
uClassStringId
,
int
iDigits
)
{
WCHAR
szBuff
[
64
],
*
szOut
=
szBuff
+
32
;
szOut
=
SHLWAPI_WriteReverseNum
(
szOut
,
dwValue
);
iDigits
=
SHLWAPI_FormatSignificant
(
szOut
+
1
,
iDigits
);
*
szOut
=
' '
;
strcpyW
(
szBuff
+
32
,
lpszClass
);
LoadStringW
(
shlwapi_hInstance
,
uClassStringId
,
szBuff
+
32
,
32
);
strcatW
(
lpszOut
,
szOut
);
return
iDigits
;
}
...
...
@@ -2064,9 +2064,6 @@ INT WINAPI StrFromTimeIntervalA(LPSTR lpszStr, UINT cchMax, DWORD dwMS,
INT
WINAPI
StrFromTimeIntervalW
(
LPWSTR
lpszStr
,
UINT
cchMax
,
DWORD
dwMS
,
int
iDigits
)
{
static
const
WCHAR
szHr
[]
=
{
' '
,
'h'
,
'r'
,
'\0'
};
static
const
WCHAR
szMin
[]
=
{
' '
,
'm'
,
'i'
,
'n'
,
'\0'
};
static
const
WCHAR
szSec
[]
=
{
' '
,
's'
,
'e'
,
'c'
,
'\0'
};
INT
iRet
=
0
;
TRACE
(
"(%p,%d,%ld,%d)
\n
"
,
lpszStr
,
cchMax
,
dwMS
,
iDigits
);
...
...
@@ -2092,13 +2089,13 @@ INT WINAPI StrFromTimeIntervalW(LPWSTR lpszStr, UINT cchMax, DWORD dwMS,
szCopy
[
0
]
=
'\0'
;
if
(
dwHours
)
iDigits
=
SHLWAPI_WriteTimeClass
(
szCopy
,
dwHours
,
szHr
,
iDigits
);
iDigits
=
SHLWAPI_WriteTimeClass
(
szCopy
,
dwHours
,
IDS_TIME_INTERVAL_HOURS
,
iDigits
);
if
(
dwMinutes
&&
iDigits
)
iDigits
=
SHLWAPI_WriteTimeClass
(
szCopy
,
dwMinutes
,
szMin
,
iDigits
);
iDigits
=
SHLWAPI_WriteTimeClass
(
szCopy
,
dwMinutes
,
IDS_TIME_INTERVAL_MINUTES
,
iDigits
);
if
(
iDigits
)
/* Always write seconds if we have significant digits */
SHLWAPI_WriteTimeClass
(
szCopy
,
dwMS
,
szSec
,
iDigits
);
SHLWAPI_WriteTimeClass
(
szCopy
,
dwMS
,
IDS_TIME_INTERVAL_SECONDS
,
iDigits
);
lstrcpynW
(
lpszStr
,
szCopy
,
cchMax
);
iRet
=
strlenW
(
lpszStr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment