created translations feature

This commit is contained in:
Bachir Soussi Chiadmi
2016-11-07 16:31:32 +01:00
parent b00f897952
commit ac87a57196
13 changed files with 870 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
<?php
/**
* @file
* translations.features.language.inc
*/
/**
* Implements hook_locale_default_languages().
*/
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',
'name' => 'English',
'native' => 'English',
'direction' => 0,
'enabled' => 1,
'plurals' => 0,
'formula' => '',
'domain' => '',
'prefix' => 'en',
'weight' => -10,
);
// Exported language: fr.
$languages['fr'] = array(
'language' => 'fr',
'name' => 'French',
'native' => 'Français',
'direction' => 0,
'enabled' => 1,
'plurals' => 2,
'formula' => '($n>1)',
'domain' => '',
'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;
}