Changeset 6481

Show
Ignore:
Timestamp:
08/26/08 10:06:05 (3 months ago)
Author:
p_lindheimer
Message:

Enclose remaining gui element text strings for translation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/core/functions.inc.php

    r6450 r6481  
    42294229                        $currentcomponent->addguielem($section, new gui_hidden('extension', $extdisplay), 2); 
    42304230                } else { 
    4231                         $currentcomponent->addguielem($section, new gui_textbox('extension', $extdisplay, 'User Extension', _("The extension number to dial to reach this user."), '!isInteger()', $msgInvalidExtNum, false), 3); 
     4231                        $currentcomponent->addguielem($section, new gui_textbox('extension', $extdisplay, _("User Extension"), _("The extension number to dial to reach this user."), '!isInteger()', $msgInvalidExtNum, false), 3); 
    42324232                } 
    42334233                if ( $display != 'extensions' ) { 
    4234                         $currentcomponent->addguielem($section, new gui_password('password', $password, 'User Password', _("A user will enter this password when logging onto a device.").' '.$fc_logon.' '._("logs into a device.").' '.$fc_logoff.' '._("logs out of a device."), '!isInteger() && !isWhitespace()', $msgInvalidExtPwd, true)); 
     4234                        $currentcomponent->addguielem($section, new gui_password('password', $password, _("User Password"), _("A user will enter this password when logging onto a device.").' '.$fc_logon.' '._("logs into a device.").' '.$fc_logoff.' '._("logs out of a device."), '!isInteger() && !isWhitespace()', $msgInvalidExtPwd, true)); 
    42354235                        // extra JS function check required for blank password warning -- call last in the onsubmit() function 
    42364236                        $currentcomponent->addjsfunc('onsubmit()', "\treturn checkBlankUserPwd();\n", 9); 
    42374237                } 
    4238                 $currentcomponent->addguielem($section, new gui_textbox('name', $name, 'Display Name', _("The caller id name for calls from this user will be set to this name. Only enter the name, NOT the number."),  '!isAlphanumeric() || isWhitespace()', $msgInvalidDispName, false)); 
     4238                $currentcomponent->addguielem($section, new gui_textbox('name', $name, _("Display Name"), _("The caller id name for calls from this user will be set to this name. Only enter the name, NOT the number."),  '!isAlphanumeric() || isWhitespace()', $msgInvalidDispName, false)); 
    42394239                $cid_masquerade = (trim($cid_masquerade) == $extdisplay)?"":$cid_masquerade; 
    4240                 $currentcomponent->addguielem($section, new gui_textbox('cid_masquerade', $cid_masquerade, 'CID Num Alias', _("The CID Number to use for internal calls, if different from the extension number. This is used to masquerade as a different user. A common example is a team of support people who would like their internal callerid to display the general support number (a ringgroup or queue). There will be no effect on external calls."), '!isWhitespace() && !isInteger()', $msgInvalidCidNum, false)); 
    4241                 $currentcomponent->addguielem($section, new gui_textbox('sipname', $sipname, 'SIP Alias', _("If you want to support direct sip dialing of users internally or through anonymous sip calls, you can supply a friendly name that can be used in addition to the users extension to call them."))); 
     4240                $currentcomponent->addguielem($section, new gui_textbox('cid_masquerade', $cid_masquerade, _("CID Num Alias"), _("The CID Number to use for internal calls, if different from the extension number. This is used to masquerade as a different user. A common example is a team of support people who would like their internal callerid to display the general support number (a ringgroup or queue). There will be no effect on external calls."), '!isWhitespace() && !isInteger()', $msgInvalidCidNum, false)); 
     4241                $currentcomponent->addguielem($section, new gui_textbox('sipname', $sipname, _("SIP Alias"), _("If you want to support direct sip dialing of users internally or through anonymous sip calls, you can supply a friendly name that can be used in addition to the users extension to call them."))); 
    42424242 
    42434243                // If user mode, list devices associated with this user 
     
    43134313 
    43144314                $section = _("Recording Options"); 
    4315                 $currentcomponent->addguielem($section, new gui_selectbox('record_in', $currentcomponent->getoptlist('recordoptions'), $record_in, 'Record Incoming', _("Record all inbound calls received at this extension."), false)); 
    4316                 $currentcomponent->addguielem($section, new gui_selectbox('record_out', $currentcomponent->getoptlist('recordoptions'), $record_out, 'Record Outgoing', _("Record all outbound calls received at this extension."), false)); 
     4315                $currentcomponent->addguielem($section, new gui_selectbox('record_in', $currentcomponent->getoptlist('recordoptions'), $record_in, _("Record Incoming"), _("Record all inbound calls received at this extension."), false)); 
     4316                $currentcomponent->addguielem($section, new gui_selectbox('record_out', $currentcomponent->getoptlist('recordoptions'), $record_out, _("Record Outgoing"), _("Record all outbound calls received at this extension."), false)); 
    43174317        } 
    43184318} 
     
    45174517                } 
    45184518                $currentcomponent->addguielem('_top', new gui_label('instructions', _("Please select your Device below then click Submit"))); 
    4519                 $currentcomponent->addguielem('Device', new gui_selectbox('tech_hardware', $currentcomponent->getoptlist('devicelist'), '', 'Device', '', false)); 
     4519                $currentcomponent->addguielem('Device', new gui_selectbox('tech_hardware', $currentcomponent->getoptlist('devicelist'), '', _("Device"), '', false)); 
    45204520 
    45214521        } else { 
     
    45894589                } else { 
    45904590                        $section = _("Extension Options"); 
    4591                         $currentcomponent->addguielem($section, new gui_textbox('emergency_cid', $devinfo_emergency_cid, 'Emergency CID', _("This caller id will always be set when dialing out an Outbound Route flagged as Emergency.  The Emergency CID overrides all other caller id settings."), '!isCallerID()', $msgInvalidEmergCID)); 
     4591                        $currentcomponent->addguielem($section, new gui_textbox('emergency_cid', $devinfo_emergency_cid, _("Emergency CID"), _("This caller id will always be set when dialing out an Outbound Route flagged as Emergency.  The Emergency CID overrides all other caller id settings."), '!isCallerID()', $msgInvalidEmergCID)); 
    45924592                } 
    45934593                $currentcomponent->addguielem($section, new gui_hidden('tech', $devinfo_tech)); 
  • modules/branches/2.5/gabcast/functions.inc.php

    r5400 r6481  
    1919                if (is_array($list)) { 
    2020                        $res = $_SERVER['PHP_SELF']."?display=gabcast&type=tool&ext=$viewing_itemid&action=edit"; 
    21                         $currentcomponent->addguielem('_top', new gui_link('gabcastlink', 'Edit Gabcast Settings', $res)); 
     21                        $currentcomponent->addguielem('_top', new gui_link('gabcastlink', _("Edit Gabcast Settings"), $res)); 
    2222                } else { 
    2323                        $res = $_SERVER['PHP_SELF']."?display=gabcast&type=tool&ext=$viewing_itemid&action=add"; 
    24                         $currentcomponent->addguielem('_top', new gui_link('gabcastlink', 'Add Gabcast Settings', $res)); 
     24                        $currentcomponent->addguielem('_top', new gui_link('gabcastlink', _("Add Gabcast Settings"), $res)); 
    2525                } 
    2626        } 
  • modules/branches/2.5/timeconditions/functions.inc.php

    r6124 r6481  
    365365        if (!$extdisplay) { 
    366366                $currentcomponent->addguielem('_top', new gui_pageheading('title', _("Add Time Group"), false), 0); 
    367                 $currentcomponent->addguielem('Time Group', new gui_textbox('description', '', 'Description', 'This will display as the name of this Time Group.', '!isAlphanumeric() || isWhitespace()', $descerr, false), 3); 
     367                $currentcomponent->addguielem('Time Group', new gui_textbox('description', '', _("Description"), 'This will display as the name of this Time Group.', '!isAlphanumeric() || isWhitespace()', $descerr, false), 3); 
    368368        } else { 
    369369                $savedtimegroup= timeconditions_timegroups_get_group($extdisplay); 
     
    381381                        $label = '<span><img width="16" height="16" border="0" title="'.$link['description'].'" alt="" src="images/time_link.png"/>&nbsp;'.$link['description'].'</span>'; 
    382382                        $timegroup_link = $_SERVER['PHP_SELF'].'?'.$link['url_query']; 
    383                         $currentcomponent->addguielem('Used By', new gui_link('link'.$count++, $label, $timegroup_link, true, false), 4); 
    384                 } 
    385  
    386  
    387                 $currentcomponent->addguielem('Time Group', new gui_textbox('description', $description, 'Description', 'This will display as the name of this Time Group.', '', '', false), 3); 
     383                        $currentcomponent->addguielem(_("Used By"), new gui_link('link'.$count++, $label, $timegroup_link, true, false), 4); 
     384                } 
     385 
     386 
     387                $currentcomponent->addguielem(_("Time Group"), new gui_textbox('description', $description, 'Description', 'This will display as the name of this Time Group.', '', '', false), 3); 
    388388                $timelist = timeconditions_timegroups_get_times($extdisplay); 
    389389                foreach ($timelist as $val) { 
     
    395395        $timehtml = timeconditions_timegroups_drawtimeselects('times[new]',null); 
    396396        $timehtml = '<tr><td colspan="2"><table>'.$timehtml.'</table></td></tr>'; 
    397         $currentcomponent->addguielem('New Time', new guielement('dest0', $timehtml, ''),6); 
     397        $currentcomponent->addguielem(_("New Time"), new guielement('dest0', $timehtml, ''),6); 
    398398        $currentcomponent->addguielem('_top', new gui_hidden('action', ($extdisplay ? 'edit' : 'add'))); 
    399399} 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads