• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: [SOLVED] NEWS - Translation not showing in Detail Template
PostPosted: Thu May 10, 2012 5:36 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
Hey everyone,

I am facing a strange problem.

I have set up a new "summary template" and a new "detail template" for my news list and currently i am using the default ones.

I have created my code like below:

Code:
{news category="Greek*" number="5" sortby="news_date" summarytemplate="news" detailtemplate="news" lang="el_GR"}


The above code is displayed fine with its Greek translation in the summary template. Now though when i click on the title to view an article, the detail template ignores my language settings and show me items in Englishh (return link, category label etc).

I checked the lang file of el_GR and its fine. The translations are there, i compared with the en_US one. I tried making changes to it, and saw that the changes are applied when in summary template whereas ignored in detail template.

How can i fix this?

Thanks in advance


Last edited by georgechr on Mon May 21, 2012 11:42 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Fri May 11, 2012 5:55 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
can someone share any insight on this?


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Fri May 11, 2012 4:33 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11866
Location: Arizona
Do you have front end language set to greek?...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 14, 2012 5:57 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
no, but i don't want to set it, because if i do, my English news manager shows in Greek. I have a site with two languages.

In my understanding when entering the "lang" parameter in the tags its enough.


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Thu May 17, 2012 5:27 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
Anyone guys?


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Thu May 17, 2012 6:12 am 
Offline
Beta Tester
Beta Tester
User avatar

Joined: Fri May 09, 2008 11:20 am
Posts: 697
Location: Lithuania
Do you use pretty url?
vilkis


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 21, 2012 6:02 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
yes i do, does this play any role?


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 21, 2012 6:39 am 
Offline
Beta Tester
Beta Tester
User avatar

Joined: Fri May 09, 2008 11:20 am
Posts: 697
Location: Lithuania
Yes, because lang parameter is not passed to detail template in pretty url mode. You can use smarty replace. For return link:

Code:
{$return_url|replace:'return':'RETURN_IN_GREEK'}


vilkis


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 21, 2012 9:11 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
Thanks for the help.

btw i tried to change

Code:
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url}{if $category_name != ''} - {$category_link}{/if}</div>
{/if}


to

Code:
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url|replace:'return':'Επιστροφή'}{if $category_name != ''} - {$category_link}{/if}</div>
{/if}


but it doenst work, still english.

I have the same problem with other fields. For example when showing category name in summary view is displayed fine, but when going to detail template it changes to English.

I am guessing the solution would be to change:

Code:
{$category_label} {$entry->category}

to
Code:
{$category_label|category:'category':'GREEK NAME'} {$entry->category}

?


Last edited by georgechr on Mon May 21, 2012 9:25 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 21, 2012 10:23 am 
Offline
Beta Tester
Beta Tester
User avatar

Joined: Fri May 09, 2008 11:20 am
Posts: 697
Location: Lithuania
georgechr wrote:
Thanks for the help.

Code:
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url|replace:'return':'Επιστροφή'}{if $category_name != ''} - {$category_link}{/if}</div>
{/if}



What is text in your return link?
Probably your return link is "Return" (first capital letter).

vilkis


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 21, 2012 11:10 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
Yes its "Return"


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 21, 2012 11:15 am 
Offline
Beta Tester
Beta Tester
User avatar

Joined: Fri May 09, 2008 11:20 am
Posts: 697
Location: Lithuania
So
Code:
{$return_url|replace:'Return':'Επιστροφή'}


should work.
vilkis


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 21, 2012 11:33 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
sorry! did not see the capital letter remark. Thanks it works.

Can i do it for others as well like i mentioned above?


Top
 Profile  
 
 Post subject: Re: NEWS - Translation not showing in Detail Template
PostPosted: Mon May 21, 2012 11:39 am 
Offline
Beta Tester
Beta Tester
User avatar

Joined: Fri May 09, 2008 11:20 am
Posts: 697
Location: Lithuania
Try and you'll see. :)
vilkis


Top
 Profile  
 
 Post subject: [SOLVED] Re: NEWS - Translation not showing in Detail Templa
PostPosted: Mon May 21, 2012 11:42 am 
Offline
Forum Members
Forum Members

Joined: Tue Sep 13, 2011 6:02 am
Posts: 95
Ok thanks, i am just unsure for the label part.

Anyhow, thanks for your great and prompt help. Cheers


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting