Opened 12 months ago
Closed 12 months ago
#20782 closed enhancement (fixed)
Translator context needed on a Customize.php string
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Themes | Version: | 3.4 |
| Severity: | trivial | Keywords: | has-patch i18n-change |
| Cc: |
Description
In the file /trunk/wp-admin/customize.php, line 72:
<span class="preview-notice"><?php _e('You are previewing'); ?></span>
<strong class="theme-name"><?php echo $wp_customize->theme()->display('Name'); ?></strong>
The line "You are previewing" doesn't convey the fact that it is going to be followed by the theme's name; hence translators might miss a word (I almost did, had I not looked at the code).
I'd suggest either including the name within the string (as %s; better for RTL languages?), or adding a line of context.
Attachments (3)
Change History (11)
- Keywords i18n-change added
Yes, this should probably be 'You are previewing %s', though that might be difficult given the UI there.
SergeyBiryukov — 12 months ago
comment:4
in reply to:
↑ 3
;
follow-up:
↓ 5
SergeyBiryukov — 12 months ago
Replying to nacin:
Yes, this should probably be 'You are previewing %s'
Done in 20782.patch. Tested in Firefox 12, Chrome 19, IE 8, Opera 11.64.
Replying to SergeyBiryukov:
Replying to nacin:
Yes, this should probably be 'You are previewing %s'
Done in 20782.patch.
The issue is when the string gets split. For example, "You are %s previewing" -- now what?
SergeyBiryukov — 12 months ago
comment:6
SergeyBiryukov — 12 months ago
Well, if some language requires to split the string:
- Currently there's no way do to that, so the translation wouldn't be flexible.
- It looks a bit weird, but doesn't seem too bad (20782.split-example.png). Or, if that's what we're trying to avoid, what would be a better UI solution in this case?
If the language doesn't require splitting the string, this won't be an issue, unless I'm missing something.
20782.split-example.png doesn't look bad at all.

My quick-n-dirty hack for a context.