Merge lp://staging/~kelemeng/activity-log-manager/bug958483 into lp://staging/~activity-log-manager/activity-log-manager/vala

Proposed by Gabor Kelemen
Status: Merged
Merged at revision: 103
Proposed branch: lp://staging/~kelemeng/activity-log-manager/bug958483
Merge into: lp://staging/~activity-log-manager/activity-log-manager/vala
Diff against target: 70 lines (+7/-7)
2 files modified
src/applications-widget.vala (+5/-5)
src/history-widget.vala (+2/-2)
To merge this branch: bzr merge lp://staging/~kelemeng/activity-log-manager/bug958483
Reviewer Review Type Date Requested Status
Manish Sinha (मनीष सिन्हा) Approve
Review via email: mp+98096@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote :

> var last_accessed = time.format(_("%e %B %Y"));

These are string formatting for how the time should be rendered. It doesn't get printed on the screen. It doesn't need to be translated.

> var date_string = date.format(_("%d %B %Y"));
Same

> var date_string = date.format(_("%d %B %Y"));
Same

review: Needs Fixing
Revision history for this message
Stefano Candori (cando) wrote :

Manish, those gettext changes are already in my branch.. could you review
my merge request?

Stefano Candori
Il giorno 18/mar/2012 19:47, "Manish Sinha (मनीष सिन्हा" <
<email address hidden>> ha scritto:

> Review: Needs Fixing
>
> > var last_accessed = time.format(_("%e %B %Y"));
>
> These are string formatting for how the time should be rendered. It
> doesn't get printed on the screen. It doesn't need to be translated.
>
> > var date_string = date.format(_("%d %B %Y"));
> Same
>
> > var date_string = date.format(_("%d %B %Y"));
> Same
> --
>
> https://code.launchpad.net/~kelemeng/activity-log-manager/bug958483/+merge/98096
> Your team Activity Log Manager is subscribed to branch
> lp:activity-log-manager.
>

Revision history for this message
Gabor Kelemen (kelemeng) wrote :

>> var last_accessed = time.format(_("%e %B %Y"));

> These are string formatting for how the time should be rendered. It doesn't get printed on the
> screen. It doesn't need to be translated.

The date gets printed in a format specified by these strings. Preferred date formats are different in various languages, so formatting strings needs to be marked for translation.

This is covered here: http://www.gnu.org/software/gettext/manual/gettext.html#Aspects

As for Stefanoss branch: you missed the untranslated Name string in the ApplicationsTreeView class. This is not visible, but it is an accessible description of the blacklisted applications list, and can be heard when using Orca.

Also you should mark the time formatting strings for translation too. Also please avoid using string surgeries like:

time.format(today + ", %H:%M")

This won't look good in some languages, even if the two parts would be translatable individually. See: https://live.gnome.org/TranslationProject/DevGuidelines/Never%20split%20sentences

Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote :

@Stefano

I reviewed yours. It's fine. Will merge it by end of the day

Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote :

@Gabor
Cool. Looks fine. Will merge both the branches.

I just checked Stefano's diff. Will have a thorough look at the codebcase before making a release.

review: Approve

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