Index: l10n_community/translate.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/translate.inc,v
retrieving revision 1.1.2.7.2.7
diff -u -p -r1.1.2.7.2.7 translate.inc
--- l10n_community/translate.inc	30 Dec 2008 16:57:39 -0000	1.1.2.7.2.7
+++ l10n_community/translate.inc	21 May 2009 16:30:57 -0000
@@ -343,9 +343,10 @@ function l10n_community_translate_form(&
           $description = ($perm == L10N_PERM_SUGGEST) ? t('Suggestion for variant #%d', array('%d' => $i)) : t('Translation for variant #%d', array('%d' => $i));
         }
         
-        // Include a textarea for each plural variant.
+        // Include editing area for each plural variant.
         $form[$string->sid]['translation']['value'][$i] = array(
-          '#type' => strlen($string_parts[$i]) > 45 ? 'textarea' : 'textfield',
+          // Use textarea for long and multiline strings.
+          '#type' => ((strlen($string_parts[$i]) > 45) || (count(explode("\n", $string_parts[$i])) > 1)) ? 'textarea' : 'textfield',
           '#description' => $description,
           '#rows' => 1,
           '#id' => 'l10n-community-translation-'. $target,
@@ -363,7 +364,8 @@ function l10n_community_translate_form(&
         );
       }
       $form[$string->sid]['translation']['value'] = array(
-        '#type' => strlen($string->value) > 45 ? 'textarea' : 'textfield',
+        // Use textarea for long and multiline strings.
+        '#type' => ((strlen($string->value) > 45) || (count(explode("\n", $string->value)) > 1)) ? 'textarea' : 'textfield',
         // Provide accurate title based on previous data and permission.
         '#description' => $translated ? (($perm == L10N_PERM_SUGGEST) ? t('Add a new suggestion') : t('Add a new translation')) : (($perm == L10N_PERM_SUGGEST) ? t('Suggestion') : ''),
         '#rows' => 4,
