[Fusionforge-commits] r18078 - trunk/src/www/include

Marc-Etienne VARGENAU vargenau at fusionforge.org
Fri Sep 27 18:34:53 CEST 2013


Author: vargenau
Date: 2013-09-27 18:34:53 +0200 (Fri, 27 Sep 2013)
New Revision: 18078

Modified:
   trunk/src/www/include/html.php
Log:
No HTML in translated strings

Modified: trunk/src/www/include/html.php
===================================================================
--- trunk/src/www/include/html.php	2013-09-27 16:25:07 UTC (rev 18077)
+++ trunk/src/www/include/html.php	2013-09-27 16:34:53 UTC (rev 18078)
@@ -374,45 +374,57 @@
 
 function html_get_tooltip_description($element_name) {
 	global $use_tooltips;
-	if ($use_tooltips) {
-		switch ($element_name) {
-			case 'assigned_to':
-				return _('This drop-down box represents the person to which a tracker item is assigned.');
-			case 'status_id':
-				return _('This drop-down box represents the current status of a tracker item.<br /><br />You can set the status to \'Pending\' if you are waiting for a response from the tracker item author.  When the author responds the status is automatically reset to that of \'Open\'. Otherwise, if the author doesn\'t respond with an admin-defined amount of time (default is 14 days) then the item is given a status of \'Deleted\'.');
-			case 'category':
-				return _('Tracker category');
-			case 'group':
-				return _('Tracker group');
-			case 'sort_by':
-				return _('The Sort By option allows you to determine how the browse results are sorted.<br /><br />  You can sort by ID, Priority, Summary, Open Date, Close Date, Submitter, or Assignee.  You can also have the results sorted in Ascending or Descending order.');
-			case 'new_artifact_type_id':
-				return _('The Data Type option determines the type of tracker item this is.  Since the tracker rolls into one the bug, patch, support, etc... managers you need to be able to determine which one of these an item should belong.<br /><br />This has the added benefit of enabling an admin to turn a support request into a bug.');
-			case 'priority':
-				return _('The priority option allows a user to define a tracker item priority (ranging from 1-Lowest to 5-Highest).<br /><br />This is especially helpful for bugs and support requests where a user might find a critical problem with a project.');
-			case 'resolution':
-				return _('Resolution');
-			case 'summary':
-				return _('The summary text-box represents a short tracker item summary. Useful when browsing through several tracker items.');
-			case 'canned_response':
-				return _('The canned response drop-down represents a list of project admin-defined canned responses to common support or bug submission.<br /><br /> If you are a project admin you can click the \'(admin)\' link to define your own canned responses');
-			case 'comment':
-				return _('Anyone can add here comments to give additional information, answers and solutions. Please, be as precise as possible to avoid misunderstanding. If relevant, screenshots or documents can be added as attached files.');
-			case 'description':
-				return htmlentities(_('Enter the complete description.').'<br/><br/>'.
-				_("<div align=\"left\"><b>Editing tips:</b><br/><strong>http,https or ftp</strong>: Hyperlinks.<br/><strong>[#NNN]</strong>: Tracker id NNN.<br/><strong>[TNNN]</strong>: Task id NNN.<br/><strong>[wiki:<pagename>]</strong>: Wiki page.<br/><strong>[forum:<msg_id>]</strong>: Forum post.</div>"),
-					ENT_COMPAT, 'UTF-8');
-			case 'attach_file':
-				return _('When you wish to attach a file to a tracker item you must check this checkbox before submitting changes.');
-			case 'monitor':
-				return htmlentities(_('You can monitor or un-monitor this item by clicking the "Monitor" button. <br /><br /><strong>Note!</strong> this will send you additional email. If you add comments to this item, or submitted, or are assigned this item, you will also get emails for those reasons as well!'),
-					ENT_COMPAT, 'UTF-8');
-			default:
-				return '';
-		}
-	} else {
+	if (!$use_tooltips) {
 		return '';
 	}
+	switch ($element_name) {
+		case 'assigned_to':
+			return _('This drop-down box represents the person to which a tracker item is assigned.');
+		case 'status_id':
+			return _('This drop-down box represents the current status of a tracker item.')
+				.'<br /><br />'
+				._('You can set the status to \'Pending\' if you are waiting for a response from the tracker item author.  When the author responds the status is automatically reset to that of \'Open\'. Otherwise, if the author doesn\'t respond with an admin-defined amount of time (default is 14 days) then the item is given a status of \'Deleted\'.');
+		case 'category':
+			return _('Tracker category');
+		case 'group':
+			return _('Tracker group');
+		case 'sort_by':
+			return _('The Sort By option allows you to determine how the browse results are sorted.')
+				.'<br /><br />'
+				._('You can sort by ID, Priority, Summary, Open Date, Close Date, Submitter, or Assignee.  You can also have the results sorted in Ascending or Descending order.');
+		case 'new_artifact_type_id':
+			return _('The Data Type option determines the type of tracker item this is.  Since the tracker rolls into one the bug, patch, support, etc... managers you need to be able to determine which one of these an item should belong.')
+				.'<br /><br />'
+				._('This has the added benefit of enabling an admin to turn a support request into a bug.');
+		case 'priority':
+			return _('The priority option allows a user to define a tracker item priority (ranging from 1-Lowest to 5-Highest).')
+				.'<br /><br />'
+				._('This is especially helpful for bugs and support requests where a user might find a critical problem with a project.');
+		case 'resolution':
+			return _('Resolution');
+		case 'summary':
+			return _('The summary text-box represents a short tracker item summary. Useful when browsing through several tracker items.');
+		case 'canned_response':
+			return _('The canned response drop-down represents a list of project admin-defined canned responses to common support or bug submission.')
+				.'<br /><br />'
+				._('If you are a project admin you can click the \'Manage Canned Responses\' link to define your own canned responses');
+		case 'comment':
+			return _('Anyone can add here comments to give additional information, answers and solutions. Please, be as precise as possible to avoid misunderstanding. If relevant, screenshots or documents can be added as attached files.');
+		case 'description':
+			return _('Enter the complete description.')
+				.'<br/><br/>'
+				.'<div align="left">'
+				._("<b>Editing tips:</b><br/><strong>http,https or ftp</strong>: Hyperlinks.<br/><strong>[#NNN]</strong>: Tracker id NNN.<br/><strong>[TNNN]</strong>: Task id NNN.<br/><strong>[wiki:<pagename>]</strong>: Wiki page.<br/><strong>[forum:<msg_id>]</strong>: Forum post.")
+				.'</div>';
+		case 'attach_file':
+			return _('When you wish to attach a file to a tracker item you must check this checkbox before submitting changes.');
+		case 'monitor':
+			return _('You can monitor or un-monitor this item by clicking the “Monitor” button.')
+				.' <br /><br />'
+				._('<strong>Note!</strong> this will send you additional email. If you add comments to this item, or submitted, or are assigned this item, you will also get emails for those reasons as well!');
+		default:
+			return '';
+	}
 }
 
 function html_use_jquery() {




More information about the Fusionforge-commits mailing list