#107024: Make content type name/description localizable on install time by profile.
parent
f9c83f1bac
commit
68ac4772e8
|
|
@ -1146,7 +1146,7 @@ function node_menu($may_cache) {
|
|||
$type_url_str = str_replace('_', '-', $type->type);
|
||||
$items[] = array(
|
||||
'path' => 'node/add/'. $type_url_str,
|
||||
'title' => drupal_ucfirst(t($name)),
|
||||
'title' => drupal_ucfirst($name),
|
||||
'access' => node_access('create', $type->type),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,18 +36,18 @@ function default_profile_final() {
|
|||
$types = array(
|
||||
array(
|
||||
'type' => 'page',
|
||||
'name' => t('Page'),
|
||||
'name' => st('Page'),
|
||||
'module' => 'node',
|
||||
'description' => t('If you want to add a static page, like a contact page or an about page, use a page.'),
|
||||
'description' => st('If you want to add a static page, like a contact page or an about page, use a page.'),
|
||||
'custom' => TRUE,
|
||||
'modified' => TRUE,
|
||||
'locked' => FALSE,
|
||||
),
|
||||
array(
|
||||
'type' => 'story',
|
||||
'name' => t('Story'),
|
||||
'name' => st('Story'),
|
||||
'module' => 'node',
|
||||
'description' => t('Stories are articles in their simplest form: they have a title, a teaser and a body, but can be extended by other modules. The teaser is part of the body too. Stories may be used as a personal blog or for news articles.'),
|
||||
'description' => st('Stories are articles in their simplest form: they have a title, a teaser and a body, but can be extended by other modules. The teaser is part of the body too. Stories may be used as a personal blog or for news articles.'),
|
||||
'custom' => TRUE,
|
||||
'modified' => TRUE,
|
||||
'locked' => FALSE,
|
||||
|
|
|
|||
Loading…
Reference in New Issue