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
ff997946
Commit
ff997946
authored
Jan 26, 2012
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more gettext (to nm-l2tp-service mostly)
parent
72353521
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
65 deletions
+68
-65
POTFILES.in
po/POTFILES.in
+2
-1
nm-l2tp.c
properties/nm-l2tp.c
+12
-11
nm-l2tp-service.c
src/nm-l2tp-service.c
+54
-53
No files found.
po/POTFILES.in
View file @
ff997946
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
auth-dialog/gnome-two-password-dialog.c
auth-dialog/main.c
auth-dialog/vpn-password-dialog.c
nm-l2tp.desktop.in
properties/advanced-dialog.c
properties/ipsec-dialog.c
properties/nm-l2tp.c
properties/nm-l2tp-dialog.glade
src/nm-l2tp-service.c
...
...
properties/nm-l2tp.c
View file @
ff997946
...
...
@@ -184,7 +184,7 @@ advanced_dialog_response_cb (GtkWidget *dialog, gint response, gpointer user_dat
g_hash_table_destroy
(
priv
->
advanced
);
priv
->
advanced
=
advanced_dialog_new_hash_from_dialog
(
dialog
,
&
error
);
if
(
!
priv
->
advanced
)
{
g_message
(
"%s: error reading advanced settings: %s"
,
__func__
,
error
->
message
);
g_message
(
_
(
"%s: error reading advanced settings: %s"
)
,
__func__
,
error
->
message
);
g_error_free
(
error
);
}
advanced_dialog_close_cb
(
dialog
,
self
);
...
...
@@ -208,7 +208,7 @@ ipsec_dialog_response_cb (GtkWidget *dialog, gint response, gpointer user_data)
g_hash_table_destroy
(
priv
->
ipsec
);
priv
->
ipsec
=
ipsec_dialog_new_hash_from_dialog
(
dialog
,
&
error
);
if
(
!
priv
->
ipsec
)
{
g_message
(
"%s: error reading ipsec settings: %s"
,
__func__
,
error
->
message
);
g_message
(
_
(
"%s: error reading ipsec settings: %s"
)
,
__func__
,
error
->
message
);
g_error_free
(
error
);
}
ipsec_dialog_close_cb
(
dialog
,
self
);
...
...
@@ -229,7 +229,7 @@ advanced_button_clicked_cb (GtkWidget *button, gpointer user_data)
dialog
=
advanced_dialog_new
(
priv
->
advanced
);
if
(
!
dialog
)
{
g_warning
(
"%s: failed to create the Advanced dialog!"
,
__func__
);
g_warning
(
_
(
"%s: failed to create the Advanced dialog!"
)
,
__func__
);
return
;
}
...
...
@@ -259,7 +259,7 @@ ipsec_button_clicked_cb (GtkWidget *button, gpointer user_data)
dialog
=
ipsec_dialog_new
(
priv
->
ipsec
);
if
(
!
dialog
)
{
g_warning
(
"%s: failed to create the IPSEC dialog!"
,
__func__
);
g_warning
(
_
(
"%s: failed to create the IPSEC dialog!"
)
,
__func__
);
return
;
}
...
...
@@ -611,7 +611,7 @@ nm_vpn_plugin_ui_widget_interface_new (NMConnection *connection, GError **error)
object
=
NM_VPN_PLUGIN_UI_WIDGET_INTERFACE
(
g_object_new
(
L2TP_TYPE_PLUGIN_UI_WIDGET
,
NULL
));
if
(
!
object
)
{
g_set_error
(
error
,
L2TP_PLUGIN_UI_ERROR
,
0
,
"could not create l2tp object"
);
g_set_error
(
error
,
L2TP_PLUGIN_UI_ERROR
,
0
,
_
(
"could not create l2tp object"
)
);
return
NULL
;
}
...
...
@@ -623,11 +623,12 @@ nm_vpn_plugin_ui_widget_interface_new (NMConnection *connection, GError **error)
gtk_builder_set_translation_domain
(
priv
->
builder
,
GETTEXT_PACKAGE
);
if
(
!
gtk_builder_add_from_file
(
priv
->
builder
,
ui_file
,
error
))
{
g_warning
(
"Couldn't load builder file: %s"
,
g_warning
(
_
(
"Couldn't load builder file: %s"
)
,
error
&&
*
error
?
(
*
error
)
->
message
:
"(unknown)"
);
g_clear_error
(
error
);
g_set_error
(
error
,
L2TP_PLUGIN_UI_ERROR
,
0
,
"could not load required resources at %s"
,
ui_file
);
_
(
"could not load required resources at %s"
),
ui_file
);
g_free
(
ui_file
);
g_object_unref
(
object
);
return
NULL
;
...
...
@@ -636,7 +637,7 @@ nm_vpn_plugin_ui_widget_interface_new (NMConnection *connection, GError **error)
priv
->
widget
=
GTK_WIDGET
(
gtk_builder_get_object
(
priv
->
builder
,
"l2tp-vbox"
));
if
(
!
priv
->
widget
)
{
g_set_error
(
error
,
L2TP_PLUGIN_UI_ERROR
,
0
,
"could not load UI widget"
);
g_set_error
(
error
,
L2TP_PLUGIN_UI_ERROR
,
0
,
_
(
"could not load UI widget"
)
);
g_object_unref
(
object
);
return
NULL
;
}
...
...
@@ -731,7 +732,7 @@ import (NMVpnPluginUiInterface *iface, const char *path, GError **error)
g_set_error
(
error
,
L2TP_PLUGIN_UI_ERROR
,
L2TP_PLUGIN_UI_ERROR_FILE_NOT_L2TP
,
"unknown L2TP file extension"
);
_
(
"unknown L2TP file extension"
)
);
goto
out
;
}
...
...
@@ -739,7 +740,7 @@ import (NMVpnPluginUiInterface *iface, const char *path, GError **error)
g_set_error
(
error
,
L2TP_PLUGIN_UI_ERROR
,
L2TP_PLUGIN_UI_ERROR_FILE_NOT_L2TP
,
"unknown L2TP file extension"
);
_
(
"unknown L2TP file extension"
)
);
goto
out
;
}
...
...
@@ -751,7 +752,7 @@ import (NMVpnPluginUiInterface *iface, const char *path, GError **error)
g_set_error
(
error
,
L2TP_PLUGIN_UI_ERROR
,
L2TP_PLUGIN_UI_ERROR_FILE_NOT_READABLE
,
"not a valid L2TP configuration file"
);
_
(
"not a valid L2TP configuration file"
)
);
goto
out
;
}
...
...
src/nm-l2tp-service.c
View file @
ff997946
This diff is collapsed.
Click to expand it.
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