Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate custom post types is not possible #52

Closed
3makkk opened this issue Apr 1, 2016 · 1 comment
Closed

Translate custom post types is not possible #52

3makkk opened this issue Apr 1, 2016 · 1 comment

Comments

@3makkk
Copy link

3makkk commented Apr 1, 2016

The constructor of the custom post type class is called before the plugin text domain is loaded. So it's impossible to translate the singular and plural of the CTP.
A solution whould be to load the plugin text domain in the plugin constructor instead in the init event.

@3makkk 3makkk changed the title Translate custom post type a not possible Translate custom post types is not possible Apr 1, 2016
@CamdenSegal
Copy link
Contributor

Fixed by 8900f75, plugin classes are now initialized in the init hook after requirements are checked and text domain is loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants