Navigation Menu

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

enable l10n for admin menu items #225

Closed
lislis opened this issue May 15, 2014 · 1 comment
Closed

enable l10n for admin menu items #225

lislis opened this issue May 15, 2014 · 1 comment

Comments

@lislis
Copy link

lislis commented May 15, 2014

Is there a possibility to wrap the labels for created custom post types in __()?
I need to make the labels in the admin menu translatable.

EDIT:
I did a workaround for this now.
In the mf_register.php I commented out line 38 where the labels get assigned. And I assign them myself

      $new_labels = array();
      foreach ($p['label'] as $k => $v) {
        $new_labels[$k] = __($v, 'theme_textdomain');
      }
      $options['labels'] = $new_labels;

Then I can add all the terms I need to my theme's .po and .mo files. The problem is that is is not really dynamic, because I need to hardcode my theme's textdomain.
Some thoughts on that would be appreciated :)

@hunk
Copy link
Member

hunk commented Aug 27, 2016

I'm cleaning the issues if you still have this problem reopen the issue. thanks

@hunk hunk closed this as completed Aug 27, 2016
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