Opened 4 years ago

Closed 3 years ago

#10325 closed defect (bug) (fixed)

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

Reported by: Nao Owned by: nbachiyski
Priority: normal Milestone: 2.9
Component: I18N Version: 2.8
Severity: normal Keywords:
Cc:

Description

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)

comment:1 follow-up: ↓ 2   azaozz4 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.

comment:2 in reply to: ↑ 1   Nao4 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)
http://www.youtube.com/watch?v=W4Lz3u6xV_w&feature=player_embedded

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.

comment:4   Nao4 years ago

Both exist in .po file.
http://svn.automattic.com/wordpress-i18n/ja/tags/2.8/messages/ja.po

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
add:

define ('WPLANG', 'ja');

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

  • Milestone set to 2.9
  • 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.