first import

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-08 11:40:19 +02:00
commit 1bc61b12ad
8435 changed files with 1582817 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
name = Internationalization tests
description = Helper module for testing i18n (do not enable manually)
dependencies[] = locale
dependencies[] = translation
dependencies[] = i18n
package = Testing
core = 6.x
hidden = TRUE
; Information added by drupal.org packaging script on 2013-01-13
version = "7.x-1.8"
core = "7.x"
project = "i18n"
datestamp = "1358075001"

View File

@@ -0,0 +1,46 @@
<?php
/**
* @file
* Helper module for testing i18n
*/
// Add some multilingual variables, override existing ones from settings so
// we have a known list and we don't need any addition to the settings file for testing i18n
_i18n_test_variable_init();
/**
* Implements hook_init()
*/
function i18n_test_init() {
// We just implement this hook so this one is loaded always on bootstap
}
/**
* Set default multilingual variables and add any others defined by testing scripts
*
* More variables can be added using 'i18n_variables_test';
*/
function _i18n_test_variable_init() {
global $conf;
$conf['i18n_variables'] = array_merge(array('site_name', 'site_frontpage'), variable_get('i18n_variables_test', array()));
}
/**
* Implements hook_i18n_string_info()
*/
function i18n_test_i18n_string_info() {
$groups['test'] = array(
'title' => t('Test'),
'description' => t('Translatable menu items: title and description.'),
'format' => FALSE, // This group doesn't have strings with format
'refresh callback' => 'i18n_test_i18n_string_refresh',
);
return $groups;
}
/**
* Locale refresh
*/
function i18n_test_i18n_string_refresh() {
return TRUE;
}