[pmwiki-users] MultiLanguage --- again (setting default language)

blues blues4u at supereva.it
Tue Feb 6 04:15:28 CST 2007


On Tue, 06 Feb 2007 11:44:09 +0200, Jiri Hladůvka / OBUTEX  
<admin at obutex.com> wrote:
> When looking into my pages file source (using text editor) where (:if
> userlang ...:) is present I can see the line
> languages=cs,sk,en
> before the text:
>
> What about to generate in a new page or edited page (as a ROS event)
> such a line with the default language regardless
> on the presence of the (:if userlang ...:) markup if in local/config.pgp
> languages are defined ?
>
> This would enable language selection and translations of $[phrase] even
> if the (:if userlang ...:) is not present
> and the (:selectlang:) is in the SideBar or Site.PageHeader.
> Am I right?

mmm... that's not a bad idea.
it may work, i think. let me do some experiments with it to see
if there are any problems.


> Has such a functionality be in the PmWiki core ? Or some lines in
> local/config.pgp do that job?

no, it is in the multilanguage.php recipe.

blues




More information about the pmwiki-users mailing list