Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#12527 closed defect (bug) (invalid)

Add New is not translatable

Reported by: daniel's profile DaNiel Owned by: nbachiyski's profile nbachiyski
Milestone: Priority: normal
Severity: normal Version:
Component: I18N Keywords: reporter-feedback
Focuses: Cc:

Description

Sorry i can't open tickets on the wpmu trac.

On wpmu admin, Add New is not translated in the different menus.

[wp-admin\menu.php]
Line 34 : /* translators: add new post */
Line 35 : $submenuedit.php?[10] = array( _x('Add New', 'post'), 'edit_posts', 'post-new.php' );
Line 50 : /* translators: add new file */
Line 51 : $submenuupload.php?[10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php');
Line 55 : /* translators: add new links */
Line 56 : $submenulink-manager.php?[10] = array( _x('Add New', 'links'), 'manage_links', 'link-add.php' );
Line 61 : /* translators: add new page */
Line 62 : $submenuedit-pages.php?[10] = array( _x('Add New', 'page'), 'edit_pages', 'page-new.php' );
Line 73 : $submenuthemes.php?[15] = array(('Add New Themes'), 'install_themes', 'theme-install.php');
Line 82 : /* translators: add new plugin */
Line 83 : $submenuplugins.php?[10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php');
Line 94 : $submenuusers.php?[10] = array(_x('Add New', 'user'), 'create_users', 'user-new.php');

I tried with adding _x to the poEdit tags, but this didn't work. All other items are translated.

Change History (4)

#1 @scribu
15 years ago

  • Component changed from General to i18n
  • Keywords reporter-feedback added
  • Owner set to nbachiyski

MU is merged into the 3.0-alpha branch of WordPress. Is that the version you're experiencing this problem with?

#2 @dd32
15 years ago

You need to add _x to your tags, with the context flag. I belive _x:2c,1 should do it.

If you're using "update from sources" try "update from POT file" too..

_x IS translated, your client may need updating, or the .pot file you're working off might be incomplete..

#3 @dd32
15 years ago

You might be able to find someone who can help on the wp-polyglots mailing list.

#4 @nacin
15 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.