Index: devel.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/devel.inc,v retrieving revision 1.1.2.3 diff -u -r1.1.2.3 devel.inc --- devel.inc 22 Dec 2009 18:24:23 -0000 1.1.2.3 +++ devel.inc 11 Feb 2010 12:47:53 -0000 @@ -32,7 +32,7 @@ */ function l10n_server_generate_languages_form_submit($form_id, &$form_state) { include_once 'includes/locale.inc'; - db_query("DELETE FROM {languages} WHERE language != 'en'"); + db_query("DELETE FROM {languages} WHERE language <> 'en'"); db_query('DELETE FROM {locales_target}'); drupal_set_message(t('Languages deleted.')); $num = $form_state['values']['num']; Index: translate.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/translate.inc,v retrieving revision 1.1.2.7.2.31.2.4 diff -u -r1.1.2.7.2.31.2.4 translate.inc --- translate.inc 8 Feb 2010 16:15:01 -0000 1.1.2.7.2.31.2.4 +++ translate.inc 11 Feb 2010 12:47:53 -0000 @@ -224,33 +224,33 @@ // strings in the database. $form = array( '#redirect' => array( - $_GET['q'], + $_GET['q'], $redirect_url ), 'langcode' => array( - '#type' => 'value', + '#type' => 'value', '#value' => $language->language ), 'pager_top' => array( - '#weight' => -10, + '#weight' => -10, '#value' => $pager ), 'submit_top' => array( - '#type' => 'submit', + '#type' => 'submit', '#value' => t('Save changes'), '#access' => user_access('submit suggestions') ), 'strings' => array( - '#tree' => TRUE, + '#tree' => TRUE, '#theme' => 'l10n_community_translate_table' ), 'submit' => array( - '#type' => 'submit', - '#value' => t('Save changes'), + '#type' => 'submit', + '#value' => t('Save changes'), '#access' => user_access('submit suggestions') ), 'pager_bottom' => array( - '#weight' => 10, + '#weight' => 10, '#value' => $pager ), ); @@ -363,7 +363,7 @@ $form = array( '#theme' => 'l10n_community_translate_translation', 'original' => array( - '#type' => 'value', + '#type' => 'value', '#value' => $string ), ); @@ -581,18 +581,18 @@ /** * Form submit callback for l10n_community_translate_form(). * - * @see l10n_community_translate_form(). - */ + * @see l10n_community_translate_form() + */ function l10n_community_translate_form_submit($form, &$form_state) { $langcode = $form_state['values']['langcode']; // Iterate outer structure built in l10n_community_translate_form(). foreach ($form_state['values']['strings'] as $sid => $string) { - + // Iterate inner structure built in _l10n_community_translate_form_item(). // Form items have numeric $tid values and other keys here. foreach ($string as $tid => $options) { - + // Store new suggestion. $empty_values = 0; // $options['value'] is the result of (a series of) textareas. Index: tests/l10n_community.test =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/tests/Attic/l10n_community.test,v retrieving revision 1.1.2.15 diff -u -r1.1.2.15 l10n_community.test --- tests/l10n_community.test 27 Dec 2009 09:46:09 -0000 1.1.2.15 +++ tests/l10n_community.test 11 Feb 2010 12:47:54 -0000 @@ -774,7 +774,7 @@ } $output_path = "$file_dir/$basename.". $this->randomName(10) .'.html'; $rv = file_put_contents($output_path, $this->drupalGetContent()); - $this->pass("$description: ". l('Contents of result page', $output_path)); + $this->pass("$description: ". l(t('Contents of result page'), $output_path)); } }