Merge lp://qastaging/~dpm/ubuntu-calendar-app/i18n-improvements into lp://qastaging/ubuntu-calendar-app

Proposed by David Planella
Status: Merged
Approved by: Leo Arias
Approved revision: no longer in the source branch.
Merged at revision: 378
Proposed branch: lp://qastaging/~dpm/ubuntu-calendar-app/i18n-improvements
Merge into: lp://qastaging/ubuntu-calendar-app
Diff against target: 437 lines (+179/-74)
6 files modified
Defines.js (+6/-32)
EventDetails.qml (+15/-12)
LimitLabelDefines.qml (+7/-0)
RecurrenceLabelDefines.qml (+12/-0)
ReminderLabelDefines.qml (+14/-0)
po/com.ubuntu.calendar.pot (+125/-30)
To merge this branch: bzr merge lp://qastaging/~dpm/ubuntu-calendar-app/i18n-improvements
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Mihir Soni Approve
Review via email: mp+228938@code.qastaging.launchpad.net

Commit message

Several improvements and fixes to make strings translatable.

Description of the change

Several improvements and fixes to make strings translatable. Some translatable messages from Defines.js are yet not extracted and put in the .pot file.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Ok, it seems that the translatable strings in Defines.js cannot be extracted as there are defined inside strings. Can things like this be defined in another way so that it's not inside a string?

function getReminderLabels() {
    var object = Qt.createQmlObject('\
        import QtQuick 2.0;\
        import Ubuntu.Components 0.1;\
        QtObject {\
            property var reminderLabel:[i18n.tr("No Reminder"),\
                i18n.tr("5 minutes"),\
                i18n.tr("15 minutes"),\
                i18n.tr("30 minutes"),\
                i18n.tr("1 hour"),\
                i18n.tr("2 hours"),\
                i18n.tr("1 day"),\
                i18n.tr("2 days"),\
                i18n.tr("1 week"),\
                i18n.tr("2 weeks")];}', Qt.application, 'ReminderLabelObj');
    return object.reminderLabel;
}

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

FYI the test failures seen here seem to stem from an issue in trunk; we need to land https://code.launchpad.net/~gerlowskija/ubuntu-calendar-app/revised-fix-for-bug1334883/+merge/226049.

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

> Ok, it seems that the translatable strings in Defines.js cannot be extracted
> as there are defined inside strings. Can things like this be defined in
> another way so that it's not inside a string?
>
> function getReminderLabels() {
> var object = Qt.createQmlObject('\
> import QtQuick 2.0;\
> import Ubuntu.Components 0.1;\
> QtObject {\
> property var reminderLabel:[i18n.tr("No Reminder"),\
> i18n.tr("5 minutes"),\
> i18n.tr("15 minutes"),\
> i18n.tr("30 minutes"),\
> i18n.tr("1 hour"),\
> i18n.tr("2 hours"),\
> i18n.tr("1 day"),\
> i18n.tr("2 days"),\
> i18n.tr("1 week"),\
> i18n.tr("2 weeks")];}', Qt.application, 'ReminderLabelObj');
> return object.reminderLabel;
> }

if its necessary we may create separate QML file/Component and use it here and other place where required

Revision history for this message
David Planella (dpm) wrote :

On Thu, Jul 31, 2014 at 3:43 AM, Kunal Parmar <email address hidden>
wrote:

> > Ok, it seems that the translatable strings in Defines.js cannot be
> extracted
> > as there are defined inside strings. Can things like this be defined in
> > another way so that it's not inside a string?
> >
> > function getReminderLabels() {
> > var object = Qt.createQmlObject('\
> > import QtQuick 2.0;\
> > import Ubuntu.Components 0.1;\
> > QtObject {\
> > property var reminderLabel:[i18n.tr("No Reminder"),\
> > i18n.tr("5 minutes"),\
> > i18n.tr("15 minutes"),\
> > i18n.tr("30 minutes"),\
> > i18n.tr("1 hour"),\
> > i18n.tr("2 hours"),\
> > i18n.tr("1 day"),\
> > i18n.tr("2 days"),\
> > i18n.tr("1 week"),\
> > i18n.tr("2 weeks")];}', Qt.application,
> 'ReminderLabelObj');
> > return object.reminderLabel;
> > }
>
> if its necessary we may create separate QML file/Component and use it here
> and other place where required
>

I think that might be the best solution. Kunal, would you mind submitting
another branch with this change? Or perhaps explain how you'd do it and
another developer can pick it up?

Thanks!

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

> I think that might be the best solution. Kunal, would you mind submitting
> another branch with this change? Or perhaps explain how you'd do it and
> another developer can pick it up?

I will submit another branch, can you verify its working for you ?
Thanks,

Revision history for this message
David Planella (dpm) wrote :

On Thu, Jul 31, 2014 at 12:50 PM, Kunal Parmar <email address hidden>
wrote:

> > I think that might be the best solution. Kunal, would you mind submitting
> > another branch with this change? Or perhaps explain how you'd do it and
> > another developer can pick it up?
>
> I will submit another branch, can you verify its working for you ?
> Thanks,
>

Sure, I'll make sure to test it as soon as you tell me it's ready. Thanks!

Revision history for this message
David Planella (dpm) wrote :

In this case, this is now ready for review.

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

> Sure, I'll make sure to test it as soon as you tell me it's ready. Thanks!

Following is the MR, pls review and let me know if it works for you

https://code.launchpad.net/~pkunal-parmar/ubuntu-calendar-app/Translation/+merge/229049

Revision history for this message
David Planella (dpm) wrote :

Ok, I've merged your changes into this branch.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Hm, I'm not sure it's related to changes in this branch, but running it on the device I cannot create any events.

Revision history for this message
David Planella (dpm) wrote :

The only relevant output that I see on the log is "Detectable autorepeat not supported."

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Looks good to me dpm.

Thank you for the MR

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

this branch needs to merged with trunk code, trunk code fixes autopilot test issue.

Revision history for this message
David Planella (dpm) wrote :

Merged with trunk and ready for a new review.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
377. By Launchpad Translations on behalf of ubuntu-calendar-dev

Launchpad automatic translations update.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

Sometimes there's an error on the test that creates a new event, but it's not related to this branch. I'm investigating some related issues.
I'll reapprove this one to clean the queue.

378. By David Planella

Several improvements and fixes to make strings translatable.

Approved by Ubuntu Phone Apps Jenkins Bot, Mihir Soni.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: