Skip to content

Instantly share code, notes, and snippets.

@fxbenard
Created September 27, 2012 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fxbenard/3794362 to your computer and use it in GitHub Desktop.
Save fxbenard/3794362 to your computer and use it in GitHub Desktop.
How to make it i18n without error ?
private $defaultCapabilities = array(
'connections_view_dashboard' => 'View Dashboard',
'connections_manage' => 'View List (Manage)',
'connections_add_entry' => 'Add Entry',
'connections_add_entry_moderated' => 'Add Entry Moderated',
'connections_edit_entry' => 'Edit Entry',
'connections_edit_entry_moderated' => 'Edit Entry Moderated',
'connections_delete_entry' => 'Delete Entry',
'connections_view_public' => 'View Public Entries',
'connections_view_private' => 'View Private Entries',
'connections_view_unlisted' => 'View Unlisted Entries',
'connections_edit_categories' => 'Edit Categories',
'connections_change_settings' => 'Change Settings',
'connections_manage_template' => 'Manage Templates',
'connections_change_roles' => 'Change Role Capabilities',
'connections_view_help' => 'View Help'
);
@fxbenard
Copy link
Author

How to make it i18n ready without having a php error ? thanks

'connections_view_dashboard' =>__( 'View Dashboard', 'textdomain'), isn't working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment