Index: l10n_community/l10n_community.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/l10n_server/l10n_community/Attic/l10n_community.module,v
retrieving revision 1.1.2.23.2.66.2.10
diff -u -r1.1.2.23.2.66.2.10 l10n_community.module
--- l10n_community/l10n_community.module	17 Mar 2010 13:30:38 -0000	1.1.2.23.2.66.2.10
+++ l10n_community/l10n_community.module	21 Mar 2010 11:36:16 -0000
@@ -216,7 +216,7 @@
     'access arguments' => array('access localization community'),
     'type' => MENU_CALLBACK
   );
-  
+
 
   // AJAX callbacks for easy translation management. These are expected to be
   // used only onsite (not as remote API endpoints), so they have no versioning.
@@ -403,6 +403,7 @@
     'submit suggestions',
     'moderate suggestions from others',
     'moderate own suggestions',
+    'decline own suggestions',
   );
 }
 
@@ -1165,13 +1166,13 @@
   // Pick and render our changed element for output.
   $changed_element = ($form_id == 'l10n_community_export_form') ? $form['data']['release'] : $form['release'];
   // Prevent duplicate wrappers.
-  unset($changed_element['#prefix'], $changed_element['#suffix']); 
+  unset($changed_element['#prefix'], $changed_element['#suffix']);
 
   if ($form_id == 'l10n_community_filter_form') {
     // Prevent duplicate titles (due to how we render the elements).
     unset($changed_element['#title']);
   }
-  
+
   drupal_json(
     array(
       'status' => TRUE,
Index: l10n_community/translate.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/l10n_server/l10n_community/Attic/translate.inc,v
retrieving revision 1.1.2.7.2.31.2.21
diff -u -r1.1.2.7.2.31.2.21 translate.inc
--- l10n_community/translate.inc	18 Mar 2010 08:15:24 -0000	1.1.2.7.2.31.2.21
+++ l10n_community/translate.inc	21 Mar 2010 11:36:17 -0000
@@ -47,7 +47,7 @@
       'limit'   => isset($filters['limit'])   ? $filters['limit']          : 10,
     );
   }
-  
+
   $form = array();
   $form['project'] = array(
     '#title' => t('Project'),
@@ -190,7 +190,7 @@
       if (!empty($element['#display_none'])) {
         $class = ' js-hide';
       }
-      
+
       $output .= '<div class="filter-widget'. $class .'"><label>'. $title .'</label>'. drupal_render($element) .'</div>';
     }
   }
@@ -424,7 +424,7 @@
   $is_own = $user->uid == $string->uid_entered;
   $is_active = $string->is_active && !$string->is_suggestion;
   $is_new = $string->tid == 'new';
-  $may_moderate = ($is_own ? user_access('moderate own suggestions') : user_access('moderate suggestions from others'));
+  $may_moderate = ($is_own ? user_access('decline own suggestions') : user_access('moderate suggestions from others'));
 
   // This string is a match if it was data from the database and was entered by
   // the searched user or its text included the searched portion.
@@ -486,7 +486,7 @@
         '#type' => 'textarea',
         '#cols' => 60,
         '#rows' => 3,
-        '#default_value' => t('<New translation>'),
+        '#default_value' => '<'. t('New translation') .'>',
       ));
     }
     else {
@@ -606,7 +606,7 @@
     $element['#attributes']['class'] = '';
   }
   $element['#attributes']['class'] .= ' clearfix translation';
-  
+
   // Add is-selectable and is-declinable helpers for JS.
   if (!$element['active']['#disabled']) {
     $element['#attributes']['class'] .= ' is-selectable';
@@ -695,17 +695,17 @@
 
   // 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.
       if (isset($options['value']) && is_array($options['value'])) {
         foreach ($options['value'] as $key => $value) {
-          if ($value === t('<New translation>')) {
+          if ($value === '<'. t('New translation') .'>') {
             $options['value'] = '';
             $empty_values++;
           }
@@ -840,7 +840,7 @@
     elseif ($filters['status'] & L10N_STATUS_IS_TRANSLATION) {
       $where[] = "t.is_suggestion = 0";
     }
-    
+
     if ($filters['status'] & L10N_STATUS_HAS_SUGGESTION) {
       $where[] = "ts.has_suggestion = 1";
     }
@@ -950,7 +950,7 @@
     $output .= '<h3>'. t('Source string') .'</h3>'. theme('item_list', $unpacked);
     $output .= '<h3>'. (empty($string->context) ? t('Used at the following places') : t('Used at the following places in context %context', array('%context' => $string->context))) .'</h3>';
   }
-  
+
   // List of project releases, where this string is used.
   $result = db_query('SELECT l.pid, p.title project_title, l.rid, r.title release_title, COUNT(l.lineno) as occurrence_count FROM {l10n_community_line} l INNER JOIN {l10n_community_project} p ON l.pid = p.pid INNER JOIN {l10n_community_release} r ON l.rid = r.rid WHERE l.sid = %d AND p.status = 1 GROUP BY l.rid ORDER BY l.pid, l.rid', $sid);
 
