WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6554 closed defect (bug) (fixed)

wp-admin/users.php non-english l10n: user with no role has beginning of .po file listed as role (lots of gibberish text)

Reported by: lmamane Owned by:
Milestone: 2.6.1 Priority: normal
Severity: normal Version: 2.6
Component: Administration Keywords:
Focuses: Cc:

Description

When one has a user with no role on the blog,

1) in English, nothing is displayed instead of an explicit "no role"; this looks like a return of #2809.

2) In other languages, a whole inappropriate piece of text is shown; here is the example for French:

Project-Id-Version: WordPress 2.3.1 Report-Msgid-Bugs-To: wp-polyglots@… POT-Creation-Date: 2008-03-28 08:00+0000 PO-Revision-Date: 2008-03-30 00:48+0100 Last-Translator: Xavier Borderie Language-Team: French (France) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rosetta-Version: 0.1 X-Poedit-Country: FRANCE X-Poedit-SourceCharset: utf-8 X-Poedit-KeywordsList: _e;_c; X-Poedit-Basepath: . Plural-Forms: nplurals=2; plural=n>1 X-Poedit-Language: French

That is probably because the .po file (taken from svn tag 2.5) contains:

msgid ""
msgstr ""
"Project-Id-Version: WordPress 2.3.1\n"
"Report-Msgid-Bugs-To: wp-polyglots@…\n"
"POT-Creation-Date: 2008-03-28 08:00+0000\n"
"PO-Revision-Date: 2008-03-30 00:48+0100\n"
"Last-Translator: Xavier Borderie <xavier-a-borderie-point-net>\n"
"Language-Team: French (France) <staff@…>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Rosetta-Version: 0.1\n"
"X-Poedit-Country: FRANCE\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Poedit-KeywordsList: _e;_c;\n"
"X-Poedit-Basepath: .\n"
"Plural-Forms: nplurals=2; plural=n>1\n"
"X-Poedit-Language: French\n"

So the empty English string is "translated" by that whole piece of text.

Attachments (1)

template.php.patch.txt (704 bytes) - added by wasp 7 years ago.
fixes this issue

Download all attachments as: .zip

Change History (8)

comment:1 @lmamane7 years ago

  • Summary changed from wp-admin/users.php non-english l10n: user with no role has .po file listed as role to wp-admin/users.php non-english l10n: user with no role has .po file listed as role (lots of gibberish text)

comment:2 @lmamane7 years ago

  • Summary changed from wp-admin/users.php non-english l10n: user with no role has .po file listed as role (lots of gibberish text) to wp-admin/users.php non-english l10n: user with no role has beginning of .po file listed as role (lots of gibberish text)

comment:3 @lmamane7 years ago

  • Cc lmamane added

comment:4 @ryan7 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

@wasp7 years ago

fixes this issue

comment:5 @wasp7 years ago

  • Milestone changed from 2.9 to 2.6.1
  • Version changed from 2.5 to 2.6

Please test with attached patch.

comment:6 @ryan7 years ago

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

(In [8455]) Don't try to translate empty role name. Props wasp. fixes #6554 for trunk

comment:7 @ryan7 years ago

(In [8456]) Don't try to translate empty role name. Props wasp. fixes #6554 for 2.6

Note: See TracTickets for help on using tickets.