Opened 14 years ago
Closed 14 years ago
#22008 closed defect (bug) (fixed)
Twenty Twelve - localization of next and previous posts
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | normal |
| Severity: | normal | Version: | 3.5 |
| Component: | Bundled Theme | Keywords: | has-patch |
| Focuses: | Cc: |
Description
There is no need to translate this (see attached patch)?
<span class=\"meta-nav\">←</span> <span class=\"meta-nav\">→</span>
It would make sense only together with %title in one sentence?
Attachments (2)
Change History (9)
#3
follow-up:
↓ 4
@
14 years ago
Would those links be better off with context and no markup in the localised string? Eg:
previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentytwelve' ) . '</span> %title' );
#4
in reply to:
↑ 3
@
14 years ago
- Milestone set to 3.5
- Resolution invalid deleted
- Status changed from closed to reopened
Replying to johnbillion:
Would those links be better off with context and no markup in the localised string? Eg:
previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentytwelve' ) . '</span> %title' );
When we last had to translate something for previous_post_link() or next_post_link() — in Twenty Ten — we did this.
#5
@
14 years ago
twentytwelve_content_nav() has a similar instance:
http://core.trac.wordpress.org/browser/trunk/wp-content/themes/twentytwelve/functions.php?rev=22020#L249
Note: See
TracTickets for help on using
tickets.
Yes, it's needed for RTL languages where the arrows point the other direction.