Some lines not translated

General questions regarding the use of languages in Joomla! 3.x.

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.
Locked
brainiac080195
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Aug 21, 2014 8:33 pm

Some lines not translated

Post by brainiac080195 » Thu Sep 11, 2014 12:31 pm

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:
Image

Here is the link to the site page also:
http://www.skolskibibliotekari.edu.rs/n ... p/aktuelno

Any help? Thanks in advance.

iextensions
I've been banned!
Posts: 1498
Joined: Fri Jul 12, 2013 5:37 pm
Contact:

Re: Some lines not translated

Post by iextensions » Thu Sep 11, 2014 1:18 pm

- check it in lanuage file..... have it or not
- you can add it in language file.

brainiac080195
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Aug 21, 2014 8:33 pm

Re: Some lines not translated

Post by brainiac080195 » Thu Sep 11, 2014 2:34 pm

iextensions wrote:- check it in lanuage file..... have it or not
- you can add it in language file.
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.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30929
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Some lines not translated

Post by Per Yngve Berg » Thu Sep 11, 2014 4:26 pm

Is your site language set correct?

brainiac080195
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Aug 21, 2014 8:33 pm

Re: Some lines not translated

Post by brainiac080195 » Thu Sep 11, 2014 5:55 pm

Per Yngve Berg wrote:Is your site language set correct?
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.
Image

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30929
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Some lines not translated

Post by Per Yngve Berg » Thu Sep 11, 2014 8:28 pm

Are the language codes correct in the source code of the site?
Enable Debug and Language Debug in Global Configuration.

brainiac080195
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Aug 21, 2014 8:33 pm

Re: Some lines not translated

Post by brainiac080195 » Thu Sep 11, 2014 9:38 pm

Per Yngve Berg wrote:Are the language codes correct in the source code of the site?
Enable Debug and Language Debug in Global Configuration.
When language debug enabled:
'Tags' and 'Date' aren't surrounded with any characters so it means they are not translatable?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30929
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Some lines not translated

Post by Per Yngve Berg » Fri Sep 12, 2014 4:39 am

There must be an override in the Template that does not have translation. See the Template's html folder.

brainiac080195
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Aug 21, 2014 8:33 pm

Re: Some lines not translated

Post by brainiac080195 » Fri Sep 12, 2014 8:35 am

Per Yngve Berg wrote:There must be an override in the Template that does not have translation. See the Template's html folder.
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.

https://www.dropbox.com/s/waeyme356n2ki0l/html.zip?dl=0

iextensions
I've been banned!
Posts: 1498
Joined: Fri Jul 12, 2013 5:37 pm
Contact:

Re: Some lines not translated

Post by iextensions » Fri Sep 12, 2014 9:01 am

brainiac080195 wrote:
Per Yngve Berg wrote:There must be an override in the Template that does not have translation. See the Template's html folder.
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.

https://www.dropbox.com/s/waeyme356n2ki0l/html.zip?dl=0
Did you see this section:
http://prntscr.com/4m1jxt

Create override text as Berg talk...........

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Some lines not translated

Post by infograf768 » Fri Sep 12, 2014 9:04 am

It is hard coded in the html/com_content/default.php
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; ?>
and in the layouts (that one is used in your page)
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>
You will find other hardcoded stuff here:
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>
there are others, like the Read more in /html/com_content/category/blog_item.php

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; ?>
Change your template...
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Some lines not translated

Post by infograf768 » Fri Sep 12, 2014 9:25 am

Forgot...
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

brainiac080195
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Aug 21, 2014 8:33 pm

Re: Some lines not translated

Post by brainiac080195 » Fri Sep 12, 2014 9:59 am

infograf768 wrote:It is hard coded in the html/com_content/default.php
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; ?>
and in the layouts (that one is used in your page)
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>
You will find other hardcoded stuff here:
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>
there are others, like the Read more in /html/com_content/category/blog_item.php

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; ?>
Change your template...
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.

Again thank you all for your replies, problem solved.


Locked

Return to “Language - Joomla! 3.x”