super-cpt icon indicating copy to clipboard operation
super-cpt copied to clipboard

I18n fixes

Open louy opened this issue 9 years ago • 2 comments

Making the plugin easier to translate and use in multi-lingual installs by removing duplicate labels for each post type/taxonomy.

louy avatar Apr 22 '15 08:04 louy

This is a good move. There's still a fundamental flaw to this plugin with regards to localization, and I don't really have an answer for it. That is, the "singular" and "plural" words derived from the object's slug, both of which assume english. Any thoughts on that? Otherwise, your translation is going to end up being something like, "Buscar Sponsored Articles"

mboynes avatar Apr 22 '15 13:04 mboynes

Well, it's not your job to localize everything. With the edits I suggest, the users will always have to name singulars/plurals themselves.

In the end, you can use the api like new Super_Custom_Post_Type('book', __('Book'), __('Books')); and end up with "Neues Buch", "Yeni Kitap" and "كتاب جديد" and you'll only have to translate 2 strings.

I guess the real issue is with capital/small letters (nouns in German are always capital) and masculine/feminine.

louy avatar Apr 22 '15 14:04 louy