[evolvis-commits] r14505: Internationalized some hard-coded messages. ↵ Unified page titl =?UTF-8?Q?e=20of=20artifact=20details?=.

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 04:19:28 CET 2011


Author: mirabilos
Date: 2011-02-28 04:19:28 +0100 (Mon, 28 Feb 2011)
New Revision: 14505

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/detail.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/mod-limited.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/mod.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/tracker.php
Log:
Internationalized some hard-coded messages.
Unified page title of artifact details.

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/detail.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/detail.php	2011-02-28 03:19:25 UTC (rev 14504)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/detail.php	2011-02-28 03:19:28 UTC (rev 14505)
@@ -8,7 +8,10 @@
  *
  */
 
-echo $ath->header(array ('title'=>_('Detail').': '.$ah->getID(). ' '.util_unconvert_htmlspecialchars($ah->getSummary()),'atid'=>$ath->getID()));
+$ath->header(array 
+	     ('title' => _('Detail').': [#'.$ah->getID(). '] ' 
+	      . util_unconvert_htmlspecialchars($ah->getSummary()),
+	      'atid'=>$ath->getID()));
 
 echo notepad_func();
 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/mod-limited.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/mod-limited.php	2011-02-28 03:19:25 UTC (rev 14504)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/mod-limited.php	2011-02-28 03:19:28 UTC (rev 14505)
@@ -9,8 +9,13 @@
  */
 
 
-$ath->header(array ('title'=>_('Modify').': '.$ah->getID(). ' - ' . $ah->getSummary(),'atid'=>$ath->getID()));
+$ath->header(array 
+	     ('title' => _('Modify').' [#'.$ah->getID(). '] ' 
+	      . util_unconvert_htmlspecialchars($ah->getSummary()),
+	      'atid'=>$ath->getID()));
 
+echo notepad_func();
+
 ?>
 	<h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/mod.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/mod.php	2011-02-28 03:19:25 UTC (rev 14504)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/mod.php	2011-02-28 03:19:28 UTC (rev 14505)
@@ -8,7 +8,10 @@
   *
   */
 
-$ath->header(array ('title'=>'[#'. $ah->getID(). '] ' . $ah->getSummary(), 'atid'=>$ath->getID()));
+$ath->header(array 
+	     ('title' => _('Modify').' [#'.$ah->getID(). '] ' 
+	      . util_unconvert_htmlspecialchars($ah->getSummary()),
+	      'atid'=>$ath->getID()));
 
 echo notepad_func();
 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/tracker.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/tracker.php	2011-02-28 03:19:25 UTC (rev 14504)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/tracker/tracker.php	2011-02-28 03:19:28 UTC (rev 14505)
@@ -252,7 +252,7 @@
 
 		$ah=new ArtifactHtml($ath,$artifact_id);
 		if (!$ah || !is_object($ah)) {
-			exit_error('ERROR','Artifact Could Not Be Created');
+			exit_error('ERROR', _('Artifact Could Not Be Created'));
 		} else if ($ah->isError()) {
 			exit_error('ERROR',$ah->getErrorMessage());
 		} else if (!$ath->allowsAnon() && !session_loggedin()) {
@@ -322,10 +322,12 @@
 						$n = $i+1;
 						if ($error === 1 || $error === 2) {
 							// UPLOAD_ERR_INI_SIZE or UPLOAD_ERR_FORM_SIZE
-							$ext_feedback .= "<br />ERROR: Skipping attachement $n: file is too large.";
+							$ext_feedback .= "<br />" . 
+								sprintf(_("ERROR: Skipping attachment %d: file is too large."), $n);
 						} elseif ($error === 3) {
 							// UPLOAD_ERR_PARTIAL
-							$ext_feedback .= "<br />ERROR: Skipping attachement $n: transfert interrupted.";
+							$ext_feedback .= "<br />" . 
+								sprintf(_("ERROR: Skipping attachment %d: transfer interrupted."), $n);
 						}
 						continue;
 					}
@@ -351,7 +353,7 @@
 						} else {
 							if (!util_check_fileupload($tmp_name)) {
 								form_release_key(getStringFromRequest('form_key'));
-								exit_error("Error","Invalid filename");
+								exit_error("Error", _("Invalid filename"));
 							}
 							if (!$afh->upload($tmp_name,$file_name,$type,' ')) {
 								$feedback .= ' <br />'._('File Upload: Error').':'.$afh->getErrorMessage();



More information about the evolvis-commits mailing list