Language & News Module

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
hansom

Language & News Module

Post by hansom »

How do I get the text ouput by the {$return_url} to display in the chosen language when viewing a News article?

It doesn't matter what language code I specify with the lang parameter in the {news} tag, the text being displayed is according to the current global setting "Default language for the frontend". Does the lang parameter work with the News Module at all?
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm

Re: Language & News Module

Post by reneh »

I uses the tag  {news number='3' detailpage='nyheter' lang='nb_NO'}  on the newscal and the Returnurl is correct for me....
ReneH 8-)
A search will save you hours waiting for an answer! Image
mike-r

Re: Language & News Module

Post by mike-r »

Hi, i have a similar question to that.
returnurl works for me, but i want to change the text from the output.

in the news-template i use:

Code: Select all

{$return_url}
it output me an link (in german): "Zurück" what linked correctly to the News-category.
But i want to edit the "zurück" to: "zurück to categoryname", where can i do that?
alby

Re: Language & News Module

Post by alby »

mike-r wrote: it output me an link (in german): "Zurück" what linked correctly to the News-category.
But i want to edit the "zurück" to: "zurück to categoryname", where can i do that?
Edit modules/News/lang/ext/de_DE.php

Alby
mike-r

Re: Language & News Module

Post by mike-r »

Thx a lot, that works for me, but it's a little bit - aehem - not optimal, because like similar to hack the Core.
If i made an Upgrade, it will be override.
Better for CMSMS - in my Opinion - should be, to use {tag text="My Text"}
alby

Re: Language & News Module

Post by alby »

mike-r wrote: Thx a lot, that works for me, but it's a little bit - aehem - not optimal, because like similar to hack the Core.
If i made an Upgrade, it will be override.
Better for CMSMS - in my Opinion - should be, to use {tag text="My Text"}
In this case you must ask for hack News code.
Put a feature request in News module in forge.

Alby
Locked

Return to “CMSMS Core”