Переглянути джерело

#235: Separated out text strings for *_alert_none

Signed-off-by: ziycon <[email protected]>
ziycon 11 роки тому
батько
коміт
99bf5500da

+ 1 - 1
Themes/default/MessageIndex.template.php

@@ -213,7 +213,7 @@ function template_main()
 		else
 			echo '
 					<th scope="col" class="first_th" width="8%">&nbsp;</th>
-					<th colspan="3"><strong>', $txt['msg_alert_none'], '</strong></th>
+					<th colspan="3"><strong>', $txt['topic_alert_none'], '</strong></th>
 					<th scope="col" class="last_th" width="8%">&nbsp;</th>';
 
 		echo '

+ 1 - 1
Themes/default/PersonalMessage.template.php

@@ -598,7 +598,7 @@ function template_subject_list()
 	if (!$context['show_delete'])
 		echo '
 		<tr class="windowbg2">
-			<td colspan="5">', $txt['msg_alert_none'], '</td>
+			<td colspan="5">', $txt['pm_alert_none'], '</td>
 		</tr>';
 	$next_alternate = false;
 

+ 2 - 2
Themes/default/Recent.template.php

@@ -215,7 +215,7 @@ function template_unread()
 		echo '
 			<div class="cat_bar">
 				<h3 class="catbg centertext">
-					', $context['showing_all_topics'] ? $txt['msg_alert_none'] : $txt['unread_topics_visit_none'], '
+					', $context['showing_all_topics'] ? $txt['topic_alert_none'] : $txt['unread_topics_visit_none'], '
 				</h3>
 			</div>';
 
@@ -374,7 +374,7 @@ function template_replies()
 		echo '
 			<div class="cat_bar">
 				<h3 class="catbg centertext">
-					', $context['showing_all_topics'] ? $txt['msg_alert_none'] : $txt['unread_topics_visit_none'], '
+					', $context['showing_all_topics'] ? $txt['topic_alert_none'] : $txt['unread_topics_visit_none'], '
 				</h3>
 			</div>';
 

+ 3 - 1
Themes/default/languages/index.english.php

@@ -152,7 +152,6 @@ $txt['post_awaiting_approval'] = 'Note: This message is awaiting approval by a m
 $txt['there_are_unapproved_topics'] = 'There are %1$s topics and %2$s posts awaiting approval in this board. Click <a href="%3$s">here</a> to view them all.';
 $txt['send_message'] = 'Send message';
 
-$txt['msg_alert_none'] = 'No messages...';
 $txt['msg_alert_you_have'] = 'you have'; //Deprecated
 $txt['msg_alert_messages'] = 'messages'; //Deprecated
 $txt['msg_alert_no_messages'] = 'you don\'t have any message';
@@ -162,6 +161,9 @@ $txt['msg_alert_one_new'] = '1 is new';
 $txt['msg_alert_many_new'] = '%1$d are new';
 $txt['remove_message'] = 'Remove this message';
 
+$txt['topic_alert_none'] = 'No messages...';
+$txt['pm_alert_none'] = 'No messages...';
+
 $txt['online_users'] = 'Users Online';
 $txt['personal_message'] = 'Personal Message';
 $txt['jump_to'] = 'Jump to';