commited features for showroom release
This commit is contained in:
@@ -10,19 +10,6 @@
|
||||
function translations_locale_default_languages() {
|
||||
$languages = array();
|
||||
|
||||
// Exported language: cs.
|
||||
$languages['cs'] = array(
|
||||
'language' => 'cs',
|
||||
'name' => 'Czech',
|
||||
'native' => 'Čeština',
|
||||
'direction' => 0,
|
||||
'enabled' => 1,
|
||||
'plurals' => 3,
|
||||
'formula' => '(((($n%10)==1)&&(($n%100)!=11))?(0):((((($n%10)>=2)&&(($n%10)<=4))&&((($n%100)<10)||(($n%100)>=20)))?(1):2))',
|
||||
'domain' => '',
|
||||
'prefix' => 'cs',
|
||||
'weight' => 0,
|
||||
);
|
||||
// Exported language: en.
|
||||
$languages['en'] = array(
|
||||
'language' => 'en',
|
||||
@@ -49,18 +36,5 @@ function translations_locale_default_languages() {
|
||||
'prefix' => 'fr',
|
||||
'weight' => -9,
|
||||
);
|
||||
// Exported language: zh-hans.
|
||||
$languages['zh-hans'] = array(
|
||||
'language' => 'zh-hans',
|
||||
'name' => 'Chinese, Simplified',
|
||||
'native' => '简体中文',
|
||||
'direction' => 0,
|
||||
'enabled' => 1,
|
||||
'plurals' => 2,
|
||||
'formula' => '($n!=1)',
|
||||
'domain' => '',
|
||||
'prefix' => 'zh-hans',
|
||||
'weight' => 0,
|
||||
);
|
||||
return $languages;
|
||||
}
|
||||
|
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* translations.features.user_role.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_roles().
|
||||
*/
|
||||
function translations_user_default_roles() {
|
||||
$roles = array();
|
||||
|
||||
// Exported role: Translator.
|
||||
$roles['Translator'] = array(
|
||||
'name' => 'Translator',
|
||||
'weight' => 9,
|
||||
);
|
||||
|
||||
return $roles;
|
||||
}
|
@@ -2,55 +2,20 @@ name = Translations
|
||||
core = 7.x
|
||||
package = Materio
|
||||
version = 7.x-1.0-beta
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = features_translations
|
||||
dependencies[] = locale
|
||||
dependencies[] = strongarm
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
features[language][] = cs
|
||||
features[language][] = en
|
||||
features[language][] = fr
|
||||
features[language][] = zh-hans
|
||||
features[translations_cs][] = cs:blocks
|
||||
features[translations_cs][] = cs:default
|
||||
features[translations_cs][] = cs:field
|
||||
features[translations_cs][] = cs:menu
|
||||
features[translations_cs][] = cs:metatag
|
||||
features[translations_cs][] = cs:node
|
||||
features[translations_cs][] = cs:profile2
|
||||
features[translations_cs][] = cs:rules
|
||||
features[translations_cs][] = cs:uc_attribute
|
||||
features[translations_cs][] = cs:uc_order_status
|
||||
features[translations_cs][] = cs:webform
|
||||
features[translations_fr][] = fr:blocks
|
||||
features[translations_fr][] = fr:default
|
||||
features[translations_fr][] = fr:field
|
||||
features[translations_fr][] = fr:menu
|
||||
features[translations_fr][] = fr:metatag
|
||||
features[translations_fr][] = fr:node
|
||||
features[translations_fr][] = fr:profile2
|
||||
features[translations_fr][] = fr:rules
|
||||
features[translations_fr][] = fr:uc_attribute
|
||||
features[translations_fr][] = fr:uc_order_status
|
||||
features[translations_fr][] = fr:webform
|
||||
features[translations_zh_hans][] = zh_hans:blocks
|
||||
features[translations_zh_hans][] = zh_hans:default
|
||||
features[translations_zh_hans][] = zh_hans:field
|
||||
features[translations_zh_hans][] = zh_hans:menu
|
||||
features[translations_zh_hans][] = zh_hans:metatag
|
||||
features[translations_zh_hans][] = zh_hans:node
|
||||
features[translations_zh_hans][] = zh_hans:profile2
|
||||
features[translations_zh_hans][] = zh_hans:rules
|
||||
features[translations_zh_hans][] = zh_hans:uc_attribute
|
||||
features[translations_zh_hans][] = zh_hans:uc_order_status
|
||||
features[translations_zh_hans][] = zh_hans:webform
|
||||
features[user_permission][] = administer languages
|
||||
features[user_permission][] = translate interface
|
||||
features[user_role][] = Translator
|
||||
features[variable][] = i18n_node_translation_switch
|
||||
features[variable][] = locale_field_language_fallback
|
||||
features[variable][] = locale_language_negotiation_url_part
|
||||
features[variable][] = locale_language_providers_weight_language
|
||||
features[variable][] = taxonomy_csv_locale_custom
|
||||
features_exclude[dependencies][ctools] = ctools
|
||||
features_exclude[dependencies][features] = features
|
||||
features_exclude[dependencies][locale] = locale
|
||||
features_exclude[dependencies][strongarm] = strongarm
|
||||
project path = sites/all/modules/features
|
||||
|
@@ -36,11 +36,11 @@ function translations_strongarm() {
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'locale_language_providers_weight_language';
|
||||
$strongarm->value = array(
|
||||
'locale-url' => '-8',
|
||||
'locale-session' => '-6',
|
||||
'locale-user' => '-4',
|
||||
'locale-browser' => '-2',
|
||||
'language-default' => '10',
|
||||
'locale-user' => '-9',
|
||||
'locale-url' => '-10',
|
||||
'locale-session' => '-8',
|
||||
'locale-browser' => '-7',
|
||||
'language-default' => '-6',
|
||||
);
|
||||
$export['locale_language_providers_weight_language'] = $strongarm;
|
||||
|
||||
|
Reference in New Issue
Block a user