Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
702e8037
Commit
702e8037
authored
Apr 06, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not translate "". Fix the localized configuration file.
parent
19243633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
src/modules/entry.c
src/modules/entry.c
+16
-9
No files found.
src/modules/entry.c
View file @
702e8037
...
@@ -31,9 +31,16 @@
...
@@ -31,9 +31,16 @@
#include "modules/modules.h"
#include "modules/modules.h"
#include "config/configuration.h"
#include "config/configuration.h"
#include "libvlc.h"
#include "libvlc.h"
#ifndef ENABLE_NLS
# define dgettext(d, m) ((char *)(m))
static
const
char
*
mdgettext
(
const
char
*
domain
,
const
char
*
msg
)
{
assert
(
msg
);
#ifdef ENABLE_NLS
if
(
*
msg
)
/* Do not translate ""! */
return
dgettext
(
domain
,
msg
);
#endif
#endif
return
msg
;
}
static
void
vlc_module_destruct
(
gc_object_t
*
obj
)
static
void
vlc_module_destruct
(
gc_object_t
*
obj
)
{
{
...
@@ -232,7 +239,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
...
@@ -232,7 +239,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
const
char
*
domain
=
va_arg
(
ap
,
const
char
*
);
const
char
*
domain
=
va_arg
(
ap
,
const
char
*
);
if
(
domain
==
NULL
)
if
(
domain
==
NULL
)
domain
=
PACKAGE
;
domain
=
PACKAGE
;
module
->
psz_shortname
=
dgettext
(
domain
,
va_arg
(
ap
,
char
*
));
module
->
psz_shortname
=
m
dgettext
(
domain
,
va_arg
(
ap
,
char
*
));
break
;
break
;
}
}
...
@@ -241,7 +248,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
...
@@ -241,7 +248,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
const
char
*
domain
=
va_arg
(
ap
,
const
char
*
);
const
char
*
domain
=
va_arg
(
ap
,
const
char
*
);
if
(
domain
==
NULL
)
if
(
domain
==
NULL
)
domain
=
PACKAGE
;
domain
=
PACKAGE
;
module
->
psz_longname
=
dgettext
(
domain
,
va_arg
(
ap
,
char
*
));
module
->
psz_longname
=
m
dgettext
(
domain
,
va_arg
(
ap
,
char
*
));
break
;
break
;
}
}
...
@@ -250,7 +257,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
...
@@ -250,7 +257,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
const
char
*
domain
=
va_arg
(
ap
,
const
char
*
);
const
char
*
domain
=
va_arg
(
ap
,
const
char
*
);
if
(
domain
==
NULL
)
if
(
domain
==
NULL
)
domain
=
PACKAGE
;
domain
=
PACKAGE
;
module
->
psz_help
=
dgettext
(
domain
,
va_arg
(
ap
,
char
*
));
module
->
psz_help
=
m
dgettext
(
domain
,
va_arg
(
ap
,
char
*
));
break
;
break
;
}
}
...
@@ -361,9 +368,9 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
...
@@ -361,9 +368,9 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
if
(
domain
==
NULL
)
if
(
domain
==
NULL
)
domain
=
PACKAGE
;
domain
=
PACKAGE
;
item
->
psz_text
=
text
?
strdup
(
dgettext
(
domain
,
text
))
:
NULL
;
item
->
psz_text
=
text
?
strdup
(
m
dgettext
(
domain
,
text
))
:
NULL
;
item
->
psz_longtext
=
item
->
psz_longtext
=
longtext
?
strdup
(
dgettext
(
domain
,
longtext
))
:
NULL
;
longtext
?
strdup
(
m
dgettext
(
domain
,
longtext
))
:
NULL
;
break
;
break
;
}
}
...
@@ -414,7 +421,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
...
@@ -414,7 +421,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
{
{
for
(
size_t
i
=
0
;
i
<
len
;
i
++
)
for
(
size_t
i
=
0
;
i
<
len
;
i
++
)
dtext
[
i
]
=
text
[
i
]
?
dtext
[
i
]
=
text
[
i
]
?
strdup
(
dgettext
(
domain
,
text
[
i
]
)
)
:
strdup
(
mdgettext
(
domain
,
text
[
i
]
)
)
:
NULL
;
NULL
;
dtext
[
len
]
=
NULL
;
dtext
[
len
]
=
NULL
;
}
}
...
@@ -452,7 +459,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
...
@@ -452,7 +459,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
if
(
domain
==
NULL
)
if
(
domain
==
NULL
)
domain
=
PACKAGE
;
domain
=
PACKAGE
;
if
(
name
)
if
(
name
)
tabtext
[
item
->
i_action
]
=
strdup
(
dgettext
(
domain
,
name
));
tabtext
[
item
->
i_action
]
=
strdup
(
m
dgettext
(
domain
,
name
));
else
else
tabtext
[
item
->
i_action
]
=
NULL
;
tabtext
[
item
->
i_action
]
=
NULL
;
tabtext
[
item
->
i_action
+
1
]
=
NULL
;
tabtext
[
item
->
i_action
+
1
]
=
NULL
;
...
...
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