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
9b86c6a9
Commit
9b86c6a9
authored
Oct 04, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmc: Load translations from mo files instead of po.
parent
d6057e64
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
188 additions
and
72 deletions
+188
-72
Make.rules.in
Make.rules.in
+1
-1
po.c
tools/wmc/po.c
+175
-71
utils.c
tools/wmc/utils.c
+11
-0
utils.h
tools/wmc/utils.h
+1
-0
No files found.
Make.rules.in
View file @
9b86c6a9
...
@@ -63,7 +63,7 @@ filter: dummy
...
@@ -63,7 +63,7 @@ filter: dummy
$(FLEX) $(LEXFLAGS) -o$@ $<
$(FLEX) $(LEXFLAGS) -o$@ $<
.mc.res:
.mc.res:
$(WMC) -U -O res
-P $(top_srcdir)/po
-o $@ $<
$(WMC) -U -O res
$(PORCFLAGS)
-o $@ $<
.rc.res:
.rc.res:
$(WRC) $(RCFLAGS) -o $@ $<
$(WRC) $(RCFLAGS) -o $@ $<
...
...
tools/wmc/po.c
View file @
9b86c6a9
This diff is collapsed.
Click to expand it.
tools/wmc/utils.c
View file @
9b86c6a9
...
@@ -88,6 +88,17 @@ void internal_error(const char *file, int line, const char *s, ...)
...
@@ -88,6 +88,17 @@ void internal_error(const char *file, int line, const char *s, ...)
exit
(
3
);
exit
(
3
);
}
}
void
fatal_perror
(
const
char
*
msg
,
...
)
{
va_list
valist
;
va_start
(
valist
,
msg
);
fprintf
(
stderr
,
"Error: "
);
vfprintf
(
stderr
,
msg
,
valist
);
perror
(
" "
);
va_end
(
valist
);
exit
(
2
);
}
void
error
(
const
char
*
s
,
...)
void
error
(
const
char
*
s
,
...)
{
{
va_list
ap
;
va_list
ap
;
...
...
tools/wmc/utils.h
View file @
9b86c6a9
...
@@ -38,6 +38,7 @@ int mcy_error(const char *s, ...) __attribute__((format (printf, 1, 2)));
...
@@ -38,6 +38,7 @@ int mcy_error(const char *s, ...) __attribute__((format (printf, 1, 2)));
int
xyyerror
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
int
xyyerror
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
int
mcy_warning
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
int
mcy_warning
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
void
internal_error
(
const
char
*
file
,
int
line
,
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
3
,
4
)));
void
internal_error
(
const
char
*
file
,
int
line
,
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
3
,
4
)));
void
fatal_perror
(
const
char
*
msg
,
...
)
__attribute__
((
format
(
printf
,
1
,
2
),
noreturn
));
void
error
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
void
error
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
void
warning
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
void
warning
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
...
...
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