diff options
| author | wjames5 <will@tekimaki.com> | 2010-02-03 23:20:05 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2010-02-03 23:20:05 +0000 |
| commit | 1a2e82d85c9fee3f226fd4fbfc9f039b6499106f (patch) | |
| tree | 91990c5cbebc33924e4a28e93642d61c1207408b | |
| parent | f6148b79ca1367f942e08f33aa819f1349ecae3b (diff) | |
| download | languages-1a2e82d85c9fee3f226fd4fbfc9f039b6499106f.tar.gz languages-1a2e82d85c9fee3f226fd4fbfc9f039b6499106f.tar.bz2 languages-1a2e82d85c9fee3f226fd4fbfc9f039b6499106f.zip | |
revert back to liberty
| -rw-r--r-- | admin/schema_inc.php | 21 | ||||
| -rw-r--r-- | bit_setup_inc.php | 2 |
2 files changed, 13 insertions, 10 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 8644d45..e29d4e0 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -70,15 +70,6 @@ $gBitInstaller->registerPreferences( LANGUAGES_PKG_NAME, array( array( LANGUAGES_PKG_NAME, 'i18n_record_untranslated','y' ), ) ); -// ### Default UserPermissions -$gBitInstaller->registerUserPermissions( LANGUAGES_PKG_NAME, array( - array('p_languages_create', 'Can create new languages', 'admin', LANGUAGES_PKG_NAME), - array('p_languages_edit', 'Can edit translations', 'editors', LANGUAGES_PKG_NAME), - array('p_languages_delete', 'Can delete languages', 'admin', LANGUAGES_PKG_NAME), - array('p_languages_edit_master', 'Can edit master translation strings', 'admin', LANGUAGES_PKG_NAME), - array('p_languages_import', 'Can import and export language files', 'editors', LANGUAGES_PKG_NAME), -) ); - $gBitInstaller->registerSchemaDefault( LANGUAGES_PKG_NAME, array( "INSERT INTO `".BIT_DB_PREFIX."i18n_languages` (`lang_code`,`native_name`,`english_name`,`right_to_left`) VALUES ('ar', 'ﺎﻠﻋﺮﺒﻳﺓ', 'Arabic','y' )", "INSERT INTO `".BIT_DB_PREFIX."i18n_languages` (`lang_code`,`native_name`,`english_name`) VALUES ('ca', 'Català', 'Catalan')", @@ -121,6 +112,16 @@ $gBitInstaller->registerSchemaDefault( LANGUAGES_PKG_NAME, array( "INSERT INTO `".BIT_DB_PREFIX."i18n_languages` (`lang_code`,`native_name`,`english_name`) VALUES ('zh-cn', '简体中文', 'Chinese')", ) ); +/* +// ### Default UserPermissions +$gBitInstaller->registerUserPermissions( LANGUAGES_PKG_NAME, array( + array('p_languages_create', 'Can create new languages', 'admin', LANGUAGES_PKG_NAME), + array('p_languages_edit', 'Can edit translations', 'editors', LANGUAGES_PKG_NAME), + array('p_languages_delete', 'Can delete languages', 'admin', LANGUAGES_PKG_NAME), + array('p_languages_edit_master', 'Can edit master translation strings', 'admin', LANGUAGES_PKG_NAME), + array('p_languages_import', 'Can import and export language files', 'editors', LANGUAGES_PKG_NAME), +) ); + // Package requirements $gBitInstaller->registerRequirements( LANGUAGES_PKG_NAME, array( 'liberty' => array( 'min' => '2.1.0' ), @@ -128,4 +129,4 @@ $gBitInstaller->registerRequirements( LANGUAGES_PKG_NAME, array( 'kernel' => array( 'min' => '2.0.0' ), 'themes' => array( 'min' => '2.0.0' ), )); -?> +*/ diff --git a/bit_setup_inc.php b/bit_setup_inc.php index 637020e..e9d4aae 100644 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -17,6 +17,7 @@ if ($gBitSystem->isFeatureActive('babelfish_logo') ) { require_once(LANGUAGES_PKG_PATH . 'Babelfish.php'); $gBitSmarty->assign('babelfish_logo', Babelfish::logo($gBitLanguage->mLanguage)); } +/* if( $gBitSystem->isPackageActive( 'languages' ) && $gBitUser->hasPermission( 'p_languages_edit' ) ) { $menuHash = array( 'package_name' => LANGUAGES_PKG_NAME, @@ -25,6 +26,7 @@ if( $gBitSystem->isPackageActive( 'languages' ) && $gBitUser->hasPermission( 'p_ ); $gBitSystem->registerAppMenu( $menuHash ); } +*/ if( $gBitSystem->isFeatureActive( 'users_preferences' ) && $gBitUser->isRegistered() ) { if( $gBitSystem->isFeatureActive( 'users_change_language' ) ) { |
