Commit afa38dc2 authored by webchick's avatar webchick

Issue #2170425 by miraj9093, sandipmkhairnar, tgeller: Make text consistent:...

Issue #2170425 by miraj9093, sandipmkhairnar, tgeller: Make text consistent: "Add new content" -> "Add content".
parent 7a08f39b
......@@ -33,7 +33,7 @@ function forum_help($path, $arg) {
$output .= '<dt>' . t('Setting up forum structure') . '</dt>';
$output .= '<dd>' . t('Visit the <a href="!forums">Forums page</a> to set up containers and forums to hold your discussion topics.', array('!forums' => \Drupal::url('forum.overview'))) . '</dd>';
$output .= '<dt>' . t('Starting a discussion') . '</dt>';
$output .= '<dd>' . t('The <a href="!create-topic">Forum topic</a> link on the <a href="!content-add">Add new content</a> page creates the first post of a new threaded discussion, or thread.', array('!create-topic' => \Drupal::url('node.add', array('node_type' => 'forum')), '!content-add' => \Drupal::url('node.add_page'))) . '</dd>';
$output .= '<dd>' . t('The <a href="!create-topic">Forum topic</a> link on the <a href="!content-add">Add content</a> page creates the first post of a new threaded discussion, or thread.', array('!create-topic' => \Drupal::url('node.add', array('node_type' => 'forum')), '!content-add' => \Drupal::url('node.add_page'))) . '</dd>';
$output .= '<dt>' . t('Navigating in the Forum') . '</dt>';
$output .= '<dd>' . t('Enabling the Forum module provides a default <em>Forums</em> menu item in the Tools menu that links to the <a href="!forums">Forums page</a>.', array('!forums' => \Drupal::url('forum.index'))) . '</dd>';
$output .= '<dt>' . t('Moving forum topics') . '</dt>';
......
......@@ -37,7 +37,7 @@ public function form(array $form, array &$form_state) {
'#title' => t('Name'),
'#type' => 'textfield',
'#default_value' => $type->name,
'#description' => t('The human-readable name of this content type. This text will be displayed as part of the list on the <em>Add new content</em> page. It is recommended that this name begin with a capital letter and contain only letters, numbers, and spaces. This name must be unique.'),
'#description' => t('The human-readable name of this content type. This text will be displayed as part of the list on the <em>Add content</em> page. It is recommended that this name begin with a capital letter and contain only letters, numbers, and spaces. This name must be unique.'),
'#required' => TRUE,
'#size' => 30,
);
......@@ -52,7 +52,7 @@ public function form(array $form, array &$form_state) {
'source' => array('name'),
),
'#description' => t('A unique machine-readable name for this content type. It must only contain lowercase letters, numbers, and underscores. This name will be used for constructing the URL of the %node-add page, in which underscores will be converted into hyphens.', array(
'%node-add' => t('Add new content'),
'%node-add' => t('Add content'),
)),
);
......@@ -60,7 +60,7 @@ public function form(array $form, array &$form_state) {
'#title' => t('Description'),
'#type' => 'textarea',
'#default_value' => $type->description,
'#description' => t('Describe this content type. The text will be displayed on the <em>Add new content</em> page.'),
'#description' => t('Describe this content type. The text will be displayed on the <em>Add content</em> page.'),
);
$form['additional_settings'] = array(
......
......@@ -68,7 +68,7 @@ public function render($empty = FALSE) {
'#links' => array(
array(
'href' => 'node/add',
'title' => $this->t('Add new content'),
'title' => $this->t('Add content'),
),
),
'#access' => $this->accessManager->checkNamedRoute('node.add_page', array(), $account),
......
......@@ -549,11 +549,11 @@ function hook_menu_local_tasks(&$data, $route_name) {
$data['actions']['node/add'] = array(
'#theme' => 'menu_local_action',
'#link' => array(
'title' => t('Add new content'),
'title' => t('Add content'),
'href' => 'node/add',
'localized_options' => array(
'attributes' => array(
'title' => t('Add new content'),
'title' => t('Add content'),
),
),
),
......@@ -567,7 +567,7 @@ function hook_menu_local_tasks(&$data, $route_name) {
'href' => 'node/add',
'localized_options' => array(
'attributes' => array(
'title' => t('Add new content'),
'title' => t('Add content'),
),
),
),
......@@ -730,7 +730,7 @@ function hook_page_alter(&$page) {
// Add help text to the user login block.
$page['sidebar_first']['user_login']['help'] = array(
'#weight' => -10,
'#markup' => t('To post comments or add new content, you first have to log in.'),
'#markup' => t('To post comments or add content, you first have to log in.'),
);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment