•  
      request #28296 How to init MediaWiki in French ?
    Infos
    #28296
    Manuel Vacelet (vaceletm)
    2023-03-10 14:51
    2022-09-12 10:11
    29869
    Details
    How to init MediaWiki in French ?

    There are 2 situations:

    • MediaWiki 1.23 that are migrated: the default language must be migrated. It can be done with the parameter language at registration time.
    • New MediaWiki created with the standalone version: they are init with Tuleap defined sys_lang

    It's no longer possible to init a MW with a language different from Tuleap platform default. The language selection at the init seems to be an unnecessary step at this point (it's the only place where you have to choose the language).

    Default language has 2 consequences:

    • The name and the content of the default page change (eg Accueil in french vs Main_Page in english).
    • Some part of the wikitext can be used in their localized version (eg [[Categorie]] in french vs [[Category]] in english). Note: english version is always usable.

    The interface is always displayed with User's lang, regardless of the init.

    If we ever need to re-introduce the lang selector:

    • Switching from English to something else has no impact (because english is canonlical, wikitext written in english will always work)
    • Switching from another language to English might have an impact if localized wikitext was used
    Mediawiki Standalone
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Robert Vogel (rvogel), Dejan Savuljesku (dsavuljesku)
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2023-03-10
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    Let's close this one, we confirmed it works for migration too.


    • Status changed from Under implementation to Closed
    • Connected artifacts
    • Close date set to 2023-03-10
    User avatar
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    Thomas Gerbet (tgerbet)2023-03-08 14:33
    • Status changed from Verified to Under implementation
    • Assigned to changed from None to Thomas Gerbet (tgerbet)
    User avatar

    Actually this was originally possible, by passing lang param to the "create instance" endpoint. However, since we have individual LocalSettings.php files for each instance, this will no longer be evaluated. We would have to store this value in the instances table and apply when instance is called. Not a big deal, but needs implementation