language selection based News on welcome page
Brought to you by:
canajun2eh,
yalnifj
It would be COOL if it had language selection when
creating new news items. For example a selection box to
mark the news item to be written in a certain language
so it would only be shown when a user views the page in
the specific language. And offcourse a selection for
'all' that would show up in any selected language (and
be the default, so it would remain 'backwards'
compatible with the old way).
This would allow the maintainer of the site to write a
news item in several different languages and not
clutter up the welcome page with duplicate messages in
several different languages.
Logged In: YES
user_id=959928
Originator: NO
You can write your news header and text as language variables in the extra.xx.php language files and fill this variable in the news item.
I use for instance the following in my news item:
#news_title#
<p>#text_news1##text_news2#</p>
and in the extra.xx.php files I have
$pgv_lang["news_title"] = "...";
$pgv_lang["text_news1"] = "..";
$pgv_lang["text_news2"] = "..";
Meliza