Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#9507 closed defect (bug) (fixed)

Unable to localize the "tag" word in the new plugin page

Reported by: mark-k Owned by: nbachiyski
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.7.1
Component: I18N Keywords: has-patch
Focuses: Cc:


in plugin-install.php the tag word is localized using _e('Tag'). this seems to conflict with a different localization of 'Tag' done by using ngettext( 'Tag', 'Tags', $num_tags ), and the first version is not translated at all.

I guess that the simplest solution will be to change it to _e('Tag|plugin').

Attachments (2)

9507.patch (876 bytes) - added by Viper007Bond 6 years ago.
Add "Tag" translation context
9507.2.patch (859 bytes) - added by Viper007Bond 6 years ago.
Use _x()

Download all attachments as: .zip

Change History (6)

@Viper007Bond6 years ago

Add "Tag" translation context

comment:1 @Viper007Bond6 years ago

  • Keywords has-patch added
  • Milestone changed from Unassigned to 2.8

comment:2 follow-up: @ryan6 years ago

_c() is deprecated. Use _x().

comment:3 in reply to: ↑ 2 @Viper007Bond6 years ago

Replying to ryan:

_c() is deprecated. Use _x().

Ah, I wondered which to use, but didn't see any mention in the phpdocs. Fresh patch incoming.

@Viper007Bond6 years ago

Use _x()

comment:4 @ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10944]) Add context to string. Props Viper007Bond. fixes #9507

Note: See TracTickets for help on using tickets.