diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php index 7f8882d..39d2b58 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php @@ -41,7 +41,7 @@ class LocaleCompareTest extends WebTestBase { // Check if hidden modules are not included. $projects = locale_translation_project_list(); - $this->assertFalse(isset($projects['locale_test']), t('Hidden module not found')); + $this->assertFalse(isset($projects['locale_test']), 'Hidden module not found'); // Make the test modules look like a normal custom module. i.e. make the // modules not hidden. locale_test_system_info_alter() modifies the project @@ -52,13 +52,13 @@ class LocaleCompareTest extends WebTestBase { drupal_static_reset('locale_translation_project_list'); $projects = locale_translation_project_list(); $this->assertEqual($projects['locale_test']['info']['interface translation server pattern'], 'core/modules/locale/test/modules/locale_test/%project-%version.%language.po', t('Interface translation parameter found in project info.')); - $this->assertEqual($projects['locale_test']['name'] , 'locale_test', t('%key found in project info.', array('%key' => 'interface translation project'))); + $this->assertEqual($projects['locale_test']['name'] , 'locale_test', format_string('%key found in project info.', array('%key' => 'interface translation project'))); // Check if disabled modules are detected. variable_set('locale_translation_check_disabled', TRUE); drupal_static_reset('locale_translation_project_list'); $projects = locale_translation_project_list(); - $this->assertTrue(isset($projects['locale_test_disabled']), t('Disabled module found')); + $this->assertTrue(isset($projects['locale_test_disabled']), 'Disabled module found'); // Check the fully processed list of project data of both enabled and // disabled modules. diff --git a/core/modules/locale/locale.api.php b/core/modules/locale/locale.api.php index 2b5c504..19305b5 100644 --- a/core/modules/locale/locale.api.php +++ b/core/modules/locale/locale.api.php @@ -14,7 +14,7 @@ * Alter the list of projects to be updated by locale's interface translation. * * Locale module attempts to update the translation of those modules returned - * by update_get_projects(). Using this hook the data returned by + * by update_get_projects(). Using this hook the data returned by * update_get_projects() can be altered or extended. * * Modules or distributions that use a dedicated translation server should use @@ -42,10 +42,6 @@ function hook_locale_translation_projects_alter(&$projects) { ); } -function hook_locale_translation_translation_servers() { - -} - /** * @} End of "addtogroup hooks". */ diff --git a/core/modules/locale/locale.install b/core/modules/locale/locale.install index ed77dda..1174749 100644 --- a/core/modules/locale/locale.install +++ b/core/modules/locale/locale.install @@ -168,13 +168,13 @@ function locale_schema() { 'name' => array( 'description' => 'A unique short name to identify the project.', 'type' => 'varchar', - 'length' => '50', + 'length' => '255', 'not null' => TRUE, ), 'project_type' => array( 'description' => 'Project type, may be core, module, theme', 'type' => 'varchar', - 'length' => '50', + 'length' => '12', 'not null' => TRUE, ), 'core' => array( @@ -185,7 +185,7 @@ function locale_schema() { 'default' => '', ), 'version' => array( - 'description' => 'Human readable name for project used on the interface.', + 'description' => 'The release version', 'type' => 'varchar', 'length' => '128', 'not null' => TRUE,