Missing translation code _x() in inc/template-tags.php
-
Hello,
The inc/template-tags.php, line 56, contains the hard-coded english word “of” , which is used as in “Page x of y” . (For you to get the idea.The actual text does not show the word “Page”) . It resides between the <span></span> html tags.Actual code :
<div class="page-number"><?php echo intval( $paged ); ?> <span>of</span> <?php echo intval( $wp_query->max_num_pages ); ?></div>
Proposed code :
<div class="page-number"><?php echo intval( $paged ); ?> <span>/</span> <?php echo intval( $wp_query->max_num_pages ); ?></div>
Yes, I implemented the easiest (imho) translation-proof “/” instead of an actual word ??
Of course a more academic approach would look like :
<div class="page-number"><?php echo intval( $paged ); ?> <span>_x('of')</span> <?php echo intval( $wp_query->max_num_pages ); ?></div>
I’m not sure that single character replacement warrants that I propose a svn patch myself? ??
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Missing translation code _x() in inc/template-tags.php’ is closed to new replies.