Opened 15 years ago
Closed 15 years ago
#13024 closed defect (bug) (fixed)
Don't mark internal post status strings for translation
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
register_post_status( 'auto-draft', array( 'label' => _x('Auto-Draft', 'post'), 'internal' => true, '_builtin' => true, /* internal use only. */ 'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>') ) ); register_post_status( 'inherit', array( 'label' => _x('Inherit', 'post'), 'internal' => true, '_builtin' => true, /* internal use only. */ 'label_count' => _n_noop('Inherit <span class="count">(%s)</span>', 'Inherit <span class="count">(%s)</span>') ) );
Some translators have asked how to deal with these. Since they never appear in the UI, perhaps we should remove the gettext and just use the status id for the labels ('inherit' and 'auto-draft').
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Yeah, it makes sense.
Here is a patch, which removes the gettext calls and makes
label_count
and array by default, because_n_noop()
returns an array with singular and plural values.