Skip to content
Browse files

fixed some translation strings I missed

  • Loading branch information...
1 parent 723cb29 commit 0882c77b0549894fa42917e410814569d8a63766 @svivian committed Nov 6, 2012
Showing with 18 additions and 8 deletions.
  1. +10 −0 qa-uact-lang-default.php
  2. +5 −5 qa-uact-layer.php
  3. +3 −3 qa-user-activity.php
View
10 qa-uact-lang-default.php
@@ -5,8 +5,14 @@
*/
return array(
+
'questions_by' => 'Questions asked by ^',
'answers_by' => 'Answers posted by ^',
+ 'all_questions_by' => 'All questions by ^',
+ 'all_answers_by' => 'All answers by ^',
+ 'all_questions' => 'All questions',
+ 'all_answers' => 'All answers',
+ 'more_activity' => 'More activity',
'question' => 'question',
'questions' => 'questions',
@@ -19,4 +25,8 @@
'best_answers_given' => 'answers selected',
'best_answer_received' => 'best answer',
'best_answers_received' => 'best answers',
+
+ 'admin_nocss' => 'Don\'t add CSS inline',
+ 'admin_nocss_note' => 'Tick if you added the CSS to your own stylesheet (more efficient).',
+
);
View
10 qa-uact-layer.php
@@ -16,10 +16,10 @@ function q_list_and_form($q_list)
{
$this->output(
'<div class="qa-useract-page-links">',
- ' More activity: ',
- ' <a href="' . qa_path('user-activity/questions/'.$handle) . '">All questions</a>',
+ qa_lang_html('useractivity/more_activity') . ':',
+ ' <a href="' . qa_path('user-activity/questions/'.$handle) . '">' . qa_lang_html('useractivity/all_questions') . '</a>',
' &bull; ',
- ' <a href="' . qa_path('user-activity/answers/'.$handle) . '">All answers</a>',
+ ' <a href="' . qa_path('user-activity/answers/'.$handle) . '">' . qa_lang_html('useractivity/all_answers') . '</a>',
'</div>'
);
}
@@ -37,12 +37,12 @@ function form_fields($form, $columns)
if ( $key === 'questions' )
{
$url = qa_path('user-activity/questions/'.$handle);
- $field['value'] .= ' &mdash; <a href="' . $url . '">All questions by ' . qa_html($handle) . ' &rsaquo;</a>';
+ $field['value'] .= ' &mdash; <a href="' . $url . '">' . qa_lang_html_sub('useractivity/all_questions_by', $handle) . ' &rsaquo;</a>';
}
else if ( $key === 'answers' )
{
$url = qa_path('user-activity/answers/'.$handle);
- $field['value'] .= ' &mdash; <a href="' . $url . '">All answers by ' . qa_html($handle) . ' &rsaquo;</a>';
+ $field['value'] .= ' &mdash; <a href="' . $url . '">' . qa_lang_html_sub('useractivity/all_answers_by', $handle) . ' &rsaquo;</a>';
}
}
}
View
6 qa-user-activity.php
@@ -55,17 +55,17 @@ function admin_form()
'fields' => array(
'css' => array(
'type' => 'checkbox',
- 'label' => 'Don\'t add CSS inline',
+ 'label' => qa_lang_html('useractivity/admin_nocss'),
'tags' => 'NAME="ua_hidecss"',
'value' => qa_opt($this->cssopt) === '1',
- 'note' => 'Tick if you added the CSS to your own stylesheet (more efficient).',
+ 'note' => qa_lang_html('useractivity/admin_nocss_note'),
),
),
'buttons' => array(
'save' => array(
'tags' => 'NAME="user_activity_save"',
- 'label' => 'Save options',
+ 'label' => qa_lang_html('admin/save_options_button'),
'value' => '1',
),
),

0 comments on commit 0882c77

Please sign in to comment.
Something went wrong with that request. Please try again.