Skip to content

Commit 0a0e5db

Browse files
committed
Rename lang key with better specificity
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 8554876 commit 0a0e5db

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

language/en/common.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
'IDEA_DELETED' => 'Idea successfully deleted.',
3939
'IDEA_LIST' => 'Idea List',
4040
'IDEA_NOT_FOUND' => 'Idea not found',
41+
'IDEA_STATUS_CHANGE' => 'Your idea <strong>“%1$s”</strong> has been changed to:',
4142
'IDEA_STORED_MOD' => 'Your idea has been submitted successfully, but it will need to be approved by a moderator before it is publicly viewable. You will be notified when your idea has been approved.<br /><br /><a href="%s">Return to Ideas</a>.',
4243
'IDEAS_TITLE' => 'phpBB Ideas',
4344
'IDEAS_NOT_AVAILABLE' => 'Ideas is not available at this time.',
@@ -69,8 +70,6 @@
6970

7071
'OPEN_IDEAS' => 'Open ideas',
7172

72-
'PHPBB_IDEAS_NOTIFICATION' => 'The status of your idea <strong>“%1$s”</strong> has been changed to:',
73-
7473
'POST_IDEA' => 'Post a new idea',
7574
'POSTING_NEW_IDEA' => 'Posting a new idea',
7675

notification/type/status.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ public function users_to_query()
174174
*/
175175
public function get_title()
176176
{
177-
if (!$this->language->is_set('PHPBB_IDEAS_NOTIFICATION'))
177+
if (!$this->language->is_set('IDEA_STATUS_CHANGE'))
178178
{
179179
$this->language->add_lang('common', 'phpbb/ideas');
180180
}
181-
return $this->language->lang('PHPBB_IDEAS_NOTIFICATION', $this->get_data('idea_title'));
181+
return $this->language->lang('IDEA_STATUS_CHANGE', $this->get_data('idea_title'));
182182
}
183183

184184
/**

0 commit comments

Comments
 (0)