Make WordPress Core

Opened 17 years ago

Closed 16 years ago

#7090 closed defect (bug) (duplicate)

Messages in POT with date codes should refer translators to explanatory page

Reported by: leuce's profile leuce Owned by: nbachiyski's profile nbachiyski
Milestone: Priority: normal
Severity: normal Version:
Component: I18N Keywords:
Focuses: Cc:

Description

In the wordpress.pot file, at least two messages contain a date code which translators should then change to reflect the date format for their language. Ideally, there should be a msgctxt comment that refers translators to the dates page on the PHP web site.

I could find two messages with date codes (perhaps there are more, but I couldn't find them now):

#: wp-admin/includes/schema.php:188
msgid "F j, Y g:i a"
msgstr ""

#: wp-includes/post-template.php:588
msgid "j F, Y @ G:i|revision date format"
msgstr ""

These should be changed to something like this:

#: wp-admin/includes/schema.php:188
msgctxt ""
"This represents a date format.  Visit http://php.net/date for a "
"detailled explanation of how to write the appropriate format for "
"your language."
msgid "F j, Y g:i a"
msgstr ""

#: wp-includes/post-template.php:588
msgctxt ""
"This represents a date format.  Visit http://php.net/date for a "
"detailled explanation of how to write the appropriate format for "
"your language."
msgid "j F, Y @ G:i"
msgstr ""

Thanks!

Change History (3)

#1 @nbachiyski
17 years ago

  • Milestone changed from 2.7 to 2.6
  • Owner changed from anonymous to nbachiyski

These should be clarified with comments, not with context. The context should be used only if a string has ambiguous meaning in different places in different languages.

#2 @nbachiyski
16 years ago

  • Milestone changed from 2.9 to 2.8

#3 @nbachiyski
16 years ago

  • Milestone 2.8 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Part of #9112. Resolving as duplicate.

Note: See TracTickets for help on using tickets.