- Timestamp:
- 12/23/05 09:56:18 (3 years ago)
- Files:
-
- trunk/data/content/about_en.txt (moved) (moved from trunk/data/content/about.txt)
- trunk/data/content/about_fr.txt (added)
- trunk/data/content/unavailable_en.txt (moved) (moved from trunk/data/content/unavailable.txt)
- trunk/data/content/unavailable_fr.txt (added)
- trunk/frontend/config/settings.yml (modified) (2 diffs)
- trunk/frontend/i18n/global/messages.fr.xml (added)
- trunk/frontend/lib/helper/AnswerHelper.php (modified) (2 diffs)
- trunk/frontend/lib/helper/GlobalHelper.php (modified) (1 diff)
- trunk/frontend/lib/helper/QuestionHelper.php (modified) (2 diffs)
- trunk/frontend/lib/helper/UserHelper.php (modified) (3 diffs)
- trunk/frontend/lib/myTagFilter.class.php (modified) (1 diff)
- trunk/frontend/modules/administrator/templates/_user_options.php (modified) (1 diff)
- trunk/frontend/modules/answer/templates/_answer.php (modified) (1 diff)
- trunk/frontend/modules/answer/templates/_list.php (modified) (1 diff)
- trunk/frontend/modules/answer/templates/recentSuccess.php (modified) (1 diff)
- trunk/frontend/modules/content/actions/actions.class.php (modified) (2 diffs)
- trunk/frontend/modules/content/templates/_markdown_help.php (modified) (1 diff)
- trunk/frontend/modules/moderator/templates/_answer_options.php (modified) (1 diff)
- trunk/frontend/modules/moderator/templates/_question_options.php (modified) (1 diff)
- trunk/frontend/modules/moderator/templates/reportedAnswersSuccess.php (modified) (2 diffs)
- trunk/frontend/modules/moderator/templates/reportedQuestionsSuccess.php (modified) (1 diff)
- trunk/frontend/modules/moderator/templates/unpopularTagsSuccess.php (modified) (1 diff)
- trunk/frontend/modules/question/templates/_interested_user.php (modified) (1 diff)
- trunk/frontend/modules/question/templates/_question_block.php (modified) (3 diffs)
- trunk/frontend/modules/question/templates/_search.php (modified) (1 diff)
- trunk/frontend/modules/question/templates/addSuccess.php (modified) (3 diffs)
- trunk/frontend/modules/question/templates/listSuccess.php (modified) (1 diff)
- trunk/frontend/modules/question/templates/recentSuccess.php (modified) (1 diff)
- trunk/frontend/modules/question/templates/searchSuccess.php (modified) (2 diffs)
- trunk/frontend/modules/question/templates/showSuccess.php (modified) (2 diffs)
- trunk/frontend/modules/sidebar/templates/_administration.php (modified) (1 diff)
- trunk/frontend/modules/sidebar/templates/_moderation.php (modified) (1 diff)
- trunk/frontend/modules/sidebar/templates/_rss_links.php (modified) (1 diff)
- trunk/frontend/modules/sidebar/templates/defaultSuccess.php (modified) (1 diff)
- trunk/frontend/modules/sidebar/templates/questionSuccess.php (modified) (2 diffs)
- trunk/frontend/modules/tag/templates/_question_tags.php (modified) (1 diff)
- trunk/frontend/modules/tag/templates/popularSuccess.php (modified) (1 diff)
- trunk/frontend/modules/tag/templates/showSuccess.php (modified) (1 diff)
- trunk/frontend/modules/user/templates/listInterestedBySuccess.php (modified) (2 diffs)
- trunk/frontend/modules/user/templates/loginSuccess.php (modified) (4 diffs)
- trunk/frontend/modules/user/templates/passwordRequestMailSent.php (modified) (1 diff)
- trunk/frontend/modules/user/templates/passwordRequestSuccess.php (modified) (1 diff)
- trunk/frontend/modules/user/templates/showSuccess.php (modified) (10 diffs)
- trunk/frontend/modules/user/validate/passwordRequest.yml (modified) (2 diffs)
- trunk/frontend/templates/layout.php (modified) (3 diffs)
- trunk/frontend/templates/popularSuccess.php (deleted)
- trunk/lib/model/QuestionTagPeer.php (modified) (2 diffs)
- trunk/lib/myTools.class.php (modified) (1 diff)
- trunk/web/images/feed.gif (added)
- trunk/web/images/rss.gif (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/frontend/config/settings.yml
r57 r64 28 28 29 29 available: on 30 31 standard_helpers: Partial,Cache,Form,I18N 32 33 is_i18n: on 30 34 31 35 ; default_module: default … … 65 69 ; tidy: on 66 70 ; 67 ; is_i18n: off68 71 ; default_culture: en 69 72 ; trunk/frontend/lib/helper/AnswerHelper.php
r55 r64 53 53 use_helper('Javascript'); 54 54 55 $text = '[ report to moderator]';55 $text = '['.__('report to moderator').']'; 56 56 if ($user->isAuthenticated()) 57 57 { … … 60 60 { 61 61 // already spam for this user 62 return '[ reported as spam]';62 return '['.__('reported as spam').']'; 63 63 } 64 64 else trunk/frontend/lib/helper/GlobalHelper.php
r38 r64 3 3 function link_to_rss($name, $uri) 4 4 { 5 return link_to(image_tag(' rss.gif', array('alt' => $name, 'title' => $name, 'align' => 'absmiddle')), $uri);5 return link_to(image_tag('feed.gif', array('alt' => $name, 'title' => $name, 'align' => 'absmiddle')), $uri); 6 6 } 7 7 trunk/frontend/lib/helper/QuestionHelper.php
r55 r64 22 22 use_helper('Javascript'); 23 23 24 $text = '[ report to moderator]';24 $text = '['.__('report to moderator').']'; 25 25 if ($user->isAuthenticated()) 26 26 { … … 29 29 { 30 30 // already spam for this user 31 return '[ reported as spam]';31 return '['.__('reported as spam').']'; 32 32 } 33 33 else trunk/frontend/lib/helper/UserHelper.php
r38 r64 11 11 { 12 12 // already interested 13 return 'interested!';13 return __('interested!'); 14 14 } 15 15 else 16 16 { 17 17 // didn't declare interest yet 18 return link_to_remote( 'interested?', array(18 return link_to_remote(__('interested?'), array( 19 19 'url' => 'user/interested?id='.$question->getId(), 20 20 'update' => array('success' => 'block_'.$question->getId()), … … 26 26 else 27 27 { 28 return link_to_login( 'interested?');28 return link_to_login(__('interested?')); 29 29 } 30 30 } … … 34 34 if ($user->getNickname() == 'anonymous') 35 35 { 36 return 'anonymous';36 return __('anonymous'); 37 37 } 38 38 else trunk/frontend/lib/myTagFilter.class.php
r49 r64 41 41 // add a custom stylesheet 42 42 $request->setAttribute('app/tag_filter', $tag, 'helper/asset/auto/stylesheet'); 43 44 // is the tag a culture? 45 if (is_readable(SF_APP_I18N_DIR.'/global/messages.'.strtolower($tag).'.xml')) 46 { 47 $this->getContext()->getUser()->setCulture(strtolower($tag)); 48 } 49 else 50 { 51 $this->getContext()->getUser()->setCulture('en'); 52 } 43 53 } 44 54 } trunk/frontend/modules/administrator/templates/_user_options.php
r55 r64 2 2 <div class="options"> 3 3 <?php if ($subscriber->getDeletions()): ?> 4 [< strong><?php echo $subscriber->getDeletions() ?></strong> contributions removed]4 [<?php echo __('%1% contributions removed', array('%1%' => $subscriber->getDeletions())) ?>] 5 5 <?php endif ?> 6 6 7 7 8 8 <?php if ($subscriber->getIsModerator()): ?> 9 <?php echo link_to('[ moderator-]', 'administrator/removeModerator?nickname='.$subscriber->getNickname()) ?>9 <?php echo link_to('['.__('moderator').' -]', 'administrator/removeModerator?nickname='.$subscriber->getNickname()) ?> 10 10 <?php else: ?> 11 <?php echo link_to('[ moderator+]', 'administrator/promoteModerator?nickname='.$subscriber->getNickname()) ?>11 <?php echo link_to('['.__('moderator').' +]', 'administrator/promoteModerator?nickname='.$subscriber->getNickname()) ?> 12 12 <?php endif ?> 13 13 14 14 15 15 <?php if ($subscriber->getIsAdministrator()): ?> 16 <?php echo link_to('[ administrator-]', 'administrator/removeAdministrator?nickname='.$subscriber->getNickname()) ?>16 <?php echo link_to('['.__('administrator').' -]', 'administrator/removeAdministrator?nickname='.$subscriber->getNickname()) ?> 17 17 <?php else: ?> 18 <?php echo link_to('[ administrator+]', 'administrator/promoteAdministrator?nickname='.$subscriber->getNickname()) ?>18 <?php echo link_to('['.__('administrator').' +]', 'administrator/promoteAdministrator?nickname='.$subscriber->getNickname()) ?> 19 19 <?php endif ?> 20 20 21 <?php echo link_to('[ delete user]', 'administrator/deleteUser?nickname='.$subscriber->getNickname(), 'confirm=Are you sure you want to delete this user and all his contributions?') ?>21 <?php echo link_to('['.__('delete user').']', 'administrator/deleteUser?nickname='.$subscriber->getNickname(), 'confirm='.__('Are you sure you want to delete this user and all his contributions?')) ?> 22 22 </div> 23 23 trunk/frontend/modules/answer/templates/_answer.php
r55 r64 7 7 <div class="answer_body"> 8 8 <?php echo $answer->getHtmlBody() ?> 9 <div class="subtitle" style="margin-top: -8px"> answered by <?php echo link_to_profile($answer->getUser()) ?> on <?php echo format_date($answer->getCreatedAt(), 'f') ?></div>9 <div class="subtitle" style="margin-top: -8px"><?php echo __('answered by %1% on %2%', array('%1%' => link_to_profile($answer->getUser()), '%2%' => format_date($answer->getCreatedAt(), 'f'))) ?></div> 10 10 <div class="options" id="report_answer_<?php echo $answer->getId() ?>"> 11 11 <?php echo link_to_report_answer($answer, $user) ?> trunk/frontend/modules/answer/templates/_list.php
r38 r64 18 18 <fieldset> 19 19 20 <label for="author"> author:</label>20 <label for="author"><?php echo __('author:') ?></label> 21 21 <div style="display: inline; float: left"> 22 22 <?php if ($user->isAuthenticated()): ?> 23 23 <?php echo $user->getNickname() ?> 24 24 <?php else: ?> 25 <?php echo 'anonymous coward' ?>26 <?php echo link_to_login('[ login]') ?>25 <?php echo __('anonymous coward') ?> 26 <?php echo link_to_login('['.__('login').']') ?> 27 27 <?php endif ?> 28 28 </div> 29 29 <br class="clearleft" /> 30 30 31 <label for="body"> your answer:</label>31 <label for="body"><?php echo __('your answer:') ?></label> 32 32 <?php echo textarea_tag('body', $params->get('body'), 'size=40x10') ?> 33 33 <br class="clearleft" /> trunk/frontend/modules/answer/templates/recentSuccess.php
r38 r64 1 1 <?php use_helpers('Date', 'Answer', 'Question') ?> 2 2 3 <h1> recent answers</h1>3 <h1><?php echo __('recent answers') ?></h1> 4 4 5 5 <div id="answers"> trunk/frontend/modules/content/actions/actions.class.php
r57 r64 15 15 require_once('markdown.php'); 16 16 17 $this->html = markdown(file_get_contents(SF_DATA_DIR.'/content/about.txt')); 17 $file = SF_DATA_DIR.'/content/about_'.$this->getUser()->getCulture().'.txt'; 18 if (!is_readable($file)) 19 { 20 $file = SF_DATA_DIR.'/content/about_en.txt'; 21 } 22 23 $this->html = markdown(file_get_contents($file)); 18 24 19 25 $this->setTitle('askeet! » about'); … … 24 30 require_once('markdown.php'); 25 31 26 $this->html = markdown(file_get_contents(SF_DATA_DIR.'/content/unavailable.txt')); 32 $file = SF_DATA_DIR.'/content/unavailable_'.$this->getUser()->getCulture().'.txt'; 33 if (!is_readable($file)) 34 { 35 $file = SF_DATA_DIR.'/content/unavailable_en.txt'; 36 } 27 37 28 38 $this->setTitle('askeet! » maintenance'); trunk/frontend/modules/content/templates/_markdown_help.php
r38 r64 6 6 7 7 <div class="in_form"> 8 <div class="small"> basic <?php echo link_to_function('markdown', "toggleMarkdownHelp()") ?> formatting allowed</div>8 <div class="small"><?php echo __('basic %1% formatting allowed', array('%1%' => link_to_function('markdown', "toggleMarkdownHelp()"))) ?></div> 9 9 <div id="markdown_help" style="display: none"> 10 10 <p>Phrase Emphasis</p> trunk/frontend/modules/moderator/templates/_answer_options.php
r55 r64 1 1 <?php if ($user->hasCredential('moderator')): ?> 2 2 <?php if ($answer->getReports()): ?> 3 [< strong><?php echo $answer->getReports() ?></strong> reports]4 <?php echo link_to('[ reset reports]', 'moderator/resetAnswerReports?id='.$answer->getId(), 'confirm=Are you sure you want to reset the report spam counter for this answer?') ?>3 [<?php echo __('%1% reports', array('%1%' => $answer->getReports())) ?>] 4 <?php echo link_to('['.__('reset reports').']', 'moderator/resetAnswerReports?id='.$answer->getId(), 'confirm='.__('Are you sure you want to reset the report spam counter for this answer?')) ?> 5 5 <?php endif ?> 6 <?php echo link_to('[ delete answer]', 'moderator/deleteAnswer?id='.$answer->getId(), 'confirm=Are you sure you want to delete this answer?') ?>6 <?php echo link_to('['.__('delete answer').']', 'moderator/deleteAnswer?id='.$answer->getId(), 'confirm='.__('Are you sure you want to delete this answer?')) ?> 7 7 <?php endif ?> trunk/frontend/modules/moderator/templates/_question_options.php
r55 r64 1 1 <?php if ($user->hasCredential('moderator')): ?> 2 2 <?php if ($question->getReports()): ?> 3 [< strong><?php echo $question->getReports() ?></strong> reports]4 <?php echo link_to('[ reset reports]', 'moderator/resetQuestionReports?stripped_title='.$question->getStrippedTitle(), 'confirm=Are you sure you want to reset the report spam counter for this question?') ?>3 [<?php echo __('%1% reports', array('%1%' => $question->getReports())) ?>] 4 <?php echo link_to('['.__('reset reports').']', 'moderator/resetQuestionReports?stripped_title='.$question->getStrippedTitle(), 'confirm='.__('Are you sure you want to reset the report spam counter for this question?')) ?> 5 5 <?php endif ?> 6 <?php echo link_to('[ delete question]', 'moderator/deleteQuestion?stripped_title='.$question->getStrippedTitle(), 'confirm=Are you sure you want to delete this question?') ?>6 <?php echo link_to('['.__('delete question').']', 'moderator/deleteQuestion?stripped_title='.$question->getStrippedTitle(), 'confirm='.__('Are you sure you want to delete this question?')) ?> 7 7 <?php endif ?> trunk/frontend/modules/moderator/templates/reportedAnswersSuccess.php
r55 r64 1 1 <?php use_helpers('Date', 'User', 'Global', 'Question') ?> 2 2 3 <h1> answers reported as spam</h1>3 <h1><?php echo __('answers reported as spam') ?></h1> 4 4 5 5 <div id="answers"> … … 8 8 <h2><?php echo link_to_question($answer->getQuestion()) ?></h2> 9 9 <?php echo $answer->getHtmlBody() ?> 10 <div class="subtitle" style="margin-top: -8px">answered by <?php echo link_to_profile($answer->getUser()) ?> on <?php echo format_date($answer->getCreatedAt(), 'f') ?></div> 10 <div class="subtitle" style="margin-top: -8px"> 11 <?php echo __('answered by %1% on %2%', array('%1%' => link_to_profile($answer->getUser()), '%2%' => format_date($answer->getCreatedAt(), 'f'))) ?> 12 </div> 11 13 <div class="options"> 12 14 <?php include_partial('moderator/answer_options', array('answer' => $answer)) ?> trunk/frontend/modules/moderator/templates/reportedQuestionsSuccess.php
r55 r64 1 1 <?php use_helpers('Text', 'Global', 'Question', 'Date', 'User') ?> 2 2 3 <h1> questions reported as spam</h1>3 <h1><?php echo __('questions reported as spam') ?></h1> 4 4 5 5 <?php foreach($question_pager->getResults() as $question): ?> 6 6 <div class="question"> 7 7 <h2><?php echo link_to_question($question) ?></h2> 8 <div class="subtitle">asked by <?php echo link_to_profile($question->getUser()) ?> on <?php echo format_date($question->getCreatedAt(), 'f') ?></div> 8 <div class="subtitle"> 9 <?php echo __('asked by %1% on %2%', array('%1%' => link_to_profile($question->getUser()), '%2%' => format_date($question->getCreatedAt(), 'f'))) ?> 10 </div> 9 11 <div><?php echo truncate_text(strip_tags($question->getHtmlBody()), 200) ?></div> 10 12 <div class="options"> trunk/frontend/modules/moderator/templates/unpopularTagsSuccess.php
r55 r64 1 <h1> unpopular tags</h1>1 <h1><?php echo __('unpopular tags') ?></h1> 2 2 3 3 <ul> 4 4 <?php foreach ($tags as $tag => $count): ?> 5 <li><?php echo $tag.' ('.$count.')' ?> <?php echo link_to('[ delete tag]', 'moderator/deleteTag?tag='.$tag, 'confirm=Are you sure you want to delete this tag?') ?></li>5 <li><?php echo $tag.' ('.$count.')' ?> <?php echo link_to('['.__('delete tag').']', 'moderator/deleteTag?tag='.$tag, 'confirm='.__('Are you sure you want to delete this tag?')) ?></li> 6 6 <?php endforeach ?> 7 7 </ul> trunk/frontend/modules/question/templates/_interested_user.php
r38 r64 18 18 19 19 <div class="interested_link"><?php echo link_to_user_interested($user, $question) ?></div> 20 trunk/frontend/modules/question/templates/_question_block.php
r58 r64 8 8 <h2><?php echo link_to_question($question) ?></h2> 9 9 10 <div class="subtitle">asked by <?php echo link_to_profile($question->getUser()) ?> on <?php echo format_date($question->getCreatedAt(), 'f') ?></div> 10 <div class="subtitle"> 11 <?php echo __('asked by %1% on %2%', array('%1%' => link_to_profile($question->getUser()), '%2%' => format_date($question->getCreatedAt(), 'f'))) ?> 12 </div> 11 13 12 14 <div class="question_body"> … … 16 18 17 19 <?php if ($question->getAnswers()): ?> 18 <?php echo link_to(count($question->getAnswers()).' answer'.(count($question->getAnswers()) > 1 ? 's' : ''), '@question?stripped_title='.$question->getStrippedTitle()) ?> 20 <?php if (count($question->getAnswers()) > 1): ?> 21 <?php echo link_to(__('%1% answers', array('%1%' => count($question->getAnswers()))), '@question?stripped_title='.$question->getStrippedTitle()) ?> 22 <?php else: ?> 23 <?php echo link_to(__('%1% answer', array('%1%' => count($question->getAnswers()))), '@question?stripped_title='.$question->getStrippedTitle()) ?> 24 <?php endif ?> 19 25 <?php else: ?> 20 <?php echo link_to( 'answer it', '@question?stripped_title='.$question->getStrippedTitle()) ?>26 <?php echo link_to(__('answer it'), '@question?stripped_title='.$question->getStrippedTitle()) ?> 21 27 <?php endif ?> 22 28 … … 24 30 25 31 <?php if ($question->getTags()): ?> 26 tags:<?php echo tags_for_question($question) ?>32 <?php echo __('tags:') ?> <?php echo tags_for_question($question) ?> 27 33 <?php endif ?> 28 34 trunk/frontend/modules/question/templates/_search.php
r58 r64 4 4 5 5 <?php echo input_tag('search', htmlspecialchars($params->get('search')), array('style' => 'width: 150px')) ?> 6 <?php echo submit_tag( 'search it', 'class=small') ?>7 <?php echo checkbox_tag('search_all', 1, $params->get('search_all')) ?> <label for="search_all" class="small"> search with all words</label>6 <?php echo submit_tag(__('search it'), 'class=small') ?> 7 <?php echo checkbox_tag('search_all', 1, $params->get('search_all')) ?> <label for="search_all" class="small"><?php echo __('search with all words') ?></label> 8 8 9 9 </fieldset> trunk/frontend/modules/question/templates/addSuccess.php
r38 r64 1 1 <?php use_helper('Javascript') ?> 2 2 3 <h1> ask a question</h1>3 <h1><?php echo __('ask a question') ?></h1> 4 4 5 5 <div class="in_form"> 6 6 <p> 7 Have you looked for similar questions? Check if a related question already exists: The more interesting a 8 question is, the more people will be willing to answer it. 7 <?php echo __('Have you looked for similar questions? Check if a related question already exists: The more interesting a question is, the more people will be willing to answer it.') ?> 9 8 </p> 10 9 11 10 <p> 12 Be as accurate as you can when giving a title to your question. Keep it short and put the details 13 in the question body. 11 <?php echo __('Be as accurate as you can when giving a title to your question. Keep it short and put the details in the question body.') ?> 14 12 </p> 15 13 </div> … … 20 18 21 19 <?php echo form_error('title') ?> 22 <label for="title"> question:</label>20 <label for="title"><?php echo __('question:') ?></label> 23 21 <?php echo input_tag('title', $params->get('title'), 'size=40') ?> 24 22 <br class="clearleft" /> 25 23 26 24 <?php echo form_error('body') ?> 27 <label for="label"> describe it:</label>25 <label for="label"><?php echo __('describe it:') ?></label> 28 26 <?php echo textarea_tag('body', $params->get('body'), 'size=40x10') ?> 29 27 <br class="clearleft" /> … … 31 29 32 30 <?php echo form_error('tag') ?> 33 <label for="tag"> tags:</label>31 <label for="tag"><?php echo __('tags:') ?></label> 34 32 <?php echo input_auto_complete_tag('tag', '', '@tag_autocomplete', 'autocomplete=off', 'use_style=true') ?> 35 33 <br class="clearleft" /> 36 <div class="small in_form"> example: askeet "how to"</div>34 <div class="small in_form"><?php echo __('example: askeet "how to"') ?></div> 37 35 38 36 </fieldset> 39 37 40 38 <div class="right"> 41 <?php echo submit_tag( 'ask it') ?>39 <?php echo submit_tag(__('ask it')) ?> 42 40 </div> 43 41 </form> trunk/frontend/modules/question/templates/listSuccess.php
r14 r64 1 <h1> popular questions</h1>1 <h1><?php echo __('popular questions') ?></h1> 2 2 3 3 <?php echo include_partial('question_list', array('question_pager' => $question_pager)) ?> trunk/frontend/modules/question/templates/recentSuccess.php
r18 r64 1 <h1> recent questions</h1>1 <h1><?php echo __('recent questions') ?></h1> 2 2 3 3 <?php echo include_partial('question_list', array('question_pager' => $question_pager)) ?> trunk/frontend/modules/question/templates/searchSuccess.php
r58 r64 1 1 <?php use_helpers('Global') ?> 2 2 3 <h1> questions matching "<?php echo htmlspecialchars($params->get('search')) ?>"</h1>3 <h1><?php echo __('questions matching "%1%"', array('%1%' => htmlspecialchars($params->get('search')))) ?></h1> 4 4 5 5 <?php foreach($questions as $question): ?> … … 8 8 9 9 <?php if ($params->get('page') > 1 && !count($questions)): ?> 10 <div> There is no more result to your search.</div>10 <div><?php echo __('There is no more result to your search.') ?></div> 11 11 <?php elseif (!count($questions)): ?> 12 <div> Sorry, there is no question matching your search terms.</div>12 <div><?php echo __('Sorry, there is no question matching your search terms.') ?></div> 13 13 <?php endif ?> 14 14 15 15 <?php if (count($questions) == APP_SEARCH_RESULTS_MAX): ?> 16 16 <div class="right"> 17 <?php echo link_to( 'more results»', '@search_question?search='.$params->get('search').'&page='.($params->get('page', 1) + 1)) ?>17 <?php echo link_to(__('more results').' »', '@search_question?search='.$params->get('search').'&page='.($params->get('page', 1) + 1)) ?> 18 18 </div> 19 19 <?php endif ?> trunk/frontend/modules/question/templates/showSuccess.php
r55 r64 10 10 <h2><?php echo $question->getTitle() ?> <?php echo link_to_rss('this question feed', '@feed_question?stripped_title='.$question->getStrippedTitle()) ?></h2> 11 11 12 <div class="subtitle">asked by <?php echo link_to_profile($question->getUser()) ?> on <?php echo format_date($question->getCreatedAt(), 'f') ?></div> 12 <div class="subtitle"> 13 <?php echo __('asked by %1% on %2%', array('%1%' => link_to_profile($question->getUser()), '%2%' => format_date($question->getCreatedAt(), 'f'))) ?> 14 </div> 13 15 14 16 <div class="question_body"> … … 21 23 </div> 22 24 23 <h2> Answers</h2>25 <h2><?php echo __('Answers') ?></h2> 24 26 25 27 <?php include_partial('answer/list', array('question' => $question, 'answers' => $answers)) ?> trunk/frontend/modules/sidebar/templates/_administration.php
r55 r64 1 1 <?php if ($user->hasCredential('administrator')): ?> 2 <h2> administration</h2>2 <h2><?php echo __('administration') ?></h2> 3 3 4 4 <ul> 5 <li><?php echo link_to( 'moderator candidates', 'administrator/moderatorCandidates') ?> (<?php echo UserPeer::getModeratorCandidatesCount() ?>)</li>6 <li><?php echo link_to( 'moderator list', 'administrator/moderators') ?></li>7 <li><?php echo link_to( 'administrator list', 'administrator/administrators') ?></li>8 <li><?php echo link_to( 'problematic users', 'administrator/problematicUsers') ?> (<?php echo UserPeer::getProblematicUsersCount() ?>)</li>5 <li><?php echo link_to(__('moderator candidates'), 'administrator/moderatorCandidates') ?> (<?php echo UserPeer::getModeratorCandidatesCount() ?>)</li> 6 <li><?php echo link_to(__('moderator list'), 'administrator/moderators') ?></li> 7 <li><?php echo link_to(__('administrator list'), 'administrator/administrators') ?></li> 8 <li><?php echo link_to(__('problematic users'), 'administrator/problematicUsers') ?> (<?php echo UserPeer::getProblematicUsersCount() ?>)</li> 9 9 </ul> 10 10 <?php endif ?> trunk/frontend/modules/sidebar/templates/_moderation.php
r55 r64 1 1 <?php if ($user->hasCredential('moderator')): ?> 2 <h2> moderation</h2>2 <h2><?php echo __('moderation') ?></h2> 3 3 4 4 <ul> 5 <li><?php echo link_to( 'reported questions', 'moderator/reportedQuestions') ?> (<?php echo QuestionPeer::getReportCount() ?>)</li>6 <li><?php echo link_to( 'reported answers', 'moderator/reportedAnswers') ?> (<?php echo AnswerPeer::getReportCount() ?>)</li>7 <li><?php echo link_to( 'unpopular tags', 'moderator/unpopularTags') ?></li>5 <li><?php echo link_to(__('reported questions'), 'moderator/reportedQuestions') ?> (<?php echo QuestionPeer::getReportCount() ?>)</li> 6 <li><?php echo link_to(__('reported answers'), 'moderator/reportedAnswers') ?> (<?php echo AnswerPeer::getReportCount() ?>)</li> 7 <li><?php echo link_to(__('unpopular tags'), 'moderator/unpopularTags') ?></li> 8 8 </ul> 9 9 <?php endif ?> trunk/frontend/modules/sidebar/templates/_rss_links.php
r38 r64 1 1 <ul id="rss_links"> 2 <li><?php echo link_to( 'popular questions', '@homepage') ?> <?php echo link_to_rss('popular questions', 'feed/popular') ?></li>3 <li><?php echo link_to( 'latest questions', '@recent_questions') ?> <?php echo link_to_rss('latest questions', '@feed_recent_questions') ?></li>4 <li><?php echo link_to( 'latest answers', '@recent_answers') ?> <?php echo link_to_rss('latest answers', '@feed_recent_answers') ?></li>2 <li><?php echo link_to(__('popular questions'), '@homepage') ?> <?php echo link_to_rss('popular questions', 'feed/popular') ?></li> 3 <li><?php echo link_to(__('latest questions'), '@recent_questions') ?> <?php echo link_to_rss('latest questions', '@feed_recent_questions') ?></li> 4 <li><?php echo link_to(__('latest answers'), '@recent_answers') ?> <?php echo link_to_rss('latest answers', '@feed_recent_answers') ?></li> 5 5 </ul> trunk/frontend/modules/sidebar/templates/defaultSuccess.php
r58 r64 2 2 3 3 <div id="add_question"> 4 <?php echo link_to_login( 'ask a new question', '@add_question') ?>4 <?php echo link_to_login(__('ask a new question'), '@add_question') ?> 5 5 </div> 6 6 7 <h2> popular tags</h2>7 <h2><?php echo __('popular tags') ?></h2> 8 8 <?php echo include_partial('tag/tag_cloud', array('tags' => QuestionTagPeer::getPopularTags(20))) ?> 9 <div class="right" style="padding-top: 5px"><?php echo link_to( 'more popular tags»', '@popular_tags') ?></div>9 <div class="right" style="padding-top: 5px"><?php echo link_to(__('more popular tags').' »', '@popular_tags') ?></div> 10 10 11 <h2> find it</h2>11 <h2><?php echo __('find it') ?></h2> 12 12 <?php echo include_partial('question/search') ?> 13 13 14 <h2> browse askeet</h2>14 <h2><?php echo __('browse askeet') ?></h2> 15 15 <?php echo include_partial('rss_links') ?> 16 16 trunk/frontend/modules/sidebar/templates/questionSuccess.php
r58 r64 2 2 3 3 <div id="add_question"> 4 <?php echo link_to_login( 'ask a new question', '@add_question') ?>4 <?php echo link_to_login(__('ask a new question'), '@add_question') ?> 5 5 </div> 6 6 7 <h2> find it</h2>7 <h2><?php echo __('find it') ?></h2> 8 8 <?php echo include_partial('question/search') ?> 9 9 10 <h2> browse askeet</h2>10 <h2><?php echo __('browse askeet') ?></h2> 11 11 <?php echo include_partial('rss_links') ?> 12 12 13 <h2> question tags</h2>13 <h2><?php echo __('question tags') ?></h2> 14 14 15 15 <ul id="question_tags"> … … 18 18 19 19 <?php if ($user->isAuthenticated()): ?> 20 <div> add your own:20 <div><?php echo __('add your own:') ?> 21 21 <?php echo form_remote_tag(array( 22 22 'url' => '@tag_add', trunk/frontend/modules/tag/templates/_question_tags.php
r55 r64 19 19 20 20 <?php if ($user->hasCredential('moderator')): ?> 21 <?php echo link_to('[ remove tag]', 'moderator/deleteTagForQuestion?tag='.$tag.'&question_id='.$question->getId(), 'confirm=Are you sure you want to delete this tag for this question?') ?>21 <?php echo link_to('['.__('delete tag').']', 'moderator/deleteTagForQuestion?tag='.$tag.'&question_id='.$question->getId(), 'confirm='.__('Are you sure you want to delete this tag for this question?')) ?> 22 22 <?php endif ?> 23 23 </li> trunk/frontend/modules/tag/templates/popularSuccess.php
r38 r64 1 <h1> Popular tags</h1>1 <h1><?php echo __('popular tags') ?></h1> 2 2 3 3 <?php echo include_partial('tag/tag_cloud', array('tags' => $tags)) ?> trunk/frontend/modules/tag/templates/showSuccess.php
r38 r64 1 <h1> popular questions for tag '<?php echo $request->getParameter('tag') ?>'</h1>1 <h1><?php echo __('popular questions for tag "%1%"', array('%1%' => $request->getParameter('tag'))) ?></h1> 2 2 3 3 <?php echo include_partial('question/question_list', array('question_pager' => $question_pager)) ?> trunk/frontend/modules/user/templates/listInterestedBySuccess.php
r23 r64 2 2 3 3 <h2><?php echo $question->getTitle() ?></h2> 4 <p> asked by <strong><?php echo $question->getUser() ?></strong> <?php echo time_ago_in_words($question->getCreatedAt('U')) ?> ago</p>4 <p><?php echo __('asked by %1% %2% ago', array('%1%' => '<strong>'.$question->getUser().'</strong>', '%2%' => time_ago_in_words($question->getCreatedAt('U')))) ?></p> 5 5 6 <?php echo $interested_users_pager->getNbResults() ?> askeet users are interested by this question6 <?php echo __('%1% askeet users are interested by this question', array('%1%' => $interested_users_pager->getNbResults())) ?> 7 7 <ul> 8 8 <?php foreach ($interested_users_pager->getResults() as $interested_user): ?> … … 12 12 13 13 <div id="users_pager"> 14 <?php echo pager_navigation($interested_users_pager, '@user_interests?stripped_title='.$request->getParameter('stripped_title 15 ')) ?> 14 <?php echo pager_navigation($interested_users_pager, '@user_interests?stripped_title='.$request->getParameter('stripped_title')) ?> 16 15 </div> trunk/frontend/modules/user/templates/loginSuccess.php
r38 r64 1 1 <?php use_helpers('Validation', 'Javascript') ?> 2 2 3 <h1> sign in / register</h1>3 <h1><?php echo __('sign in / register') ?></h1> 4 4 5 5 <div class="in_form"> 6 <p> Registration is free and required only to create a new question or rate an answer.</p>6 <p><?php echo __('Registration is free and required only to create a new question or rate an answer.') ?></p> 7 7 </div> 8 8 … … 12 12 13 13 <?php echo form_error('nickname') ?> 14 <label for="nickname"> nickname:</label>14 <label for="nickname"><?php echo __('nickname:') ?></label> 15 15 <?php echo input_tag('nickname', $params->get('nickname')) ?> 16 16 <br class="clearleft"/> 17 17 18 18 <?php echo form_error('password') ?> 19 <label for="password"> password:</label>20 <?php echo input_password_tag('password') ?> <?php echo link_to( 'forgot your password?', '@user_require_password') ?>19 <label for="password"><?php echo __('password:') ?></label> 20 <?php echo input_password_tag('password') ?> <?php echo link_to(__('forgot your password?'), '@user_require_password') ?> 21 21 <br class="clearleft"/> 22 22 23 23 <div class="in_form"> 24 24 <?php echo checkbox_tag('new', 1, $request->getAttribute('newaccount', false) ? 1 : 0, array('onclick' => 'toggleForm()')) ?> 25 <label for="new" style="display: inline; float: none"> click here to create a new account</label>25 <label for="new" style="display: inline; float: none"><?php echo __('click here to create a new account') ?></label> 26 26 </div> 27 27 <br class="clearleft"/> … … 29 29 <div id="new_account"<?php echo $request->getAttribute('newaccount', false) ? '' : ' style="display: none"' ?>> 30 30 31 <label for="password_bis"> confirm your password:</label>31 <label for="password_bis"><?php echo __('confirm your password:') ?></label> 32 32 <?php echo input_password_tag('password_bis') ?> 33 33 <br class="clearleft"/> 34 34 35 35 <?php echo form_error('email') ?> 36 <label for="email"> your email:</label>36 <label for="email"><?php echo __('your email:') ?></label> 37 37 <?php echo input_tag('email', $params->get('email')) ?> 38 38 <br class="clearleft"/> 39 <div class="small in_form"> askeet will never disclose this address to a third party</div>39 <div class="small in_form"><?php echo __('askeet will never disclose this address to a third party') ?></div> 40 40 41 41 </div> … … 45 45 <?php echo input_hidden_tag('referer', $request->getAttribute('referer')) ?> 46 46 <div class="right"> 47 <?php echo submit_tag( 'sign in') ?>47 <?php echo submit_tag(__('sign in')) ?> 48 48 </div> 49 49 trunk/frontend/modules/user/templates/passwordRequestMailSent.php
r29 r64 1 <h2>Confirmation - login information sent</h2> 2 <p>Your login information was sent to</p> 1 <h1><?php echo __('Confirmation - login information sent') ?></h1> 2 3 <p><?php echo __('Your login information was sent to') ?></p> 3 4 <p><?php echo $request->getParameter('email') ?></p> 4 <p> You should receive it shortly, so you can proceed to the <?php echo link_to('login page','@login') ?>.</p>5 <p><?php echo __('You should receive it shortly, so you can proceed to the %1%.', array('%1%' => link_to(__('login page'),'@login'))) ?></p>
