Make labels automatically multilingual
-
Hi! Great plugin.
For non-English sites with many post types, it’s cumbersome to edit all labels to match the actual language the rest of the backend is rendered in.
In lines 118-128 of custom-post-type-ui.php, default labels could be built based on the core WordPress translations. I know this might not work for languages that don’t follow the same Verb + Noun order, but for most this would be enough, and probably better than the English defaults.
For example:
$cpt_labels['add_new'] = ( $cpt_post_type[2]["add_new"] ) ? $cpt_post_type[2]["add_new"] : 'Add ' .$cpt_singular;
becomes:
$cpt_labels['add_new'] = ( $cpt_post_type[2]["add_new"] ) ? $cpt_post_type[2]["add_new"] : __('Add').' ' .$cpt_singular;
I manually did this on my setup, but it would be good if it was changed on the plugin core.
Thanks!
- The topic ‘Make labels automatically multilingual’ is closed to new replies.