WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#10325 closed defect (bug) (fixed)

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

Reported by: Nao Owned by: nbachiyski
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8
Component: I18N Keywords:
Focuses: 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)

#1 follow-up: @azaozz
12 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
12 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

#3 @azaozz
12 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
12 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)

#5 @Denis-de-Bernardy
12 years ago

  • Milestone set to 2.9

#6 @azaozz
12 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.