Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Commit

Permalink
fixed some translation strings I missed
Browse files Browse the repository at this point in the history
  • Loading branch information
svivian committed Nov 6, 2012
1 parent 723cb29 commit 0882c77
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
10 changes: 10 additions & 0 deletions qa-uact-lang-default.php
Expand Up @@ -5,8 +5,14 @@
*/ */


return array( return array(

'questions_by' => 'Questions asked by ^', 'questions_by' => 'Questions asked by ^',
'answers_by' => 'Answers posted 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', 'question' => 'question',
'questions' => 'questions', 'questions' => 'questions',
Expand All @@ -19,4 +25,8 @@
'best_answers_given' => 'answers selected', 'best_answers_given' => 'answers selected',
'best_answer_received' => 'best answer', 'best_answer_received' => 'best answer',
'best_answers_received' => 'best answers', '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).',

); );
10 changes: 5 additions & 5 deletions qa-uact-layer.php
Expand Up @@ -16,10 +16,10 @@ function q_list_and_form($q_list)
{ {
$this->output( $this->output(
'<div class="qa-useract-page-links">', '<div class="qa-useract-page-links">',
' More activity: ', qa_lang_html('useractivity/more_activity') . ':',
' <a href="' . qa_path('user-activity/questions/'.$handle) . '">All questions</a>', ' <a href="' . qa_path('user-activity/questions/'.$handle) . '">' . qa_lang_html('useractivity/all_questions') . '</a>',
' &bull; ', ' &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>' '</div>'
); );
} }
Expand All @@ -37,12 +37,12 @@ function form_fields($form, $columns)
if ( $key === 'questions' ) if ( $key === 'questions' )
{ {
$url = qa_path('user-activity/questions/'.$handle); $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' ) else if ( $key === 'answers' )
{ {
$url = qa_path('user-activity/answers/'.$handle); $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>';
} }
} }
} }
Expand Down
6 changes: 3 additions & 3 deletions qa-user-activity.php
Expand Up @@ -55,17 +55,17 @@ function admin_form()
'fields' => array( 'fields' => array(
'css' => array( 'css' => array(
'type' => 'checkbox', 'type' => 'checkbox',
'label' => 'Don\'t add CSS inline', 'label' => qa_lang_html('useractivity/admin_nocss'),
'tags' => 'NAME="ua_hidecss"', 'tags' => 'NAME="ua_hidecss"',
'value' => qa_opt($this->cssopt) === '1', '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( 'buttons' => array(
'save' => array( 'save' => array(
'tags' => 'NAME="user_activity_save"', 'tags' => 'NAME="user_activity_save"',
'label' => 'Save options', 'label' => qa_lang_html('admin/save_options_button'),
'value' => '1', 'value' => '1',
), ),
), ),
Expand Down

0 comments on commit 0882c77

Please sign in to comment.