Merge lp:~therve/landscape-client/i18n-settings into lp:~landscape/landscape-client/trunk

Proposed by Thomas Herve
Status: Merged
Approved by: Alberto Donato
Approved revision: 548
Merged at revision: 543
Proposed branch: lp:~therve/landscape-client/i18n-settings
Merge into: lp:~landscape/landscape-client/trunk
Diff against target: 580 lines (+295/-39)
12 files modified
applications/landscape-client-settings.desktop.in (+3/-3)
debian/rules (+0/-1)
landscape/ui/controller/app.py (+7/-5)
landscape/ui/controller/configuration.py (+12/-9)
landscape/ui/view/configuration.py (+24/-6)
po/POTFILES.in (+6/-0)
po/fr.po (+116/-8)
po/landscape-client.pot (+116/-1)
polkit-1/com.canonical.LandscapeClientSettings.policy.in (+2/-2)
scripts/landscape-client-settings-ui (+4/-0)
setup.cfg (+5/-0)
setup.py (+0/-4)
To merge this branch: bzr merge lp:~therve/landscape-client/i18n-settings
Reviewer Review Type Date Requested Status
Alberto Donato (community) Approve
Mike Milner (community) Approve
Review via email: mp+99030@code.launchpad.net

Description of the change

This adds i18n to the settings UI itself, including policy file, glade file, and desktop file. Most of the infrastructure being in place it was easier than the previous ones.

To post a comment you must log in.
Revision history for this message
Mike Milner (milner) wrote :

Looks good! Can't make sense of your Parisian French though :) +1

review: Approve
Revision history for this message
Alberto Donato (ack) wrote :

