Merge lp:~ricsipontaz/ubuntu-calendar-app/fix-for-bug-1428501 into lp:ubuntu-calendar-app

Proposed by Richard Soml贸i on 2015-03-05
Status: Merged
Approved by: David Planella on 2015-04-17
Approved revision: 602
Merged at revision: 629
Proposed branch: lp:~ricsipontaz/ubuntu-calendar-app/fix-for-bug-1428501
Merge into: lp:ubuntu-calendar-app
Diff against target: 115 lines (+18/-15)
2 files modified
TimeLineHeader.qml (+2/-1)
po/com.ubuntu.calendar.pot (+16/-14)
To merge this branch: bzr merge lp:~ricsipontaz/ubuntu-calendar-app/fix-for-bug-1428501
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve on 2015-04-17
David Planella 2015-03-05 Approve on 2015-04-17
Kunal Parmar code review 2015-03-05 Approve on 2015-03-05
Review via email: mp+251878@code.launchpad.net

Commit Message

Localization of Week Number string

Description of the Change

In the week view the text which shows the actual week should be more translation friendly

For example:

In english: W9
Actual hungarian translation: h9 (which is not reflect what is it)
Better solution: 9. h or 9. h茅t

To post a comment you must log in.
Kunal Parmar (pkunal-parmar) wrote :

Code wise patch seems good

review: Approve (code review)

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~ricsipontaz/ubuntu-calendar-app/fix-for-bug-1428501/+merge/251878/+edit-commit-message

review: Needs Fixing (continuous-integration)
David Planella (dpm) wrote :

Thanks for the fix! Looks good to me, I'd just suggest to add a translator comment here. (See inline comment)

review: Needs Fixing
Richard Soml贸i (ricsipontaz) wrote :

And how can I add a translator comment?

Nekhelesh Ramananthan (nik90) wrote :

@Richard, just before the i18n.tr() line, you add a comment,

// TRANSLATORS: Some random translator comment

When you build and run the app, the pot file should be updated to include the TRANSLATORS comment.

Nekhelesh Ramananthan (nik90) wrote :

So what david wanted was something like,

// TRANSLATORS: W refers to Week, followed by the actual week number (%1)
text: i18n.tr("W%1").arg(root.weekNumber)

601. By Richard Soml贸i on 2015-04-16

Localization of Week Number string + Template update

Richard Soml贸i (ricsipontaz) wrote :

Thanks. I did it. Is there anything I need to do yet?

David Planella (dpm) wrote :

Thanks Richard, that's all that needs to be done. I.e. applying the fix, committing and pushing it. Then when everything is fine, a core app dev will approve the merge proposal, automated tests will be run against it and when they pass it will be merged to trunk.

That said, there is something that still needs to be fixed: the translator comment line uses tabs where the rest of the file uses spaces. Could you replace the tabs with spaces to be consistent with the rest of the code?

Thanks!

review: Needs Fixing
602. By Richard Soml贸i on 2015-04-17

Localization of Week Number string, updated the po template

Richard Soml贸i (ricsipontaz) wrote :

I have fixed it, hope everything is good now. :)

David Planella (dpm) wrote :

Looks good to me, thanks!

