Révision 8c72e82a
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/i18n/i18n_node/i18n_node.variable.inc | ||
---|---|---|
45 | 45 |
'repeat' => array( |
46 | 46 |
'type' => 'options', |
47 | 47 |
'options' => array( |
48 |
'current' => t('Set current language as default for new content.', array(), $options), |
|
48 |
// Note: this was previously used only to mark new, translatable nodes |
|
49 |
// with the current language of the user. Now, this setting is extended |
|
50 |
// to allow a specific language to be chosen (defaulting to the current |
|
51 |
// language). This was done for backwards compatibility reasons. |
|
52 |
'current' => t('Set custom language as default for new content.', array(), $options), |
|
49 | 53 |
'required' => t('Require language (Do not allow Language Neutral).', array(), $options), |
50 | 54 |
'lock' => t('Lock language (Cannot be changed).', array(), $options), |
51 | 55 |
), |
52 | 56 |
), |
53 | 57 |
'group' => 'i18n', |
54 | 58 |
); |
59 |
// This field will only be displayed if "current" is checked above. |
|
60 |
$variables['i18n_node_default_language_for_[node_type]'] = array( |
|
61 |
'type' => 'multiple', |
|
62 |
'title' => t('Custom default language', array(), $options), |
|
63 |
'repeat' => array( |
|
64 |
'type' => 'select', |
|
65 |
'options' => array_merge(array( |
|
66 |
'-- current --' => t('Current language') |
|
67 |
), locale_language_list('name')), |
|
68 |
'default' => '-- current --', |
|
69 |
), |
|
70 |
'group' => 'i18n', |
|
71 |
); |
|
55 | 72 |
$variables['i18n_node_extended_[node_type]'] = array( |
56 | 73 |
'type' => 'multiple', |
57 | 74 |
'title' => t('Extended language support'), |
Formats disponibles : Unified diff
Weekly update of contrib modules