Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NetworkManager-l2tp
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CeRiAl
NetworkManager-l2tp
Commits
01bb644c
Commit
01bb644c
authored
Nov 26, 2012
by
Sergey Prokhorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fix internationalization of nm-l2tp-service (ported from pptp plugin)
parent
bb484855
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Makefile.am
src/Makefile.am
+1
-0
nm-l2tp-service.c
src/nm-l2tp-service.c
+9
-2
No files found.
src/Makefile.am
View file @
01bb644c
...
...
@@ -13,6 +13,7 @@ AM_CPPFLAGS = \
-DLIBEXECDIR
=
\"
"
$(libexecdir)
"
\"
\
-DLOCALSTATEDIR
=
\"
"
$(localstatedir)
"
\"
\
-DDATADIR
=
\"
$(datadir)
\"
\
-DNM_PPTP_LOCALEDIR
=
\"
$(datadir)
/locale
\"
\
-DPLUGINDIR
=
\"
$(PPPD_PLUGIN_DIR)
\"
libexec_PROGRAMS
=
nm-l2tp-service
...
...
src/nm-l2tp-service.c
View file @
01bb644c
...
...
@@ -1636,9 +1636,16 @@ main (int argc, char *argv[])
g_type_init
();
/* locale will be set according to environment LC_* variables */
setlocale
(
LC_ALL
,
""
);
bindtextdomain
(
GETTEXT_PACKAGE
,
NM_L2TP_LOCALEDIR
);
bind_textdomain_codeset
(
GETTEXT_PACKAGE
,
"UTF-8"
);
textdomain
(
GETTEXT_PACKAGE
);
/* Parse options */
opt_ctx
=
g_option_context_new
(
""
);
g_option_context_set_translation_domain
(
opt_ctx
,
"UTF-8"
);
opt_ctx
=
g_option_context_new
(
NULL
);
g_option_context_set_translation_domain
(
opt_ctx
,
GETTEXT_PACKAGE
);
g_option_context_set_ignore_unknown_options
(
opt_ctx
,
FALSE
);
g_option_context_set_help_enabled
(
opt_ctx
,
TRUE
);
g_option_context_add_main_entries
(
opt_ctx
,
options
,
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