review: Approve
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'TimeLineHeader.qml'
2--- TimeLineHeader.qml 2015-02-19 13:50:29 +0000
3+++ TimeLineHeader.qml 2015-04-17 05:05:33 +0000
4@@ -45,7 +45,8 @@
5 Label{
6 id: weekNumLabel
7 objectName: "weeknumber"
8- text: i18n.tr("W") + root.weekNumber
9+ // TRANSLATORS: W refers to Week, followed by the actual week number (%1)
10+ text: i18n.tr("W%1").arg(root.weekNumber)
11 fontSize: "small"
12 height: units.gu(5)
13 width: parent.width
14
15=== modified file 'po/com.ubuntu.calendar.pot'
16--- po/com.ubuntu.calendar.pot 2015-02-18 19:11:05 +0000
17+++ po/com.ubuntu.calendar.pot 2015-04-17 05:05:33 +0000
18@@ -8,7 +8,7 @@
19 msgstr ""
20 "Project-Id-Version: \n"
21 "Report-Msgid-Bugs-To: \n"
22-"POT-Creation-Date: 2015-02-18 19:09+0000\n"
23+"POT-Creation-Date: 2015-04-17 07:04+0200\n"
24 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
25 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
26 "Language-Team: LANGUAGE <LL@li.org>\n"
27@@ -23,21 +23,21 @@
28 msgid "Today"
29 msgstr ""
30
31-#: ../AgendaView.qml:91
32+#: ../AgendaView.qml:92
33 msgid "No upcoming events"
34 msgstr ""
35
36-#: ../AgendaView.qml:94
37+#: ../AgendaView.qml:95
38 msgid "You have no calendars enabled"
39 msgstr ""
40
41-#: ../AgendaView.qml:104
42+#: ../AgendaView.qml:105
43 msgid "Enable calendars"
44 msgstr ""
45
46 #. TRANSLATORS: the first argument (%1) refers to a start time for an event,
47 #. while the second one (%2) refers to the end time
48-#: ../AgendaView.qml:166 ../EventBubble.qml:131
49+#: ../AgendaView.qml:168 ../EventBubble.qml:131
50 #, qt-format
51 msgid "%1 - %2"
52 msgstr ""
53@@ -59,7 +59,7 @@
54 msgstr[0] ""
55 msgstr[1] ""
56
57-#: ../CalendarChoicePopup.qml:33 ../EventActions.qml:41
58+#: ../CalendarChoicePopup.qml:33 ../EventActions.qml:59
59 msgid "Calendars"
60 msgstr ""
61
62@@ -69,11 +69,11 @@
63
64 #. TRANSLATORS: Please translate this string to 15 characters only.
65 #. Currently ,there is no way we can increase width of action menu currently.
66-#: ../CalendarChoicePopup.qml:51
67+#: ../CalendarChoicePopup.qml:51 ../EventActions.qml:36
68 msgid "Sync"
69 msgstr ""
70
71-#: ../CalendarChoicePopup.qml:51
72+#: ../CalendarChoicePopup.qml:51 ../EventActions.qml:36
73 msgid "Syncing"
74 msgstr ""
75
76@@ -101,7 +101,7 @@
77 #. TRANSLATORS: this is a time formatting string,
78 #. see http://qt-project.org/doc/qt-5/qml-qtqml-date.html#details for valid expressions.
79 #. It's used in the header of the month and week views
80-#: ../DayView.qml:58 ../MonthView.qml:56 ../WeekView.qml:60
81+#: ../DayView.qml:59 ../MonthView.qml:57 ../WeekView.qml:61
82 msgid "MMMM yyyy"
83 msgstr ""
84
85@@ -154,7 +154,7 @@
86 msgid "Edit this"
87 msgstr ""
88
89-#: ../EventActions.qml:32 ../NewEvent.qml:283
90+#: ../EventActions.qml:50 ../NewEvent.qml:283
91 msgid "New Event"
92 msgstr ""
93
94@@ -390,15 +390,17 @@
95 msgid "2 weeks"
96 msgstr ""
97
98-#: ../TimeLineHeader.qml:47
99-msgid "W"
100+#. TRANSLATORS: W refers to Week, followed by the actual week number (%1)
101+#: ../TimeLineHeader.qml:49
102+#, qt-format
103+msgid "W%1"
104 msgstr ""
105
106-#: ../TimeLineHeader.qml:59
107+#: ../TimeLineHeader.qml:61
108 msgid "All Day"
109 msgstr ""
110
111-#: ../YearView.qml:53
112+#: ../YearView.qml:54
113 #, qt-format
114 msgid "Year %1"
115 msgstr ""

Subscribers

People subscribed via source and target branches

to status/vote changes: