This question about Configuration: Answered

Can I set lang-attribute for each web differently?

According to System.VarLANG one can set the language tag for browsers in the configure:
If {UseLocale} is enabled, it is calculated from the configure setting of {Site}{Locale}. Otherwise it defaults to en (English).

This is added into each html-files as follows:
<html xmlns="" xml:lang="%LANG%" lang="%LANG%">


Is it possible to add this setting to each web differently, like when you have a wiki in several languages, separated by webs? Maybe setting in WebPreferences? Or is the only workaround setting this tag into the TopicViewTemplate? If so, how can I do that? I doubt that ADDTOZONE can do this, but I'm not so familiar with it.

Note: I am not talking about the language used for the interface, which is displayed with LANGUAGE: This Fowsiki is using "en".


I simply tried - and it worked. I added the following line to my WebPreferences, and now all the html pages have the correct language tag in their lang-definition:
   * Set LANG = fr

Thanks for watching anyway :- )

-- LieVen - 02 Jun 2015

QuestionForm edit

Subject Configuration
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r2 - 02 Jun 2015, LieVen - This page was cached on 21 Feb 2019 - 02:47.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy