Changeset 5357 for trunk/install


Ignore:
Timestamp:
Mar 25, 2010, 9:18:28 PM (15 years ago)
Author:
patdenice
Message:

Feature 1535: Add language manager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/db/90-database.php

    r5341 r5357  
    4545
    4646// Fill table
    47 $inserts = array();
    48 foreach (get_languages('utf-8') as $language_code => $language_name)
     47include_once(PHPWG_ROOT_PATH.'include/constants.php');
     48include_once(PHPWG_ROOT_PATH.'admin/include/languages.class.php');
     49
     50$languages = new languages(PWG_CHARSET);
     51
     52foreach ($languages->fs_languages as $language_code => $language_name)
    4953{
    50   $inserts[] = array(
    51     'id' => $language_code,
    52     'name' => $language_name,
    53   );
     54  $languages->perform_action('activate', $language_code);
    5455}
    55 mass_inserts(PREFIX_TABLE.'languages', array('id', 'name'), $inserts);
    5656
    5757echo
Note: See TracChangeset for help on using the changeset viewer.