Could you please change the way of localization of archive titles?
<?php _e('Archive for ', 'NorthVantage' ); ?> ‘<?php single_cat_title(); ?>’
<?php printf( __( 'Archive for ‘%s’', 'NorthVantage' ), single_cat_title() ); ?>
Translators can easily change order of words and apostrophes.
It would be nice to change it for all archive titles and breadcrumbs.
Thank you very much!
Thank you, but I found another problem:
File lib/inc/classes/post-title-class.php, line 19:
echo '<h2> 0) ) .'">'. htmlspecialchars( $NV_posttitle ) .'</h2>';
String “Permanent Link to…” is not allowed for localization.
Thank you for your help!
I’ve updated the file here:
http://help.themeva.com/tmp/post-title-class.php.zip ( unzip and place into DynamiX/lib/inc/classes/ )
I really appreciate your support.
But there is better way with sprintf() function, see for example here (Twenty Twelve):
And could you please also repair archive.php file with printf() function? See for example here (Twenty Twelve):
It would be really great for translators…
Thank you very much!
I’ve changed the “Archive for” now and removed the quotes, you can add your own in now if required. It now looks like this:
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'themeva' ), '<span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'themeva' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'themeva' ) ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'themeva' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'themeva' ) ) . '</span>' );
elseif ( is_category() ) :
printf( __( 'Archive For: %s', 'themeva' ), '<span>' . single_cat_title( '', false ) . '</span>' );
_e( 'Archives', 'themeva' );
I can’t see the error with breadcrumbs.php – I’ve ran it through POEDIT and I do not receive this error?
Nice, thank you very much!
I am not sure about textdomain? It used to be “Nortvantage” and not “themeva”?
Ad breadcrumbs.php: There is no error, only problems with localization, please see lines 25, 27 and 32. There are quotes represented by entity #39 and we would like to change/remove it. It would be helpfull to include this entity into localizable string. It is the same example as above, instead of using:
__('Archive by category ', 'NorthVantage' )
it would be better to use printf() and include quotes and category into one localizable string.
Thank you for your help.
You must be logged in to reply to this topic.