Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#10325 closed defect (bug) (fixed)

After changing the published date, some strings do not get translated

Reported by: nao's profile Nao Owned by: nbachiyski's profile nbachiyski
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8
Component: I18N Keywords:
Focuses: Cc:


This bug is for localized version only.

When you change the published date from post edit panel (e.g. /post.php?action=edit&post=1), post status value and "published on" label become English.

Correct translation show up again if you set the date back to when the post was originally saved.

Change History (6)

#1 follow-up: @azaozz
14 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed

These strings are translated in script-loader.php, lines 275 - 297 and 304 - 320.

#2 in reply to: ↑ 1 @Nao
14 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

They are translated when the page is loaded, but not after post date is changed.

Here's the screencast to replicate the issue (watch around 0:17)

#3 @azaozz
14 years ago

Perhaps check the .po file. The strings for "Save draft" and "Publish on" are translated in script-loader.php and are inserted with js on change.

#4 @Nao
14 years ago

Both exist in .po file.

They are translated fine as long as you don't update the post date.
(For example when you first load an already-published post's edit page, "Publish on" show up in Japanese)

In order to replicate, please try throwing the .po file in /wp-content/languages/ and modify wp-config.php to

define ('WPLANG', 'ja');

(This is also true in I've tried it by changing interface language to Portugese - same result)

#5 @Denis-de-Bernardy
14 years ago

  • Milestone set to 2.9

#6 @azaozz
14 years ago

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

Think this was fixed some time ago.

Note: See TracTickets for help on using tickets.