For better I18N of ‘DW Question & Answer’, I am happy to mention a few tips on I18N for this plugin:
1. text domainname missing
- ‘singular_name’ => _x( ‘Category’, ‘taxonomy singular name’ ),
should be:
- ‘singular_name’ => _x( ‘Category’, ‘taxonomy singular name’, ‘dwqa’ ),
and may be you need to add text domainname for ‘Tag’,’Tags’;
2. using other text domainname?
- ‘add_new’ => __( ‘Add New’, ‘theme’ ),
‘theme’ should be ‘dwqa’?
and:
- case ‘info’:
- //Build row actions
- $actions = array(
- ‘edit’ => sprintf( ‘<a href=“%s”>%s</a>’, get_edit_post_link( $post_ID ), __( ‘Edit’, ‘edd-dw-membersip’ ) ),
- ‘delete‘ => sprintf( ‘<a href=“%s”>%s</a>’, get_delete_post_link( $post_ID ), __( ‘Delete‘, ‘edd-dw-membersip’ ) ),
- ‘view’ => sprintf( ‘<a href=“%s”>%s</a>’, get_permalink( $post_ID ), __( ‘View’, ‘edd-dw-membersip’ ) )
- );
3. using ‘_e’ in function ‘create_function’:
- add_settings_section(
- ‘dwqa-permalink-settings’,
- __( ‘Permalink Settings’,’dwqa’ ),
- create_function( ”, ‘_e( \’Custom permalinks for single questions, categories, tags.\’,\’dwqa\’ ); ‘ ),
- ‘dwqa-settings’
- );
the string in the ‘_e’ can not be detected by POEDIT;
Thanks again for your nice work!
Best wishes!
1 Answers
That’s great! We could learn from it and make improvement 🙂
Please login or Register to submit your answer
replied 10 years ago
Thanks for your tip. 😀