Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#33747 closed defect (bug) (fixed)

Reorder and Done need different context?

Reported by: pavelevap Owned by: ocean90
Priority: normal Milestone: 4.8
Component: Customize Version: 4.3
Severity: normal Keywords: has-patch has-ux-feedback
Cc: Focuses:

Description

There are same buttons Reorder and Done for Menus and Widgets, but with different context. But these buttons are for same action (reordering items) and we do not need different context here?

Attachments (2)

33747.diff (2.3 KB ) - added by Presskopp 10 years ago.
33747.2.diff (2.3 KB ) - added by Presskopp 10 years ago.

Download all attachments as: .zip

Change History (12)

#1 @wonderboymusic
11 years ago

  • Milestone Awaiting Review4.4
  • Owner set to ocean90
  • Status newassigned

#2 @ocean90
11 years ago

  • Milestone 4.4
  • Resolutioninvalid
  • Status assignedclosed

There are locales which have translated the strings differently, so yes.

#3 @pavelevap
11 years ago

  • Resolution invalid
  • Status closedreopened

Yes, that was the point of this ticket :-) I also translated it differently before I found that we have same string, only with different context. For example "Reorder" is common verb and can be translated differently by different translators, when they do not notice other string. But for consistency in Customizer UI, it should be only one string (button) and it would be helpfull also for translators...

Or we should add different context also for many other general strings, for example "Bulk Edit", "Quick Edit" or "Publish" and "Update" buttons, which should have different context for Posts, Pages, Users, etc.

#4 @ocean90
11 years ago

  • Component I18NCustomize
  • MilestoneAwaiting Review
  • Version trunk4.3

How about a patch?

#5 @swissspidy
11 years ago

  • Keywords needs-patch added

@Presskopp
10 years ago

#6 @Presskopp
10 years ago

  • Keywords has-patch added; needs-patch removed

synchronized to

<span class="reorder"><?php _ex( 'Reorder', 'Reorder items in Customizer' ); ?></span>
<span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering items in Customizer' ); ?></span>

Didn't touch the screen-reader-text part

#7 @karmatosed
10 years ago

  • Keywords has-ux-feedback added

Just to confirm those trying to replicate this, it only shows in some languages as an issue. For example, I can't see this as an issue in English.

With regards to the patch, wouldn't 'done reordering' make more sense? Or is that a translation issue?

@Presskopp
10 years ago

#8 @Presskopp
10 years ago

It makes more sense definitely. Changed.

#9 @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review4.8

I think we can just remove the redundant context here (introduced in [27985] without an explanation):

  • Reorder is not used anywhere else in core.
  • Done is used in Press This and the old media UI for setting post thumbnails, but in a similar context.

#10 @SergeyBiryukov
10 years ago

  • Resolutionfixed
  • Status reopenedclosed

In 39927:

Customize: Remove redundant context for "Reorder" and "Done" strings in nav menu and widget area controls to ensure consistent translations.

Props pavelevap, Presskopp.
Fixes #33747.

Note: See TracTickets for help on using tickets.