Skip to content
Snippets Groups Projects
Commit 0409e634 authored by Richard Bukovansky's avatar Richard Bukovansky
Browse files

Translation issues on homepage and kb page

Adding possibility to use translations for some texts on homepage and main knowledgebase page.
parent 784184b6
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<input type="hidden" name="a" value="search"/> <input type="hidden" name="a" value="search"/>
<select name="topicId" style="width:100%;max-width:100%" <select name="topicId" style="width:100%;max-width:100%"
onchange="javascript:this.form.submit();"> onchange="javascript:this.form.submit();">
<option value=""> Browse by Topic </option> <option value=""><?php echo __("Browse by Topic"); ?></option>
<?php <?php
$topics = Topic::objects() $topics = Topic::objects()
->annotate(array('has_faqs'=>SqlAggregate::COUNT('faqs'))) ->annotate(array('has_faqs'=>SqlAggregate::COUNT('faqs')))
......
...@@ -28,8 +28,8 @@ if ($cfg && $cfg->isKnowledgebaseEnabled()) { ?> ...@@ -28,8 +28,8 @@ if ($cfg && $cfg->isKnowledgebaseEnabled()) { ?>
<div class="search-form"> <div class="search-form">
<form method="get" action="kb/faq.php"> <form method="get" action="kb/faq.php">
<input type="hidden" name="a" value="search"/> <input type="hidden" name="a" value="search"/>
<input type="text" name="q" class="search" placeholder="Search our knowledge base"/> <input type="text" name="q" class="search" placeholder="<?php echo __('Search our knowledge base'); ?>"/>
<button type="submit" class="green button">Search</button> <button type="submit" class="green button"><?php echo __('Search'); ?></button>
</form> </form>
</div> </div>
<div class="thread-body"> <div class="thread-body">
...@@ -53,7 +53,7 @@ if($cfg && $cfg->isKnowledgebaseEnabled()){ ...@@ -53,7 +53,7 @@ if($cfg && $cfg->isKnowledgebaseEnabled()){
<?php <?php
$cats = Category::getFeatured(); $cats = Category::getFeatured();
if ($cats->all()) { ?> if ($cats->all()) { ?>
<h1>Featured Knowledge Base Articles</h1> <h1><?php echo __('Featured Knowledge Base Articles'); ?></h1>
<?php <?php
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment