Make WordPress Core

Opened 8 years ago

Last modified 8 years ago

#46278 new enhancement

Consider internationalization of delimiter: human_readable_duration

Reported by: tmatsuur Owned by:
Priority: normal Milestone: Future Release
Component: I18N Version: 5.1
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

I have a request for the human_readable_duration function added in version 5.1.

Please make it possible to change the delimiter of concatenation by language.

return implode( _x( ', ', 'duration' ), $human_readable_duration );

Attachments (1)

46278.diff (472 bytes ) - added by mukesh27 8 years ago.
Patch.

Download all attachments as: .zip

Change History (4)

@mukesh27
8 years ago

Patch.

#1 follow-up: @mukesh27
8 years ago

  • Component GeneralI18N
  • Keywords has-patch added

@tmatsuur attached patch as per your suggestion.

#2 in reply to: ↑ 1 @tmatsuur
8 years ago

Replying to mukesh27:

@tmatsuur attached patch as per your suggestion.

Thanks.
I hope the context described as an example conforms to the naming rules.

#3 @johnbillion
8 years ago

  • Milestone Awaiting ReviewFuture Release
  • Type feature requestenhancement

There's quite a few places in core that use the implode( ', ', ... ) pattern for using-facing text. I think this is something that should be addressed more widely if the comma needs to be localised.

Note: See TracTickets for help on using tickets.