The MU forums have moved to WordPress.org

How to set the default lang in table wp_sitemeta ? (4 posts)

  1. Khal3d
    Member
    Posted 18 years ago #

    Hello,
    now we translate wpmu to our language , my question is how can i set default language is my language after installation in table wp_sitemeta

    plz help me !

  2. Khal3d
    Member
    Posted 18 years ago #

    hi

    i try add this code in file index-install.php

    after line 408

    $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'WPLANG', 'ar' )" );

    and it's work but i don't know if it right or no

  3. MrBrian
    Member
    Posted 18 years ago #

    Default language is set in wp-config.php. Look at the sample

  4. Khal3d
    Member
    Posted 18 years ago #

    i know MrBrian , and i set it

    But if i install wordpress MU and go to control panel
    i found lang is English Because WPLANG not create in table wp_sitemeta in DB

    so i insert the last code in index-install.php file.

    and i say again "I don't Know if it Right OR No" But it's work good :)
    and i set my lang is default after install :)

    (sorry for my bad English)

About this Topic