Merge lp:~leonardolemos/switchboard-plug-parental-controls/fix-1605981 into lp:~elementary-pantheon/switchboard-plug-parental-controls/trunk

Proposed by Leonardo Lemos
Status: Merged
Approved by: Danielle Foré
Approved revision: 205
Merged at revision: 205
Proposed branch: lp:~leonardolemos/switchboard-plug-parental-controls/fix-1605981
Merge into: lp:~elementary-pantheon/switchboard-plug-parental-controls/trunk
Diff against target: 191 lines (+50/-53)
2 files modified
po/pantheon-parental-controls-plug.pot (+44/-47)
src/client/Client.vala (+6/-6)
To merge this branch: bzr merge lp:~leonardolemos/switchboard-plug-parental-controls/fix-1605981
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+301583@code.launchpad.net

Commit message

* Fix strings plural form.
* Update translation template.

Description of the change

This branch fixes the strings plural form implementation, as described by the bug lp:1605981

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'po/pantheon-parental-controls-plug.pot'
--- po/pantheon-parental-controls-plug.pot 2016-07-29 22:19:28 +0000
+++ po/pantheon-parental-controls-plug.pot 2016-07-31 00:21:08 +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: 2016-07-29 15:18-0700\n"11"POT-Creation-Date: 2016-07-30 21:16-0300\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"
@@ -16,6 +16,7 @@
16"MIME-Version: 1.0\n"16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=UTF-8\n"17"Content-Type: text/plain; charset=UTF-8\n"
18"Content-Transfer-Encoding: 8bit\n"18"Content-Transfer-Encoding: 8bit\n"
19"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
1920
20#. //launchpad.net/switchboard-plug-parental-controls)21#. //launchpad.net/switchboard-plug-parental-controls)
21#. *22#. *
@@ -44,16 +45,8 @@
44msgid "Authentication is required to change parental control settings"45msgid "Authentication is required to change parental control settings"
45msgstr ""46msgstr ""
4647
47#: ../src/Widgets/ControlPage.vala:7448#: ../src/Widgets/AppChooser.vala:71
48msgid "General"49msgid "Search Applications"
49msgstr ""
50
51#: ../src/Widgets/ControlPage.vala:75
52msgid "Internet"
53msgstr ""
54
55#: ../src/Widgets/ControlPage.vala:76
56msgid "Applications"
57msgstr ""50msgstr ""
5851
59#: ../src/Widgets/UserList.vala:4252#: ../src/Widgets/UserList.vala:42
@@ -64,30 +57,6 @@
64msgid "Other Accounts"57msgid "Other Accounts"
65msgstr ""58msgstr ""
6659
67#: ../src/Widgets/WeekSpinBox.vala:44
68msgid "From:"
69msgstr ""
70
71#: ../src/Widgets/WeekSpinBox.vala:46
72msgid "To:"
73msgstr ""
74
75#: ../src/Widgets/InternetBox.vala:78
76msgid "Prevent %s from visiting these websites:"
77msgstr ""
78
79#: ../src/Widgets/InternetBox.vala:91
80msgid "Add URL"
81msgstr ""
82
83#: ../src/Widgets/InternetBox.vala:100
84msgid "Add a new URL, for example: google.com"
85msgstr ""
86
87#: ../src/Widgets/InternetBox.vala:101
88msgid "Invalid URL"
89msgstr ""
90
91#: ../src/Widgets/GeneralBox.vala:6260#: ../src/Widgets/GeneralBox.vala:62
92msgid "Allow this user to:"61msgid "Allow this user to:"
93msgstr ""62msgstr ""
@@ -124,8 +93,24 @@
124msgid "Weekends"93msgid "Weekends"
125msgstr ""94msgstr ""
12695
127#: ../src/Widgets/AppChooser.vala:7196#: ../src/Widgets/WeekSpinBox.vala:44
128msgid "Search Applications"97msgid "From:"
98msgstr ""
99
100#: ../src/Widgets/WeekSpinBox.vala:46
101msgid "To:"
102msgstr ""
103
104#: ../src/Widgets/ControlPage.vala:74
105msgid "General"
106msgstr ""
107
108#: ../src/Widgets/ControlPage.vala:75
109msgid "Internet"
110msgstr ""
111
112#: ../src/Widgets/ControlPage.vala:76
113msgid "Applications"
129msgstr ""114msgstr ""
130115
131#: ../src/Widgets/AppsBox.vala:97116#: ../src/Widgets/AppsBox.vala:97
@@ -148,6 +133,22 @@
148msgid "Allow access to these apps with admin permission:"133msgid "Allow access to these apps with admin permission:"
149msgstr ""134msgstr ""
150135
136#: ../src/Widgets/InternetBox.vala:78
137msgid "Prevent %s from visiting these websites:"
138msgstr ""
139
140#: ../src/Widgets/InternetBox.vala:91
141msgid "Add URL"
142msgstr ""
143
144#: ../src/Widgets/InternetBox.vala:100
145msgid "Add a new URL, for example: google.com"
146msgstr ""
147
148#: ../src/Widgets/InternetBox.vala:101
149msgid "Invalid URL"
150msgstr ""
151
151#: ../src/Plug.vala:72152#: ../src/Plug.vala:72
152msgid "Some settings require administrator rights to be changed"153msgid "Some settings require administrator rights to be changed"
153msgstr ""154msgstr ""
@@ -187,19 +188,15 @@
187188
188#: ../src/client/Client.vala:129189#: ../src/client/Client.vala:129
189msgid "%ld hour"190msgid "%ld hour"
190msgstr ""191msgid_plural "%ld hours"
191192msgstr[0] ""
192#: ../src/client/Client.vala:129193msgstr[1] ""
193msgid "%ld hours"
194msgstr ""
195194
196#: ../src/client/Client.vala:133195#: ../src/client/Client.vala:133
197msgid "%ld minute"196msgid "%ld minute"
198msgstr ""197msgid_plural "%ld minutes"
199198msgstr[0] ""
200#: ../src/client/Client.vala:133199msgstr[1] ""
201msgid "%ld minutes"
202msgstr ""
203200
204#: ../src/client/Client.vala:136201#: ../src/client/Client.vala:136
205msgid "This computer will lock after %s %s. %s"202msgid "This computer will lock after %s %s. %s"
206203
=== modified file 'src/client/Client.vala'
--- src/client/Client.vala 2016-02-25 18:47:22 +0000
+++ src/client/Client.vala 2016-07-31 00:21:08 +0000
@@ -64,7 +64,7 @@
6464
65 private void on_show_app_lock_dialog () {65 private void on_show_app_lock_dialog () {
66 var app_lock_dialog = new AppLock.AppLockDialog ();66 var app_lock_dialog = new AppLock.AppLockDialog ();
67 app_lock_dialog.show_all (); 67 app_lock_dialog.show_all ();
68 }68 }
6969
70 private void on_authorize (string user_name, string action_id) {70 private void on_authorize (string user_name, string action_id) {
@@ -93,7 +93,7 @@
93 warning ("%s\n", e.message);93 warning ("%s\n", e.message);
94 }94 }
95 }95 }
96 }); 96 });
97 }97 }
9898
99 private void on_launch (string[] args) {99 private void on_launch (string[] args) {
@@ -126,12 +126,12 @@
126 }126 }
127127
128 if (hours > 0) {128 if (hours > 0) {
129 hours_str = ngettext (_("%ld hour"), _("%ld hours"), (ulong)hours).printf ((ulong)hours);129 hours_str = ngettext ("%ld hour", "%ld hours", (ulong)hours).printf ((ulong)hours);
130 }130 }
131131
132 if (minutes > 0) {132 if (minutes > 0) {
133 minutes_str = ngettext (_("%ld minute"), _("%ld minutes"), (ulong)minutes).printf ((ulong)minutes);133 minutes_str = ngettext ("%ld minute", "%ld minutes", (ulong)minutes).printf ((ulong)minutes);
134 } 134 }
135135
136 string body = _("This computer will lock after %s %s. %s".printf (hours_str, minutes_str, info));136 string body = _("This computer will lock after %s %s. %s".printf (hours_str, minutes_str, info));
137137
@@ -143,4 +143,4 @@
143 send_notification (null, notification);143 send_notification (null, notification);
144 }144 }
145 }145 }
146 }
147\ No newline at end of file146\ No newline at end of file
147 }

Subscribers

People subscribed via source and target branches