[Vtigercrm-commits] [vtiger-commits] r10719 - in /vtigercrm/branches/5.0.3: include/language/ include/utils/ modules/Settings/language/ modules/Users/ modules/Users/language/
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 18 03:53:17 EDT 2007
Author: richie
Date: Wed Apr 18 01:53:02 2007
New Revision: 10719
Log:
fix for i18n issue: lots of untranslatable alt= and title=. minnie
Modified:
vtigercrm/branches/5.0.3/include/language/en_us.lang.php
vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php
vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php
vtigercrm/branches/5.0.3/modules/Users/RolePopup.php
vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php
vtigercrm/branches/5.0.3/modules/Users/notify_detail.php
Modified: vtigercrm/branches/5.0.3/include/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.3/include/language/en_us.lang.php Wed Apr 18 01:53:02 2007
@@ -853,6 +853,13 @@
'MAP_NAME_EXISTS'=>'This map name already exists. \n Do you want to overwrite it?',
'FOLDER_NAME_ALLOW_20CHARS'=> 'Folder name allowed 20 characters only',
'SPECIAL_CHARS_NOT_ALLOWED' => 'Special characters not allowed. try again...',
+//Added for title for SignIn Image.
+'LBL_SIGN_IN'=>'Sign in',
+
+//Added for title of Root Image
+'LBL_ROOT'=>'Root',
+'LBL_FIRST'=>'First',
+'LBL_LAST'=>'Last',
);
$app_list_strings = array (
Modified: vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php Wed Apr 18 01:53:02 2007
@@ -483,7 +483,7 @@
$image_name = $adb->query_result($image_res,0,'name');
$imgpath = $image_path.$image_id."_".$image_name;
if($image_name != '')
- $label_fld[] ='<img src="'.$imgpath.'" alt="'.$app_strings['MSG_IMAGE_ERROR'].'">';
+ $label_fld[] ='<img src="'.$imgpath.'" alt="'.$app_strings['MSG_IMAGE_ERROR'].'" title= "'.$app_strings['MSG_IMAGE_ERROR'].'">';
else
$label_fld[] = '';
}
Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Wed Apr 18 01:53:02 2007
@@ -2543,11 +2543,9 @@
//used in home page listTop vtiger_files
function getRelatedTo($module,$list_result,$rset)
{
- global $log;
+ global $adb,$log,$app_strings;
$log->debug("Entering getRelatedTo(".$module.",".$list_result.",".$rset.") method ...");
- global $adb;
- global $app_strings;
if($module == "Notes")
{
$notesid = $adb->query_result($list_result,$rset,"notesid");
@@ -2601,7 +2599,7 @@
if($module == 'HelpDesk' && ($parent_module == 'Accounts' || $parent_module == 'Contacts'))
{
global $theme;
- $module_icon = '<img src="themes/'.$theme.'/images/'.$parent_module.'.gif" alt="" border=0 align=center title='.$parent_module.'> ';
+ $module_icon = '<img src="themes/'.$theme.'/images/'.$parent_module.'.gif" alt="'.$app_strings[$parent_module].'" title="'.$app_strings[$parent_module].'" border=0 align=center> ';
}
$action = "DetailView";
@@ -2709,7 +2707,7 @@
function getTableHeaderNavigation($navigation_array, $url_qry,$module='',$action_val='index',$viewid='')
{
- global $log;
+ global $log,$app_strings;
$log->debug("Entering getTableHeaderNavigation(".$navigation_array.",". $url_qry.",".$module.",".$action_val.",".$viewid.") method ...");
global $theme;
$theme_path="themes/".$theme."/";
@@ -2721,8 +2719,8 @@
*/
if(($navigation_array['prev']) != 0)
{
- $output .= '<a href="javascript:;" onClick="getListViewEntries_js(\''.$module.'\',\'start=1\');" title="First"><img src="'.$image_path.'start.gif" border="0" align="absmiddle"></a> ';
- $output .= '<a href="javascript:;" onClick="getListViewEntries_js(\''.$module.'\',\'start='.$navigation_array['prev'].'\');" title="Previous"><img src="'.$image_path.'previous.gif" border="0" align="absmiddle"></a> ';
+ $output .= '<a href="javascript:;" onClick="getListViewEntries_js(\''.$module.'\',\'start=1\');" alt="'.$app_strings['LBL_FIRST'].'" title="'.$app_strings['LBL_FIRST'].'"><img src="'.$image_path.'start.gif" border="0" align="absmiddle"></a> ';
+ $output .= '<a href="javascript:;" onClick="getListViewEntries_js(\''.$module.'\',\'start='.$navigation_array['prev'].'\');" alt="'.$app_strings['LNK_LIST_PREVIOUS'].'"title="'.$app_strings['LNK_LIST_PREVIOUS'].'"><img src="'.$image_path.'previous.gif" border="0" align="absmiddle"></a> ';
}
else
{
@@ -2739,8 +2737,8 @@
}
if(($navigation_array['next']) !=0)
{
- $output .= '<a href="javascript:;" onClick="getListViewEntries_js(\''.$module.'\',\'start='.$navigation_array['next'].'\');" title="Next"><img src="'.$image_path.'next.gif" border="0" align="absmiddle"></a> ';
- $output .= '<a href="javascript:;" onClick="getListViewEntries_js(\''.$module.'\',\'start='.$navigation_array['verylast'].'\');" title="Last"><img src="'.$image_path.'end.gif" border="0" align="absmiddle"></a> ';
+ $output .= '<a href="javascript:;" onClick="getListViewEntries_js(\''.$module.'\',\'start='.$navigation_array['next'].'\');" alt="'.$app_strings['LNK_LIST_NEXT'].'" title="'.$app_strings['LNK_LIST_NEXT'].'"><img src="'.$image_path.'next.gif" border="0" align="absmiddle"></a> ';
+ $output .= '<a href="javascript:;" onClick="getListViewEntries_js(\''.$module.'\',\'start='.$navigation_array['verylast'].'\');" alt="'.$app_strings['LBL_LAST'].'" title="'.$app_strings['LBL_LAST'].'"><img src="'.$image_path.'end.gif" border="0" align="absmiddle"></a> ';
}
else
{
@@ -3121,7 +3119,7 @@
//Temp function to be be deleted
function getRelatedTableHeaderNavigation($navigation_array, $url_qry,$module='',$action_val='',$viewid='')
{
- global $log, $singlepane_view;
+ global $log, $singlepane_view,$app_strings;
$log->debug("Entering getTableHeaderNavigation(".$navigation_array.",". $url_qry.",".$module.",".$action_val.",".$viewid.") method ...");
global $theme;
$theme_path="themes/".$theme."/";
@@ -3133,7 +3131,7 @@
$action_val = 'CallRelatedList';
if(($navigation_array['prev']) != 0)
{
- $output .= '<a href="index.php?module='.$module.'&action='.$action_val.$url_qry.'&start=1&viewname='.$viewid.'" title="First"><img src="'.$image_path.'start.gif" border="0" align="absmiddle"></a> ';
+ $output .= '<a href="index.php?module='.$module.'&action='.$action_val.$url_qry.'&start=1&viewname='.$viewid.'" alt="'.$app_strings['LBL_FIRST'].'" title="'.$app_strings['LBL_FIRST'].'"><img src="'.$image_path.'start.gif" border="0" align="absmiddle"></a> ';
$output .= '<a href="index.php?module='.$module.'&action='.$action_val.$url_qry.'&start='.$navigation_array['prev'].'&viewname='.$viewid.'"><img src="'.$image_path.'previous.gif" border="0" align="absmiddle"></a> ';
}
Modified: vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php Wed Apr 18 01:53:02 2007
@@ -917,5 +917,9 @@
'LBL_INVOICE_NUMBER_BUTTON'=>'Update Invoice Number',
'LBL_PROXY_AUTHENTICATION_REQUIRED'=>'Proxy Authentication Required',
+//Added for Role Labels
+'LBL_ADD_ROLE'=>'Add Role',
+'LBL_EDIT_ROLE'=>'Edit Role',
+'LBL_MOVE_ROLE'=>'Move Role',
);
?>
Modified: vtigercrm/branches/5.0.3/modules/Users/RolePopup.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/RolePopup.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/RolePopup.php Wed Apr 18 01:53:02 2007
@@ -101,7 +101,7 @@
*/
function indent($hrarray,$roleout,$role_det,$mask_roleid='')
{
- global $theme;
+ global $theme,$app_strings;
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
foreach($hrarray as $roleid => $value)
@@ -116,14 +116,14 @@
$roleout .= '<li >';
if(sizeof($value) >0 && $roledepth != 0)
{
- $roleout .= '<img src="'.$image_path.'/minus.gif" id="img_'.$roleid.'" border="0" alt="Expand/Collapse" title="Expand/Collapse" align="absmiddle" onClick="showhide(\''.$roleid_arr.'\',\'img_'.$roleid.'\')" style="cursor:pointer;">';
+ $roleout .= '<img src="'.$image_path.'/minus.gif" id="img_'.$roleid.'" border="0" alt="'.$app_strings['LBL_EXPAND_COLLAPSE'].'" title="'.$app_strings['LBL_EXPAND_COLLAPSE'].'" align="absmiddle" onClick="showhide(\''.$roleid_arr.'\',\'img_'.$roleid.'\')" style="cursor:pointer;">';
}
else if($roledepth != 0){
- $roleout .= '<img src="'.$image_path.'/vtigerDevDocs.gif" id="img_'.$roleid.'" border="0" alt="Expand/Collapse" title="Expand/Collapse" align="absmiddle">';
+ $roleout .= '<img src="'.$image_path.'/vtigerDevDocs.gif" id="img_'.$roleid.'" border="0" alt="'.$app_strings['LBL_EXPAND_COLLAPSE'].'" title="'.$app_strings['LBL_EXPAND_COLLAPSE'].'" align="absmiddle">';
}
else
{
- $roleout .= '<img src="'.$image_path.'/menu_root.gif" id="img_'.$roleid.'" border="0" alt="Root" title="Root" align="absmiddle">';
+ $roleout .= '<img src="'.$image_path.'/menu_root.gif" id="img_'.$roleid.'" border="0" alt="'.$app_strings['LBL_ROOT'].'" title="'.$app_strings['LBL_ROOT'].'" align="absmiddle">';
}
if($roledepth == 0 || in_array($roleid,$mask_roleid))
{
Modified: vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php Wed Apr 18 01:53:02 2007
@@ -649,6 +649,10 @@
'TITLE_USER_DOCUMENT'=>'Untitled Document',
'TITLE_VTIGER_CRM_5'=>'vtiger CRM 5 - Free, Commercial grade Open Source CRM',
'ROLE_DRAG_ERR_MSG'=>'You cannot move a Parent Node under a Child Node',
+
+'LBL_NOTIFICATION_ACTIVITY'=>'Notification Activity',
+'LBL_NOTIFICATION_EMAIL_INFO'=>'Notification Email Information',
+'LBL_GOTO_LISTVIEW_BUTTON'=>'Goto ListView',
);
?>
Modified: vtigercrm/branches/5.0.3/modules/Users/notify_detail.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/notify_detail.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/notify_detail.php Wed Apr 18 01:53:02 2007
@@ -29,38 +29,38 @@
<form method="post" action="index.php?module=Users&action=listnotificationschedulers" name="">
<TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
- <TD ALIGN=LEFT CLASS="moduleTitle hline" NOWRAP> Notification Email Information:
+ <TD ALIGN=LEFT CLASS="moduleTitle hline" NOWRAP><?php echo $mod_strings['LBL_NOTIFICATION_EMAIL_INFO']; ?>:
</TD>
</TR>
</TABLE>
<br>
<table width="50%" border=0 cellspacing=1 cellpadding=2 class="formOuterBorder">
- <td class="formSecHeader" colspan=2 nowrap>Nofitication Email Information:</td>
+ <td class="formSecHeader" colspan=2 nowrap><?php echo $mod_strings['LBL_NOTIFICATION_EMAIL_INFO']; ?>:</td>
<tr>
- <td nowrap class="dataLabel" width="50%">Notification Activity:</td>
+ <td nowrap class="dataLabel" width="50%"><?php echo $mod_strings['LBL_NOTIFICATION_ACTIVITY']; ?>:</td>
<td></td>
</tr>
<tr >
- <td nowrap class="dataLabel">Description:</td>
+ <td nowrap class="dataLabel"><?php echo $mod_strings['LBL_DESCRIPTION']; ?>:</td>
<td></td>
</tr>
<tr >
- <td nowrap class="dataLabel">Active: </td>
- <td> <img src="yes.gif" alt="" title="" width="13" height="12" align="absmiddle">
+ <td nowrap class="dataLabel"><?php echo $mod_strings['LBL_ACTIVE']; ?>: </td>
+ <td> <img src="yes.gif" alt="<?php echo $mod_strings['LBL_INACTIVE']; ?>" title="<?php echo $mod_strings['LBL_INACTIVE']; ?>" width="13" height="12" align="absmiddle">
[<a href=#>Deactivate</a>]</td>
</tr>
<tr >
- <td nowrap class="dataLabel">Subject:</td>
+ <td nowrap class="dataLabel"><?php echo $mod_strings['LBL_SUBJECT']; ?>:</td>
<td></td>
</tr>
<tr >
- <td nowrap valign="top" class="dataLabel">Email Body:</td>
+ <td nowrap valign="top" class="dataLabel"><?php echo $mod_strings['LBL_BODY']; ?>:</td>
<td valign="top"></td>
</tr>
</table>
<TABLE WIDTH="50%" CELLPADDING="0" CELLSPACING="5" BORDER="0">
<TD NOWRAP>
- <input type="submit" name="cancel" value="Goto List View" class="button" onclick="this.form.action.value='listemailtemplates'">
+ <input type="submit" name="cancel" value="<?php echo $mod_strings['LBL_GOTO_LISTVIEW_BUTTON']; ?>" class="button" onclick="this.form.action.value='listemailtemplates'">
</TD>
</TR>
</TABLE>
More information about the vtigercrm-commits
mailing list