Some lines not translated
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 30
- Joined: Thu Aug 21, 2014 8:33 pm
Some lines not translated
Hello,
My web site is running on Joomla 3.3.3 with Serbian Cyrillic language pack installed. Its running on this template:
http://beautiful-templates.com/demo/tem ... /st_study/
Some lines just haven't translated and stayed on English language. Here is the Print screen to prove it:
Here is the link to the site page also:
http://www.skolskibibliotekari.edu.rs/n ... p/aktuelno
Any help? Thanks in advance.
My web site is running on Joomla 3.3.3 with Serbian Cyrillic language pack installed. Its running on this template:
http://beautiful-templates.com/demo/tem ... /st_study/
Some lines just haven't translated and stayed on English language. Here is the Print screen to prove it:
Here is the link to the site page also:
http://www.skolskibibliotekari.edu.rs/n ... p/aktuelno
Any help? Thanks in advance.
-
- I've been banned!
- Posts: 1498
- Joined: Fri Jul 12, 2013 5:37 pm
- Contact:
Re: Some lines not translated
- check it in lanuage file..... have it or not
- you can add it in language file.
- you can add it in language file.
-
- Joomla! Apprentice
- Posts: 30
- Joined: Thu Aug 21, 2014 8:33 pm
Re: Some lines not translated
I am not quite sure what are you talking about. I tried to find the line TAGS in sr-RS.ini fille and I did. Its translated there, so is the date. But apparently something is wrong as they aren't showing properly on the web site.iextensions wrote:- check it in lanuage file..... have it or not
- you can add it in language file.
- Per Yngve Berg
- Joomla! Master
- Posts: 30929
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Some lines not translated
Is your site language set correct?
-
- Joomla! Apprentice
- Posts: 30
- Joined: Thu Aug 21, 2014 8:33 pm
Re: Some lines not translated
As you can see on this print screen it is. Other elements are translated and also you cna see on the first print screen that the date format is also corresponding to language pack.Per Yngve Berg wrote:Is your site language set correct?
- Per Yngve Berg
- Joomla! Master
- Posts: 30929
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Some lines not translated
Are the language codes correct in the source code of the site?
Enable Debug and Language Debug in Global Configuration.
Enable Debug and Language Debug in Global Configuration.
-
- Joomla! Apprentice
- Posts: 30
- Joined: Thu Aug 21, 2014 8:33 pm
Re: Some lines not translated
When language debug enabled:Per Yngve Berg wrote:Are the language codes correct in the source code of the site?
Enable Debug and Language Debug in Global Configuration.
'Tags' and 'Date' aren't surrounded with any characters so it means they are not translatable?
- Per Yngve Berg
- Joomla! Master
- Posts: 30929
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Some lines not translated
There must be an override in the Template that does not have translation. See the Template's html folder.
-
- Joomla! Apprentice
- Posts: 30
- Joined: Thu Aug 21, 2014 8:33 pm
Re: Some lines not translated
Well I ran through files and wasn't able to find a valid line to change so here is the folder from my template. Maybe I have missed something.Per Yngve Berg wrote:There must be an override in the Template that does not have translation. See the Template's html folder.
https://www.dropbox.com/s/waeyme356n2ki0l/html.zip?dl=0
-
- I've been banned!
- Posts: 1498
- Joined: Fri Jul 12, 2013 5:37 pm
- Contact:
Re: Some lines not translated
Did you see this section:brainiac080195 wrote:Well I ran through files and wasn't able to find a valid line to change so here is the folder from my template. Maybe I have missed something.Per Yngve Berg wrote:There must be an override in the Template that does not have translation. See the Template's html folder.
https://www.dropbox.com/s/waeyme356n2ki0l/html.zip?dl=0
http://prntscr.com/4m1jxt
Create override text as Berg talk...........
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Some lines not translated
It is hard coded in the html/com_content/default.php
Line 248
and in the layouts (that one is used in your page)
html/layouts/joomla/content/info_block/publish_date.php
You will find other hardcoded stuff here:
html/layouts/joomla/content/info_block/block.php
there are others, like the Read more in /html/com_content/category/blog_item.php
Change your template...
Line 248
Code: Select all
<div class="st-article-blog-box clearfix">
<?php if ($params->get('show_publish_date')) : ?>
<dd class="published">
<?php echo 'Date: '.JText::sprintf(JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
</dd>
<?php endif; ?>
html/layouts/joomla/content/info_block/publish_date.php
Code: Select all
defined('JPATH_BASE') or die;
?>
<dd class="published">
<?php echo "Date : ". JText::sprintf(JHtml::_('date', $displayData['item']->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
</dd>
html/layouts/joomla/content/info_block/block.php
Code: Select all
<dd class="createdby">
<?php $author = $displayData['item']->author; ?>
<?php $author = ($displayData['item']->created_by_alias ? $displayData['item']->created_by_alias : $author); ?>
<?php if (!empty($displayData['item']->contact_link ) && $displayData['params']->get('link_author') == true) : ?>
<?php echo "Post By : ". "<span class='st-green'>".JText::sprintf(JHtml::_('link', $displayData['item']->contact_link, $author))."</span>"; ?>
<?php else :?>
<?php echo "Post By: ". "<span class='st-green'>".JText::sprintf($author)."</span>"; ?>
<?php endif; ?>
</dd>
Code: Select all
<div class="box-right">
<div class="readmore">
<a class="btn" href="<?php echo $link; ?>">
<?php if (!$params->get('access-view')) :
echo JText::_('Read more');
elseif ($readmore = $this->item->alternative_readmore) :
echo $readmore;
if ($params->get('show_readmore_title', 0) != 0) :
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif;
elseif ($params->get('show_readmore_title', 0) == 0) :
echo "Read more";
else :
echo JText::_('COM_CONTENT_READ_MORE');
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif; ?>
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Some lines not translated
Forgot...
For "Tags:" , these idiots added it in the css...
.
For "Tags:" , these idiots added it in the css...
.
Code: Select all
st-page-blog .st-blog-des .tags:before {
content: "Tags: ";
display: inline-block;
float: left;
}
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 30
- Joined: Thu Aug 21, 2014 8:33 pm
Re: Some lines not translated
Thanks, I was able to fix it. Yup this theme turned out to be really sucky and badly coded. Had a lot of trouble with it.infograf768 wrote:It is hard coded in the html/com_content/default.php
Line 248and in the layouts (that one is used in your page)Code: Select all
<div class="st-article-blog-box clearfix"> <?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <?php echo 'Date: '.JText::sprintf(JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?> </dd> <?php endif; ?>
html/layouts/joomla/content/info_block/publish_date.phpYou will find other hardcoded stuff here:Code: Select all
defined('JPATH_BASE') or die; ?> <dd class="published"> <?php echo "Date : ". JText::sprintf(JHtml::_('date', $displayData['item']->publish_up, JText::_('DATE_FORMAT_LC3'))); ?> </dd>
html/layouts/joomla/content/info_block/block.phpthere are others, like the Read more in /html/com_content/category/blog_item.phpCode: Select all
<dd class="createdby"> <?php $author = $displayData['item']->author; ?> <?php $author = ($displayData['item']->created_by_alias ? $displayData['item']->created_by_alias : $author); ?> <?php if (!empty($displayData['item']->contact_link ) && $displayData['params']->get('link_author') == true) : ?> <?php echo "Post By : ". "<span class='st-green'>".JText::sprintf(JHtml::_('link', $displayData['item']->contact_link, $author))."</span>"; ?> <?php else :?> <?php echo "Post By: ". "<span class='st-green'>".JText::sprintf($author)."</span>"; ?> <?php endif; ?> </dd>
Change your template...Code: Select all
<div class="box-right"> <div class="readmore"> <a class="btn" href="<?php echo $link; ?>"> <?php if (!$params->get('access-view')) : echo JText::_('Read more'); elseif ($readmore = $this->item->alternative_readmore) : echo $readmore; if ($params->get('show_readmore_title', 0) != 0) : echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); endif; elseif ($params->get('show_readmore_title', 0) == 0) : echo "Read more"; else : echo JText::_('COM_CONTENT_READ_MORE'); echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); endif; ?>
Again thank you all for your replies, problem solved.