Merge lp:~dpm/reminders-app/translator-comments into lp:reminders-app

Proposed by David Planella
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 157
Merged at revision: 160
Proposed branch: lp:~dpm/reminders-app/translator-comments
Merge into: lp:reminders-app
Diff against target: 10 lines (+1/-0)
1 file modified
src/plugin/Evernote/note.cpp (+1/-0)
To merge this branch: bzr merge lp:~dpm/reminders-app/translator-comments
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Michael Zanetti (community) Approve
Riccardo Padovani Needs Information
Review via email: mp+222295@code.launchpad.net

Commit message

Provide more context to translators when translating a date string.

Description of the change

Provide more context to translators when translating a date string.

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
Riccardo Padovani (rpadovani) wrote :

Mhh, why translators have to translate this string? QLocale doesn't automatic work to understand what language is and provide right translation?

And if not, what could be the translation of this string?

review: Needs Information
Revision history for this message
Michael Zanetti (mzanetti) wrote :

I agree with Riccardo... This is not really something that should (or can) be translated... Actually the gettext should go away...

review: Disapprove
Revision history for this message
Michael Zanetti (mzanetti) wrote :

To be clear, QLocale::standaloneMonthName should give us the month already translated. If it doesn't we probably have an issue that we're not loading the Qt translations.

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

I'm up for leaving this as not translatable and let Qt provide the right translation, I always prefer that approach. The reason I understand it's marked for translation right now is to let languages which need it to rearrange the year and month differently than "month, year".

I just added the translator comment to make it clear, as I saw it while doing the translation. So if there is a Qt Locale format that gives this same output format without the need of translators to rearrange it, I'm all up for it.

Revision history for this message
Michael Zanetti (mzanetti) wrote :

After having a chat on IRC it turns out I'm wrong and this is legit indeed. Comment is fine.

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
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: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/plugin/Evernote/note.cpp'
2--- src/plugin/Evernote/note.cpp 2014-05-09 13:02:38 +0000
3+++ src/plugin/Evernote/note.cpp 2014-06-06 09:29:24 +0000
4@@ -91,6 +91,7 @@
5 return gettext("Two weeks ago");
6 }
7
8+ // TRANSLATORS: the first argument refers to a month name and the second to a year
9 return QString(gettext("%1 %2")).arg(QLocale::system().standaloneMonthName(createdDate.month())).arg(createdDate.year());
10 }
11

Subscribers

People subscribed via source and target branches