Looks good! +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file 'applications/landscape-client-settings.desktop' => 'applications/landscape-client-settings.desktop.in'
--- applications/landscape-client-settings.desktop 2012-03-09 14:49:04 +0000
+++ applications/landscape-client-settings.desktop.in 2012-03-23 14:26:24 +0000
@@ -1,6 +1,6 @@
1[Desktop Entry]1[Desktop Entry]
2Name=Management Service2_Name=Management Service
3Comment=Management Service Preferences3_Comment=Management Service Preferences
4Exec=landscape-client-ui-install4Exec=landscape-client-ui-install
5Icon=preferences-management-service5Icon=preferences-management-service
6Terminal=False6Terminal=False
@@ -13,5 +13,5 @@
13X-GNOME-Bugzilla-Component=sample13X-GNOME-Bugzilla-Component=sample
14X-GNOME-Bugzilla-Version=1.0.014X-GNOME-Bugzilla-Version=1.0.0
15X-GNOME-Settings-Panel=sample15X-GNOME-Settings-Panel=sample
16X-Ubuntu-Gettext-Domain=gnome-control-center-2.0
17X-GNOME-Keywords=device;system;information;memory;processor;version;default;application;fallback;preferred;16X-GNOME-Keywords=device;system;information;memory;processor;version;default;application;fallback;preferred;
17X-Ubuntu-Gettext-Domain=landscape-client
1818
=== modified file 'debian/rules'
--- debian/rules 2012-03-22 09:35:43 +0000
+++ debian/rules 2012-03-23 14:26:24 +0000
@@ -35,7 +35,6 @@
35 dh_testdir35 dh_testdir
36 sed -i -e "s/^DEBIAN_REVISION = \"\"/DEBIAN_REVISION = \"-$(revision)\"/g" landscape/__init__.py36 sed -i -e "s/^DEBIAN_REVISION = \"\"/DEBIAN_REVISION = \"-$(revision)\"/g" landscape/__init__.py
37 python setup.py build37 python setup.py build
38 python setup.py build_i18n
39 make -C apt-update38 make -C apt-update
40 touch build-stamp39 touch build-stamp
4140
4241
=== modified file 'landscape/ui/controller/app.py'
--- landscape/ui/controller/app.py 2012-03-14 12:05:30 +0000
+++ landscape/ui/controller/app.py 2012-03-23 14:26:24 +0000
@@ -1,5 +1,7 @@
1import sys1import sys
22
3from gettext import gettext as _
4
3from gi.repository import Gio, Gtk, Notify5from gi.repository import Gio, Gtk, Notify
46
5from landscape.ui.model.configuration.proxy import ConfigurationProxy7from landscape.ui.model.configuration.proxy import ConfigurationProxy
@@ -42,18 +44,18 @@
4244
43 def on_succeed(self, action=None):45 def on_succeed(self, action=None):
44 if action:46 if action:
45 message = "%s was successful." % action47 message = action
46 else:48 else:
47 message = "Success"49 message = _("Success.")
48 notification = Notify.Notification.new(NOTIFY_ID, message,50 notification = Notify.Notification.new(NOTIFY_ID, message,
49 "dialog-information")51 "dialog-information")
50 notification.show()52 notification.show()
5153
52 def on_fail(self, action=None):54 def on_fail(self, action=None):
53 if action:55 if action:
54 message = "%s failed." % action56 message = action
55 else:57 else:
56 message = "Failure."58 message = _("Failure.")
57 notification = Notify.Notification.new(NOTIFY_ID, message,59 notification = Notify.Notification.new(NOTIFY_ID, message,
58 "dialog-information")60 "dialog-information")
59 notification.show()61 notification.show()
@@ -85,5 +87,5 @@
85 controller.exit(asynchronous=asynchronous)87 controller.exit(asynchronous=asynchronous)
86 self.settings_dialog.destroy()88 self.settings_dialog.destroy()
87 else:89 else:
88 self.on_fail(action="Authentication")90 self.on_fail(action=_("Authentication failed"))
89 sys.stderr.write("Authentication failed.\n")91 sys.stderr.write("Authentication failed.\n")
9092
=== modified file 'landscape/ui/controller/configuration.py'
--- landscape/ui/controller/configuration.py 2012-03-14 13:48:18 +0000
+++ landscape/ui/controller/configuration.py 2012-03-23 14:26:24 +0000
@@ -1,5 +1,8 @@
1import logging
2
3from gettext import gettext as _
4
1from landscape.ui.constants import NOT_MANAGED, CANONICAL_MANAGED5from landscape.ui.constants import NOT_MANAGED, CANONICAL_MANAGED
2import logging
36
4from landscape.ui.model.registration.proxy import RegistrationProxy7from landscape.ui.model.registration.proxy import RegistrationProxy
5from landscape.ui.model.configuration.state import StateError8from landscape.ui.model.configuration.state import StateError
@@ -62,7 +65,7 @@
62 "changes to revert.")65 "changes to revert.")
6366
64 def persist(self, on_notify, on_error, on_succeed, on_fail):67 def persist(self, on_notify, on_error, on_succeed, on_fail):
65 "Persist settings via the configuration object."68 """Persist settings via the configuration object."""
66 try:69 try:
67 self._configuration.persist()70 self._configuration.persist()
68 except StateError:71 except StateError:
@@ -81,10 +84,10 @@
81 """84 """
8285
83 def registration_fail_wrapper():86 def registration_fail_wrapper():
84 fail_method(action="Registering client")87 fail_method(action=_("Registering client failed"))
8588
86 def registration_succeed_wrapper():89 def registration_succeed_wrapper():
87 succeed_method(action="Registering client")90 succeed_method(action=_("Registering client was successful"))
8891
89 registration = RegistrationProxy(92 registration = RegistrationProxy(
90 on_register_notify=notify_method,93 on_register_notify=notify_method,
@@ -92,10 +95,10 @@
92 on_register_succeed=registration_succeed_wrapper,95 on_register_succeed=registration_succeed_wrapper,
93 on_register_fail=registration_fail_wrapper)96 on_register_fail=registration_fail_wrapper)
94 if self._configuration.management_type == CANONICAL_MANAGED:97 if self._configuration.management_type == CANONICAL_MANAGED:
95 notify_method("Attempting to register at %s" %98 notify_method(_("Attempting to register at %s") %
96 self._configuration.hosted_landscape_host)99 self._configuration.hosted_landscape_host)
97 else:100 else:
98 notify_method("Attempting to register at %s" %101 notify_method(_("Attempting to register at %s") %
99 self._configuration.local_landscape_host)102 self._configuration.local_landscape_host)
100 registration.register(self._configuration.get_config_filename())103 registration.register(self._configuration.get_config_filename())
101 registration.exit()104 registration.exit()
@@ -106,14 +109,14 @@
106 """109 """
107110
108 def disabling_fail_wrapper():111 def disabling_fail_wrapper():
109 fail_method(action="Disabling client")112 fail_method(action=_("Disabling client failed"))
110113
111 def disabling_succeed_wrapper():114 def disabling_succeed_wrapper():
112 succeed_method(action="Disabling client")115 succeed_method(action=_("Disabling client was successful"))
113116
114 registration = RegistrationProxy(117 registration = RegistrationProxy(
115 on_disable_succeed=disabling_succeed_wrapper,118 on_disable_succeed=disabling_succeed_wrapper,
116 on_disable_fail=disabling_fail_wrapper)119 on_disable_fail=disabling_fail_wrapper)
117 notify_method("Attempting to disable landscape client.")120 notify_method(_("Attempting to disable landscape client."))
118 registration.disable()121 registration.disable()
119 registration.exit()122 registration.exit()
120123
=== modified file 'landscape/ui/view/configuration.py'
--- landscape/ui/view/configuration.py 2012-03-16 14:57:32 +0000
+++ landscape/ui/view/configuration.py 2012-03-23 14:26:24 +0000
@@ -1,5 +1,7 @@
1import os1import os
22
3from gettext import gettext as _
4
3from gi.repository import GObject, Gtk5from gi.repository import GObject, Gtk
46
5from landscape.ui.constants import (7from landscape.ui.constants import (
@@ -14,15 +16,10 @@
14 """16 """
1517
16 GLADE_FILE = "landscape-client-settings.glade"18 GLADE_FILE = "landscape-client-settings.glade"
17 NO_SERVICE_TEXT = "None"
18 HOSTED_SERVICE_TEXT = "Landscape - hosted by Canonical"
19 LOCAL_SERVICE_TEXT = "Landscape - dedicated server"
20 REGISTER_BUTTON_TEXT = "Register"
21 DISABLE_BUTTON_TEXT = "Disable"
2219
23 def __init__(self, controller):20 def __init__(self, controller):
24 super(ClientSettingsDialog, self).__init__(21 super(ClientSettingsDialog, self).__init__(
25 title="Management Service",22 title=_("Management Service"),
26 flags=Gtk.DialogFlags.MODAL)23 flags=Gtk.DialogFlags.MODAL)
27 self.set_default_icon_name("preferences-management-service")24 self.set_default_icon_name("preferences-management-service")
28 self.set_resizable(False)25 self.set_resizable(False)
@@ -33,6 +30,26 @@
33 # One extra revert to reset after loading data30 # One extra revert to reset after loading data
34 self.controller.revert()31 self.controller.revert()
3532
33 @property
34 def NO_SERVICE_TEXT(self):
35 return _("None")
36
37 @property
38 def HOSTED_SERVICE_TEXT(self):
39 return _("Landscape - hosted by Canonical")
40
41 @property
42 def LOCAL_SERVICE_TEXT(self):
43 return _("Landscape - dedicated server")
44
45 @property
46 def REGISTER_BUTTON_TEXT(self):
47 return _("Register")
48
49 @property
50 def DISABLE_BUTTON_TEXT(self):
51 return _("Disable")
52
36 def _set_use_type_combobox_from_controller(self):53 def _set_use_type_combobox_from_controller(self):
37 """54 """
38 Load the persisted L{management_type} from the controller and set the55 Load the persisted L{management_type} from the controller and set the
@@ -150,6 +167,7 @@
150167
151 def setup_ui(self):168 def setup_ui(self):
152 self._builder = Gtk.Builder()169 self._builder = Gtk.Builder()
170 self._builder.set_translation_domain("landscape-client")
153 self._builder.add_from_file(171 self._builder.add_from_file(
154 os.path.join(172 os.path.join(
155 os.path.dirname(__file__), "ui", self.GLADE_FILE))173 os.path.dirname(__file__), "ui", self.GLADE_FILE))
156174
=== modified file 'po/POTFILES.in'
--- po/POTFILES.in 2012-03-22 09:11:31 +0000
+++ po/POTFILES.in 2012-03-23 14:26:24 +0000
@@ -1,2 +1,8 @@
1[encoding: UTF-8]1[encoding: UTF-8]
2landscape/ui/controller/app.py
3landscape/ui/controller/configuration.py
4landscape/ui/view/configuration.py
5landscape/ui/view/ui/landscape-client-settings.glade
6applications/landscape-client-settings.desktop.in
7polkit-1/com.canonical.LandscapeClientSettings.policy.in
2scripts/landscape-client-ui-install8scripts/landscape-client-ui-install
39
=== modified file 'po/fr.po'
--- po/fr.po 2012-03-22 15:11:27 +0000
+++ po/fr.po 2012-03-23 14:26:24 +0000
@@ -8,8 +8,8 @@
8msgstr ""8msgstr ""
9"Project-Id-Version: PACKAGE VERSION\n"9"Project-Id-Version: PACKAGE VERSION\n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2012-03-22 10:33+0100\n"11"POT-Creation-Date: 2012-03-23 11:12+0100\n"
12"PO-Revision-Date: 2012-03-22 15:32+0100\n"12"PO-Revision-Date: 2012-03-23 11:25+0100\n"
13"Last-Translator: Thomas Hervé <thomas.herve@canonical.com>\n"13"Last-Translator: Thomas Hervé <thomas.herve@canonical.com>\n"
14"Language-Team: français <>\n"14"Language-Team: français <>\n"
15"Language: \n"15"Language: \n"
@@ -18,27 +18,135 @@
18"Content-Transfer-Encoding: 8bit\n"18"Content-Transfer-Encoding: 8bit\n"
19"Plural-Forms: nplurals=2; plural=(n!=1);\n"19"Plural-Forms: nplurals=2; plural=(n!=1);\n"
2020
21#: ../scripts/landscape-client-ui-install:4921#: ../landscape/ui/controller/app.py:49
22msgid "Success."
23msgstr "Réussi."
24
25#: ../landscape/ui/controller/app.py:58
26msgid "Failure."
27msgstr "Echoué."
28
29#: ../landscape/ui/controller/app.py:90
30msgid "Authentication failed"
31msgstr "L'authentification a échoué"
32
33#: ../landscape/ui/controller/configuration.py:87
34msgid "Registering client failed"
35msgstr "L'enregistrement du client a échoué"
36
37#: ../landscape/ui/controller/configuration.py:90
38msgid "Registering client was successful"
39msgstr "L'enregistrement du client a réussi"
40
41#: ../landscape/ui/controller/configuration.py:98
42#: ../landscape/ui/controller/configuration.py:101
43#, python-format
44msgid "Attempting to register at %s"
45msgstr "Tentative d'enregistrement sur %s"
46
47#: ../landscape/ui/controller/configuration.py:112
48msgid "Disabling client failed"
49msgstr "Le client n'a pas pu être désactivé"
50
51#: ../landscape/ui/controller/configuration.py:115
52msgid "Disabling client was successful"
53msgstr "Le client a été désactivé avec succès"
54
55#: ../landscape/ui/controller/configuration.py:120
56msgid "Attempting to disable landscape client."
57msgstr "Tentative de désactivation du client Landscape."
58
59#: ../landscape/ui/view/configuration.py:19
60msgid "None"
61msgstr "Aucun"
62
63#: ../landscape/ui/view/configuration.py:20
64msgid "Landscape - hosted by Canonical"
65msgstr "Landscape - hébergé par Canonical"
66
67#: ../landscape/ui/view/configuration.py:21
68msgid "Landscape - dedicated server"
69msgstr "Landscape - serveur dédié"
70
71#: ../landscape/ui/view/configuration.py:22
72msgid "Register"
73msgstr "S'enregistrer"
74
75#: ../landscape/ui/view/configuration.py:23
76msgid "Disable"
77msgstr "Désactiver"
78
79#: ../landscape/ui/view/configuration.py:27
80#: ../applications/landscape-client-settings.desktop.in.h:1
81msgid "Management Service"
82msgstr "Service de gestion"
83
84#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:1
85msgid "Account name:"
86msgstr "Nom du compte:"
87
88#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:2
89msgid "Don't have an account?"
90msgstr "Vous n'avez pas de compte?"
91
92#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:3
93#: ../scripts/landscape-client-ui-install:52
22msgid "Find out more..."94msgid "Find out more..."
23msgstr "En apprendre plus..."95msgstr "En apprendre plus..."
2496
25#: ../scripts/landscape-client-ui-install:5297#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:4
98msgid "If you click \"Disable\" the Landscape client on this machine will be disabled. You can reenable it later by revisiting this dialog."
99msgstr "Si vous cliquez sur \"Désactiver\" le client Landscape sera désactivé sur cette machine. Vous pouvez le réactiver plus tard en rouvrant cette fenêtre de dialogue."
100
101#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:5
102msgid "Landscape is a remote administration service from Canonical. If you allow it, a Landcape server can monitor this computer's performance and send administration commands."
103msgstr "Landscape est un service de gestion à distance de Canonical. Si vous l'autorisez, un serveur Landscape peut surveiller les performance de cette machine et envoyer des commandes administratives."
104
105#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:6
106msgid "Landscape server hostname:"
107msgstr "Nom d'hôte du serveur Landscape:"
108
109#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:7
110msgid "Management service:"
111msgstr "Service de gestion:"
112
113#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:8
114msgid "Password:"
115msgstr "Mot de passe:"
116
117#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:9
118msgid "Sign up..."
119msgstr "S'inscrire..."
120
121#: ../applications/landscape-client-settings.desktop.in.h:2
122msgid "Management Service Preferences"
123msgstr "Préférences du service de gestion"
124
125#: ../polkit-1/com.canonical.LandscapeClientSettings.policy.in.h:1
126msgid "Allow the user to read and write Landscape Client settings."
127msgstr "Autorise l'utilisateur à lire et écrire la configuration du client Landscape."
128
129#: ../polkit-1/com.canonical.LandscapeClientSettings.policy.in.h:2
130msgid "System policy prevents you from reading and writing Landscape Client Settings."
131msgstr "Politique système vous empêchant de lire et d'écrire la configuration du client Landscape."
132
133#: ../scripts/landscape-client-ui-install:55
26msgid "Landscape client"134msgid "Landscape client"
27msgstr "Client Landscape"135msgstr "Client Landscape"
28136
29#: ../scripts/landscape-client-ui-install:53137#: ../scripts/landscape-client-ui-install:56
30msgid "Landscape is an easy to use systems management and monitoring service offered by Canonical that helps administrators manage multiple machines efficiently."138msgid "Landscape is an easy to use systems management and monitoring service offered by Canonical that helps administrators manage multiple machines efficiently."
31msgstr "Landscape est un système de gestion et de surveillance proposé en tant que service par Canonical, qui aide les administrateurs à gérer plusieurs machine efficacement."139msgstr "Landscape est un système de gestion et de surveillance proposé en tant que service par Canonical, qui aide les administrateurs à gérer plusieurs machine efficacement."
32140
33#: ../scripts/landscape-client-ui-install:56141#: ../scripts/landscape-client-ui-install:59
34msgid "You need to install Landscape client to be able to configure it. Do you want to install it now?"142msgid "You need to install Landscape client to be able to configure it. Do you want to install it now?"
35msgstr "Il faut installer le client Landscape pour le configurer. Voulez-vous l'installer maintenant?"143msgstr "Il faut installer le client Landscape pour le configurer. Voulez-vous l'installer maintenant?"
36144
37#: ../scripts/landscape-client-ui-install:58145#: ../scripts/landscape-client-ui-install:61
38msgid "Install Landscape client?"146msgid "Install Landscape client?"
39msgstr "Installer le client Landscape?"147msgstr "Installer le client Landscape?"
40148
41#: ../scripts/landscape-client-ui-install:59149#: ../scripts/landscape-client-ui-install:62
42msgid "Install"150msgid "Install"
43msgstr "Installer"151msgstr "Installer"
44152
45153
=== modified file 'po/landscape-client.pot'
--- po/landscape-client.pot 2012-03-22 15:11:27 +0000
+++ po/landscape-client.pot 2012-03-23 14:26:24 +0000
@@ -8,7 +8,7 @@
8msgstr ""8msgstr ""
9"Project-Id-Version: PACKAGE VERSION\n"9"Project-Id-Version: PACKAGE VERSION\n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2012-03-22 16:08+0100\n"11"POT-Creation-Date: 2012-03-23 11:12+0100\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,10 +17,125 @@
17"Content-Type: text/plain; charset=CHARSET\n"17"Content-Type: text/plain; charset=CHARSET\n"
18"Content-Transfer-Encoding: 8bit\n"18"Content-Transfer-Encoding: 8bit\n"
1919
20#: ../landscape/ui/controller/app.py:49
21msgid "Success."
22msgstr ""
23
24#: ../landscape/ui/controller/app.py:58
25msgid "Failure."
26msgstr ""
27
28#: ../landscape/ui/controller/app.py:90
29msgid "Authentication failed"
30msgstr ""
31
32#: ../landscape/ui/controller/configuration.py:87
33msgid "Registering client failed"
34msgstr ""
35
36#: ../landscape/ui/controller/configuration.py:90
37msgid "Registering client was successful"
38msgstr ""
39
40#: ../landscape/ui/controller/configuration.py:98
41#: ../landscape/ui/controller/configuration.py:101
42#, python-format
43msgid "Attempting to register at %s"
44msgstr ""
45
46#: ../landscape/ui/controller/configuration.py:112
47msgid "Disabling client failed"
48msgstr ""
49
50#: ../landscape/ui/controller/configuration.py:115
51msgid "Disabling client was successful"
52msgstr ""
53
54#: ../landscape/ui/controller/configuration.py:120
55msgid "Attempting to disable landscape client."
56msgstr ""
57
58#: ../landscape/ui/view/configuration.py:19
59msgid "None"
60msgstr ""
61
62#: ../landscape/ui/view/configuration.py:20
63msgid "Landscape - hosted by Canonical"
64msgstr ""
65
66#: ../landscape/ui/view/configuration.py:21
67msgid "Landscape - dedicated server"
68msgstr ""
69
70#: ../landscape/ui/view/configuration.py:22
71msgid "Register"
72msgstr ""
73
74#: ../landscape/ui/view/configuration.py:23
75msgid "Disable"
76msgstr ""
77
78#: ../landscape/ui/view/configuration.py:27
79#: ../applications/landscape-client-settings.desktop.in.h:1
80msgid "Management Service"
81msgstr ""
82
83#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:1
84msgid "Account name:"
85msgstr ""
86
87#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:2
88msgid "Don't have an account?"
89msgstr ""
90
91#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:3
20#: ../scripts/landscape-client-ui-install:5292#: ../scripts/landscape-client-ui-install:52
21msgid "Find out more..."93msgid "Find out more..."
22msgstr ""94msgstr ""
2395
96#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:4
97msgid ""
98"If you click \"Disable\" the Landscape client on this machine will be "
99"disabled. You can reenable it later by revisiting this dialog."
100msgstr ""
101
102#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:5
103msgid ""
104"Landscape is a remote administration service from Canonical. If you allow "
105"it, a Landcape server can monitor this computer's performance and send "
106"administration commands."
107msgstr ""
108
109#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:6
110msgid "Landscape server hostname:"
111msgstr ""
112
113#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:7
114msgid "Management service:"
115msgstr ""
116
117#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:8
118msgid "Password:"
119msgstr ""
120
121#: ../landscape/ui/view/ui/landscape-client-settings.glade.h:9
122msgid "Sign up..."
123msgstr ""
124
125#: ../applications/landscape-client-settings.desktop.in.h:2
126msgid "Management Service Preferences"
127msgstr ""
128
129#: ../polkit-1/com.canonical.LandscapeClientSettings.policy.in.h:1
130msgid "Allow the user to read and write Landscape Client settings."
131msgstr ""
132
133#: ../polkit-1/com.canonical.LandscapeClientSettings.policy.in.h:2
134msgid ""
135"System policy prevents you from reading and writing Landscape Client "
136"Settings."
137msgstr ""
138
24#: ../scripts/landscape-client-ui-install:55139#: ../scripts/landscape-client-ui-install:55
25msgid "Landscape client"140msgid "Landscape client"
26msgstr ""141msgstr ""
27142
=== renamed file 'polkit-1/com.canonical.LandscapeClientSettings.policy' => 'polkit-1/com.canonical.LandscapeClientSettings.policy.in'
--- polkit-1/com.canonical.LandscapeClientSettings.policy 2012-01-19 14:06:45 +0000
+++ polkit-1/com.canonical.LandscapeClientSettings.policy.in 2012-03-23 14:26:24 +0000
@@ -9,8 +9,8 @@
9 <icon_name>preferences-management-service</icon_name>9 <icon_name>preferences-management-service</icon_name>
1010
11 <action id="com.canonical.LandscapeClientSettings.configure">11 <action id="com.canonical.LandscapeClientSettings.configure">
12 <description>Allow the user to read and write Landscape Client settings.</description>12 <_description>Allow the user to read and write Landscape Client settings.</_description>
13 <message>System policy prevents you from reading and writing Landscape Client Settings.</message>13 <_message>System policy prevents you from reading and writing Landscape Client Settings.</_message>
14 <defaults>14 <defaults>
15 <allow_any>auth_admin_keep</allow_any>15 <allow_any>auth_admin_keep</allow_any>
16 <allow_inactive>auth_admin_keep</allow_inactive>16 <allow_inactive>auth_admin_keep</allow_inactive>
1717
=== modified file 'scripts/landscape-client-settings-ui'
--- scripts/landscape-client-settings-ui 2012-03-21 14:14:06 +0000
+++ scripts/landscape-client-settings-ui 2012-03-23 14:26:24 +0000
@@ -2,6 +2,8 @@
2import os2import os
3import sys3import sys
44
5from gettext import bindtextdomain, textdomain
6
5script_dir = os.path.abspath("scripts")7script_dir = os.path.abspath("scripts")
6if os.path.dirname(os.path.abspath(sys.argv[0])) == script_dir:8if os.path.dirname(os.path.abspath(sys.argv[0])) == script_dir:
7 sys.path.insert(0, "./")9 sys.path.insert(0, "./")
@@ -22,6 +24,8 @@
22 "running.\n")24 "running.\n")
23 sys.exit(1)25 sys.exit(1)
24 else:26 else:
27 bindtextdomain("landscape-client", "/usr/share/locale")
28 textdomain("landscape-client")
25 app = SettingsApplicationController(args=sys.argv[1:])29 app = SettingsApplicationController(args=sys.argv[1:])
26 try:30 try:
27 app.run(None)31 app.run(None)
2832
=== modified file 'setup.cfg'
--- setup.cfg 2012-03-22 09:11:31 +0000
+++ setup.cfg 2012-03-23 14:26:24 +0000
@@ -1,2 +1,7 @@
1[build]
2i18n=True
3
1[build_i18n]4[build_i18n]
2domain=landscape-client5domain=landscape-client
6xml_files=[("share/polkit-1/actions/", ["polkit-1/com.canonical.LandscapeClientSettings.policy.in"])]
7desktop_files=[("share/applications", ["applications/landscape-client-settings.desktop.in"])]
38
=== modified file 'setup.py'
--- setup.py 2012-03-22 15:11:27 +0000
+++ setup.py 2012-03-23 14:26:24 +0000
@@ -36,13 +36,9 @@
36 ("/usr/share/dbus-1/system-services/",36 ("/usr/share/dbus-1/system-services/",
37 ["dbus-1/com.canonical.LandscapeClientSettings.service",37 ["dbus-1/com.canonical.LandscapeClientSettings.service",
38 "dbus-1/com.canonical.LandscapeClientRegistration.service"]),38 "dbus-1/com.canonical.LandscapeClientRegistration.service"]),
39 ("/usr/share/polkit-1/actions",
40 ["polkit-1/com.canonical.LandscapeClientSettings.policy"]),
41 ("/etc/dbus-1/system.d/",39 ("/etc/dbus-1/system.d/",
42 ["dbus-1/com.canonical.LandscapeClientSettings.conf",40 ["dbus-1/com.canonical.LandscapeClientSettings.conf",
43 "dbus-1/com.canonical.LandscapeClientRegistration.conf"]),41 "dbus-1/com.canonical.LandscapeClientRegistration.conf"]),
44 ("/usr/share/applications/",
45 ["applications/landscape-client-settings.desktop"]),
46 ("/usr/share/icons/hicolor/scalable/apps/",42 ("/usr/share/icons/hicolor/scalable/apps/",
47 ["icons/preferences-management-service.svg"]),43 ["icons/preferences-management-service.svg"]),
48 ("/usr/share/glib-2.0/schemas/",44 ("/usr/share/glib-2.0/schemas/",

Subscribers

People subscribed via source and target branches

to all changes: