Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add little changes

  • Loading branch information...
commit ecdebba6acbc29a0329c72268cfefec5cbeca6cd 1 parent b655724
@iam-merlin iam-merlin authored
View
1  .gitignore
@@ -6,5 +6,6 @@ app/config/database.php
.buildpath
.project
.settings/*
+
app/webroot/img/thumbs/*
app/webroot/img/uploads/*
View
7 app/config/core.php
@@ -33,7 +33,7 @@
* In production mode, flash messages redirect after a time interval.
* In development mode, you need to click the flash message to continue.
*/
- Configure::write('debug', 0);
+ Configure::write('debug', 2);
/**
* CakePHP Log Level:
@@ -91,7 +91,7 @@
* Turn off all caching application-wide.
*
*/
- //Configure::write('Cache.disable', true);
+ Configure::write('Cache.disable', true);
/**
* Enable cache checking.
@@ -306,4 +306,5 @@
Configure::write('Coordino.version', '1.0');
Configure::write('recaptcha.publickey', '6LcgswkAAAAAAC15Pg3j8YDKFCi-mHYO_qHpoPH6');
- Configure::write('recaptcha.privatekey', '6LcgswkAAAAAAApN8RkAjBhu2RgDGXGwh5onuUpW');
+ Configure::write('recaptcha.privatekey', '6LcgswkAAAAAAApN8RkAjBhu2RgDGXGwh5onuUpW');
+ Configure::write('Config.language', 'fre');
View
BIN  app/tmp/cache/models/.DS_Store
Binary file not shown
View
BIN  app/tmp/cache/persistent/.DS_Store
Binary file not shown
View
2  app/tmp/cache/persistent/cake_core_dir_map
@@ -1,2 +0,0 @@
-1399055678
-a:8:{s:61:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs";a:25:{i:0;s:61:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs";i:1;s:67:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/cache";i:2;s:72:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/controller";i:3;s:83:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/controller/components";i:4;s:65:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/log";i:5;s:67:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/model";i:6;s:77:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/model/behaviors";i:7;s:79:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/model/datasources";i:8;s:83:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/model/datasources/dbo";i:9;s:66:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view";i:10;s:75:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/elements";i:11;s:81:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/elements/email";i:12;s:86:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/elements/email/html";i:13;s:86:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/elements/email/text";i:14;s:73:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/errors";i:15;s:74:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helpers";i:16;s:74:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts";i:17;s:80:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/email";i:18;s:85:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/email/html";i:19;s:85:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/email/text";i:20;s:77:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/js";i:21;s:78:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/rss";i:22;s:78:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/xml";i:23;s:72:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/pages";i:24;s:76:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/scaffolds";}s:67:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/controllers";a:2:{i:0;s:67:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/controllers";i:1;s:78:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/controllers/components";}s:61:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views";a:22:{i:0;s:61:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views";i:1;s:66:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/bugs";i:2;s:70:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/elements";i:3;s:76:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/elements/email";i:4;s:81:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/elements/email/html";i:5;s:81:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/elements/email/text";i:6;s:68:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/errors";i:7;s:69:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/helpers";i:8;s:71:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/installer";i:9;s:69:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/layouts";i:10;s:75:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/layouts/email";i:11;s:80:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/layouts/email/html";i:12;s:80:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/layouts/email/text";i:13;s:72:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/layouts/js";i:14;s:73:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/layouts/rss";i:15;s:73:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/layouts/xml";i:16;s:67:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/pages";i:17;s:67:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/posts";i:18;s:71:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/scaffolds";i:19;s:66:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/tags";i:20;s:67:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/users";i:21;s:69:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/widgets";}s:66:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view";a:16:{i:0;s:66:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view";i:1;s:75:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/elements";i:2;s:81:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/elements/email";i:3;s:86:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/elements/email/html";i:4;s:86:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/elements/email/text";i:5;s:73:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/errors";i:6;s:74:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helpers";i:7;s:74:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts";i:8;s:80:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/email";i:9;s:85:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/email/html";i:10;s:85:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/email/text";i:11;s:77:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/js";i:12;s:78:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/rss";i:13;s:78:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/layouts/xml";i:14;s:72:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/pages";i:15;s:76:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/scaffolds";}s:78:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/controllers/components";a:1:{i:0;s:78:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/controllers/components";}s:83:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/controller/components";a:1:{i:0;s:83:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/controller/components";}s:62:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/models";a:3:{i:0;s:62:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/models";i:1;s:72:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/models/behaviors";i:2;s:74:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/models/datasources";}s:69:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/helpers";a:1:{i:0;s:69:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/views/helpers";}}
View
2  app/tmp/cache/persistent/cake_core_file_map
@@ -1,2 +0,0 @@
-1399055678
-a:6:{s:4:"Core";a:7:{s:6:"Router";s:72:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/router.php";s:13:"ClassRegistry";s:80:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/class_registry.php";s:12:"Overloadable";s:78:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/overloadable.php";s:8:"Security";s:74:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/security.php";s:9:"Multibyte";s:75:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/multibyte.php";s:10:"Validation";s:76:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/validation.php";s:6:"String";s:72:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/string.php";}s:10:"Controller";a:4:{s:9:"Component";s:86:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/controller/component.php";s:10:"Controller";s:87:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/controller/controller.php";s:13:"AppController";s:74:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/app_controller.php";s:19:"InstallerController";s:92:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/controllers/installer_controller.php";}s:4:"View";a:2:{s:6:"Helper";s:77:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helper.php";s:4:"View";s:75:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/view.php";}s:9:"Component";a:1:{s:16:"SessionComponent";s:95:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/controller/components/session.php";}s:5:"Model";a:4:{s:13:"ModelBehavior";s:86:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/model/model_behavior.php";s:17:"ConnectionManager";s:90:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/model/connection_manager.php";s:8:"AppModel";s:81:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/model/app_model.php";s:9:"Installer";s:76:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/app/models/installer.php";}s:6:"Helper";a:6:{s:9:"AppHelper";s:89:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helpers/app_helper.php";s:13:"SessionHelper";s:86:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helpers/session.php";s:10:"HtmlHelper";s:83:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helpers/html.php";s:10:"FormHelper";s:83:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helpers/form.php";s:10:"TimeHelper";s:83:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helpers/time.php";s:16:"JavascriptHelper";s:89:"/Applications/XAMPP/xamppfiles/htdocs/coordino-open/cake/libs/view/helpers/javascript.php";}}
View
2  app/tmp/cache/persistent/cake_core_object_map
@@ -1,2 +0,0 @@
-1399055678
-a:1:{s:6:"plugin";a:0:{}}
View
BIN  app/tmp/cache/views/.DS_Store
Binary file not shown
View
2  app/tmp/logs/debug.log
@@ -0,0 +1,2 @@
+2012-05-09 04:56:05 Notice: Notice (8): Undefined variable: count in [/home/dev/public_html/Coordino/app/views/posts/display.ctp, line 12]
+2012-05-09 05:39:58 Notice: Notice (8): Use of undefined constant DEFAULT_LANGUAGE - assumed 'DEFAULT_LANGUAGE' in [/home/dev/public_html/Coordino/app/controllers/components/p28n.php, line 7]
View
16 app/tmp/logs/error.log
@@ -0,0 +1,16 @@
+2012-05-09 03:27:05 Warning: Warning (512): /home/dev/public_html/Coordino/app/tmp/cache/ is not writable in [/home/dev/public_html/Coordino/cake/libs/cache/file.php, line 267]
+2012-05-09 03:27:10 Warning: Warning (512): /home/dev/public_html/Coordino/app/tmp/cache/ is not writable in [/home/dev/public_html/Coordino/cake/libs/cache/file.php, line 267]
+2012-05-09 04:33:03 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:33:44 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:33:48 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:34:49 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:36:21 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:37:29 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:38:00 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:40:55 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:46:08 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:46:42 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:52:23 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:52:25 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:52:26 Warning: Warning (2): strlen() expects parameter 1 to be string, array given in [/home/dev/public_html/Coordino/cake/libs/i18n.php, line 184]
+2012-05-09 04:59:40 Warning: Warning (2): Invalid argument supplied for foreach() in [/home/dev/public_html/Coordino/app/views/posts/view.ctp, line 103]
View
51 app/views/layouts/default.ctp
@@ -46,7 +46,7 @@
<? if(!$session->check('Auth.User.id')) { ?>
<li>
<?=$html->link(
- 'login',
+ __('login',true),
array('controller' => 'users', 'action' => 'login')
);
?>
@@ -55,7 +55,7 @@
<? if(!$session->check('Auth.User.id') || $session->read('Auth.User.registered') == 0) { ?>
<li>
<?=$html->link(
- 'register',
+ __('register',true),
array('controller' => 'users', 'action' => 'register')
);
?>
@@ -63,7 +63,7 @@
<? } ?>
<li>
<?=$html->link(
- 'about',
+ __('about',true),
array('controller' => 'pages', 'action' => 'display', 'about')
);
?>
@@ -71,51 +71,58 @@
<? if($session->read('Auth.User.id')) { ?>
<li>
<?=$html->link(
- 'settings',
+ __('settings',true),
'/users/settings/' . $session->read('Auth.User.public_key')
);
?>
</li>
<? } ?>
+ <li>
+ <a href='#'><?php __('change language'); ?></a>
+ <ul>
+ <li><?=$html->link(__('english',true),'/lang/eng')?></li>
+ <li><?=$html->link(__('french',true),'/lang/fre')?></li>
+ </ul>
+ </li>
<? if($session->check('Auth.User.id') && $session->read('Auth.User.permission') != '') { ?>
<li>
<?=$html->link(
- 'admin',
+ __('admin',true),
array('controller' => 'users', 'action' => 'admin')
);
?>
<ul>
<li>
<?=$html->link(
- 'Settings',
+ ucfirst(__('settings',true)),
array('controller' => 'users', 'action' => 'admin')
);
?>
</li>
<li>
<?=$html->link(
- 'Flagged Posts',
+ ucfirst(__('Flagged Posts',true)),
array('controller' => 'users', 'action' => 'flagged')
);
?>
</li>
<li>
<?=$html->link(
- 'User Management',
+ ucfirst(__('User Management',true)),
array('controller' => 'users', 'action' => 'admin_list')
);
?>
</li>
<li>
<?=$html->link(
- 'Blacklist',
+ ucfirst(__('Blacklist',true)),
array('controller' => 'users', 'action' => 'list_blacklist')
);
?>
</li>
<li>
<?=$html->link(
- 'Remote Settings',
+ ucfirst(__('Remote Settings',true)),
array('controller' => 'users', 'action' => 'remote_settings')
);
?>
@@ -127,7 +134,7 @@
<? if($session->check('Auth.User.id') && $session->read('Auth.User.registered') == 1) { ?>
<li>
<?=$html->link(
- 'logout',
+ __('logout',true),
array('controller' => 'users', 'action' => 'logout')
);
?>
@@ -142,16 +149,16 @@
<ul class="tabs">
<li>
- <?=$html->link(_('Questions'),'/');?>
+ <?=$html->link(__('Questions',true),'/');?>
</li>
- <li><?=$html->link(_('Tags'),'/tags');?></li>
- <li><?=$html->link(_('Unsolved'),'/questions/unanswered');?></li>
- <li><?=$html->link(_('Users'),'/users');?></li>
+ <li><?=$html->link(__('Tags',true),'/tags');?></li>
+ <li><?=$html->link(__('Unsolved',true),'/questions/unanswered');?></li>
+ <li><?=$html->link(__('Users',true),'/users');?></li>
</ul>
<ul class="tabs" style="float: right;">
<li>
<?=$html->link(
- _('Ask a Question'),
+ __('ask a question',true),
array('controller' => 'posts', 'action' => 'ask')
);
?>
@@ -178,8 +185,8 @@
<? } ?>
<?=$widget['Widget']['content'];?>
<? if(isset($admin) && $admin) { ?>
- <a href="/widgets/edit/<?=$widget['Widget']['id'];?>" title="Edit this Widget">edit</a> |
- <a href="/widgets/delete/<?=$widget['Widget']['id'];?>" title="Delete Widget">del</a>
+ <a href="/widgets/edit/<?=$widget['Widget']['id'];?>" title="Edit this Widget"><?php __('edit'); ?></a> |
+ <a href="/widgets/delete/<?=$widget['Widget']['id'];?>" title="Delete Widget"><?php __('del'); ?></a>
<? } ?>
</div>
<?
@@ -189,7 +196,7 @@
if(isset($admin) && $admin):
?>
<a href="/widgets/add<?php echo $_SERVER['REQUEST_URI']; ?>">
- <img src="/img/icons/plugin_edit.png" alt="Edit"/> add widgets to this page.
+ <img src="/img/icons/plugin_edit.png" alt="Edit"/><?php __('add widgets to this page'); ?>.
</a>
<? endif; ?>
@@ -200,10 +207,10 @@
<div id="footer" class="wrapper">
<div class="left">
<ul class="tabs">
- <li><a href="/">home</a></li>
- <li><a href="/questions/ask">ask a question</a></li>
+ <li><a href="/"><?php __('home'); ?></a></li>
+ <li><a href="/questions/ask"><?php __('ask a question'); ?></a></li>
- <li><a href="/about">about</a></li>
+ <li><a href="/about"><?php __('about'); ?></a></li>
</ul>
</div>
View
6 app/views/posts/display.ctp
@@ -1,15 +1,15 @@
<?php
foreach($questions as $question) { ?>
<div class="list_question wrapper">
-
+ <?php //var_dump($question); die(count($question['Answer'])); ?>
<div class="wrapper" style="float: left;">
<div class="list_answers <?= (count($question['Answer']) < 1) ? 'list_answers_unanswered' : 'list_answers_answered';?>">
<span class="large_text"><?=count($question['Answer']);?></span>
- <span>answer<?=(count($question['Answer']) == 1) ? '' : 's';?></span>
+ <span><?php __n('answer','answers',count($question['Answer']))?></span>
</div>
<div class="list_views quiet">
<span class="large_text"><?=$question['Post']['views'];?></span>
- <span>view<?=($question['Post']['views'] == 1) ? '' : 's';?></span>
+ <span><?php __n('view','views',$question['Post']['views']);?></span>
</div>
</div>
View
18 app/views/posts/view.ctp
@@ -44,7 +44,7 @@
<div style="width: 100px; float: left;">
<? if($question['Post']['user_id'] != $session->read('Auth.User.id')) { ?>
<?=$html->link(
- 'flag',
+ __('flag',true),
'/flag/' . $question['Post']['public_key']
);
?>
@@ -52,13 +52,15 @@
if($question['Post']['user_id'] == $session->read('Auth.User.id') || isset($rep_rights) || $admin) { ?>
|
<?=$html->link(
- 'edit',
+ __('edit',true),
'/questions/' . $question['Post']['public_key'] . '/' . $question['Post']['url_title'] . '/edit');
}
?>
<?php if($admin): ?>
- | <a href="/posts/delete/<?php echo $question['Post']['id'];?>">del</a>
+ | <?=$html->link(
+ __('del',true),
+ '/posts/delete/'.$question['Post']['id']); ?></a>
<?php endif; ?>
</div>
@@ -141,7 +143,7 @@
</div>
<div class="comment_actions">
<?=$html->link(
- 'add comment',
+ __('add comment',true),
'#');
?>
</div>
@@ -149,7 +151,7 @@
</div>
<div id="answers">
- <h2>Answers</h2>
+ <h2><?php __n('answer','answers',count($answers));?></h2>
<hr/>
<? foreach($answers as $answer) { ?>
<div class="<?=($answer['Answer']['status'] == 'correct') ? 'answered' : 'answer';?>" id="a_<?=$answer['Answer']['public_key']?>">
@@ -232,7 +234,7 @@
<? if($answer['Answer']['user_id'] == $session->read('Auth.User.id') || isset($rep_rights)) { ?>
<span class="quiet">|</span>
<?=$html->link(
- 'edit',
+ __('edit',true),
'/answers/' . $answer['Answer']['public_key'] . '/edit');
}
?>
@@ -283,7 +285,7 @@
}
}
?>
- <h3>Your Answer</h3>
+ <h3><?php __('your answer'); ?></h3>
<?=$form->create(null, array(
'url' => '/questions/' . $question['Post']['public_key'] . '/' . $question['Post']['url_title'] . '/answer')
); ?>
@@ -307,5 +309,5 @@
<?$recaptcha->display_form('echo');?>
<br/>
- <?=$form->end('Answer');?>
+ <?=$form->end(__d('verb','Answer',true));?>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.