[evolvis-commits] r17516: ignore tooltips beginning with a HYPHEN-MINUS↵ and provide translation ability for all of them

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Sep 2 14:29:37 CEST 2011


Author: mirabilos
Date: 2011-09-02 14:29:37 +0200 (Fri, 02 Sep 2011)
New Revision: 17516

Modified:
   branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/www/index.php
   branches/ev48fixes/www/themes/evolvis/Theme.class.php
Log:
ignore tooltips beginning with a HYPHEN-MINUS
and provide translation ability for all of them


Modified: branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/www/index.php
===================================================================
--- branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/www/index.php	2011-09-02 12:23:17 UTC (rev 17515)
+++ branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/www/index.php	2011-09-02 12:29:37 UTC (rev 17516)
@@ -423,7 +423,7 @@
 	<td><?php echo _('Rename to:'); ?></td>
 	<td><input type="text" size="20" maxlength="20" name="tab_rename" value="" /></td>
 </tr><tr>
-	<td><?php echo _('New tooltip:'); ?></td>
+	<td><?php echo _('New tooltip (set to “-” to delete):'); ?></td>
 	<td><input type="text" size="20" maxlength="20" name="tab_new_tooltip" value="" /></td>
 </tr><tr>
 	<td><?php echo _('New URL:'); ?></td>

Modified: branches/ev48fixes/www/themes/evolvis/Theme.class.php
===================================================================
--- branches/ev48fixes/www/themes/evolvis/Theme.class.php	2011-09-02 12:23:17 UTC (rev 17515)
+++ branches/ev48fixes/www/themes/evolvis/Theme.class.php	2011-09-02 12:29:37 UTC (rev 17516)
@@ -593,7 +593,7 @@
 		for ($i = 0; $i < count($TABS_DIRS); $i++) {
 			$tooltip = util_html_secure(util_ifsetor($TABS_TOOLTIPS[$i], ""));
 			$rv .= '<span class="headblock"';
-			if ($tooltip) {
+			if ($tooltip && $tooltip[0] != '-') {
 				$rv .= ' title="' . $tooltip . '"';
 			}
 			$rv .= '><span class="headlink' .
@@ -627,6 +627,7 @@
 		if (user_ismember($GLOBALS['sys_stats_group'])) {
 			$TABS_DIRS[]='/reporting/';
 			$TABS_TITLES[]=_('Reporting');
+			$TABS_TOOLTIPS[count($TABS_DIRS)-1]=_('-tooltip:Reporting');
 		}
 		if (strstr($_SERVER['REQUEST_URI'],'/my/') ||
 		    strstr($_SERVER['REQUEST_URI'],'/account/') ||
@@ -708,6 +709,7 @@
 		if ($project->usesForum()) {
 			$TABS_DIRS[]='/forum/?group_id='.$group;
 			$TABS_TITLES[]=_('Forums');
+			$TABS_TOOLTIPS[count($TABS_DIRS)-1]=_('-tooltip:Forums');
 			(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
 		}
 
@@ -748,6 +750,7 @@
 		if ($project->usesNews()) {
 			$TABS_DIRS[]='/news/?group_id='.$group;
 			$TABS_TITLES[]=_('News');
+			$TABS_TOOLTIPS[count($TABS_DIRS)-1]=_('-tooltip:News');
 			(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
 		}
 



More information about the evolvis-commits mailing list