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
32b310c7
Commit
32b310c7
authored
Aug 24, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: If the message context is 'do not translate', then don't add the string to the PO file.
parent
7f9972a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
po.c
tools/wrc/po.c
+7
-0
No files found.
tools/wrc/po.c
View file @
32b310c7
...
...
@@ -503,6 +503,7 @@ static po_file_t read_po_file( const char *name )
static
void
add_po_string
(
po_file_t
po
,
const
string_t
*
msgid
,
const
string_t
*
msgstr
,
const
language_t
*
lang
)
{
static
const
char
dnt
[]
=
"do not translate"
;
po_message_t
msg
;
po_message_iterator_t
iterator
;
int
codepage
;
...
...
@@ -512,6 +513,12 @@ static void add_po_string( po_file_t po, const string_t *msgid, const string_t *
id_buffer
=
id
=
convert_msgid_ascii
(
msgid
,
1
);
context
=
get_message_context
(
&
id
);
if
(
context
&&
strcmp
(
context
,
dnt
)
==
0
)
{
/* This string should not be translated */
free
(
id_buffer
);
return
;
}
if
(
msgstr
)
{
...
...
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