diff -u b/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php --- b/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php @@ -51,7 +51,7 @@ // Check if interface translation data is collected from hook_info. 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']['info']['interface translation server pattern'], 'core/modules/locale/test/modules/locale_test/%project-%version.%language.po', 'Interface translation parameter found in project info.'); $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. @@ -65,9 +65,9 @@ variable_set('locale_translation_check_disabled', TRUE); drupal_static_reset('locale_translation_project_list'); $projects = locale_translation_get_projects(); - $this->assertEqual($projects['drupal']->name, 'drupal', t('Core project found')); - $this->assertEqual($projects['locale_test']->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_disabled']->status, '0', t('Disabled module found')); + $this->assertEqual($projects['drupal']->name, 'drupal', 'Core project found'); + $this->assertEqual($projects['locale_test']->server_pattern, 'core/modules/locale/test/modules/locale_test/%project-%version.%language.po', 'Interface translation parameter found in project info.'); + $this->assertEqual($projects['locale_test_disabled']->status, '0', 'Disabled module found'); variable_del('locale_translation_check_disabled'); // Return the locale test modules back to their hidden state. diff -u b/core/modules/locale/locale.api.php b/core/modules/locale/locale.api.php --- b/core/modules/locale/locale.api.php +++ b/core/modules/locale/locale.api.php @@ -50,9 +50,9 @@ * .info file properties for interface translation settings. * * Modules hosted on drupal.org, a project definition is automatically added to - * the .info file. Only modules with this project defintion are discovered by + * the .info file. Only modules with this project definition are discovered by * the update module and use it to check for new releases. Locale module uses - * the same data to build a list of module to check for new tranlations. + * the same data to build a list of module to check for new translations. * Therefore modules not hosted at drupal.org, such as custom modules, custom * themes, features and distributions, need a way to identify themselves to * the Locale module if they have translations that require to be updated. @@ -96,7 +96,7 @@ * - "interface translation server pattern": URL of the .po translation files * used to download the files from. The URL contains tokens which will be * replaced by appropriate values. The file can be locate both at a local - * relateve path, a local absolute path and a remote server location. + * relative path, a local absolute path and a remote server location. * * The following tokens are available for the server pattern: * - "%core": Core version. Value example: "8.x". diff -u b/core/modules/locale/locale.install b/core/modules/locale/locale.install --- b/core/modules/locale/locale.install +++ b/core/modules/locale/locale.install @@ -168,38 +168,38 @@ 'name' => array( 'description' => 'A unique short name to identify the project.', 'type' => 'varchar', - 'length' => '255', + 'length' => 255, 'not null' => TRUE, ), 'project_type' => array( 'description' => 'Project type, may be core, module, theme', 'type' => 'varchar', - 'length' => '12', + 'length' => 12, 'not null' => TRUE, ), 'core' => array( 'description' => 'Core compatibility string for this project.', 'type' => 'varchar', - 'length' => '128', + 'length' => 4, 'not null' => TRUE, 'default' => '', ), 'version' => array( - 'description' => 'The release version', + 'description' => 'The version release of the project.', 'type' => 'varchar', - 'length' => '128', + 'length' => 128, 'not null' => TRUE, 'default' => '', ), 'server_pattern' => array( 'description' => 'Pattern of path and name of the gettext file at the translation server.', 'type' => 'varchar', - 'length' => '255', + 'length' => 255, 'not null' => TRUE, 'default' => '', ), 'status' => array( - 'description' => 'Status flag. TBD', + 'description' => 'The update status of the project.', 'type' => 'int', 'not null' => TRUE, 'default' => 1, @@ -690,38 +690,38 @@ '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( 'description' => 'Core compatibility string for this project.', 'type' => 'varchar', - 'length' => '128', + 'length' => 4, 'not null' => TRUE, 'default' => '', ), 'version' => array( - 'description' => 'Human readable name for project used on the interface.', + 'description' => 'The release version of the project.', 'type' => 'varchar', - 'length' => '128', + 'length' => 128, 'not null' => TRUE, 'default' => '', ), 'server_pattern' => array( 'description' => 'Pattern of path and name of the gettext file at the translation server.', 'type' => 'varchar', - 'length' => '255', + 'length' => 255, 'not null' => TRUE, 'default' => '', ), 'status' => array( - 'description' => 'Status flag. TBD', + 'description' => 'The update status of the project.', 'type' => 'int', 'not null' => TRUE, 'default' => 1,