Show
Ignore:
Timestamp:
10/12/08 09:57:38 (5 years ago)
Author:
mickecarlsson
Message:

Enclosed text strings for localization, updated .pot file, updated sweish language for timeconditions

Files:

Legend:

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

    r6846 r6959  
    1616    } else { 
    1717      //$type = isset($active_modules['announcement']['type'])?$active_modules['announcement']['type']:'setup'; 
    18       return array('description' => 'Time Conditon : '.$thisexten['displayname']
     18      return array('description' => sprintf(_("Time Condition: %s"),$thisexten['displayname'])
    1919                   'edit_url' => 'config.php?display=timeconditions&itemid='.urlencode($exten), 
    2020                  ); 
     
    8585    $thisdest    = $result['truegoto']; 
    8686    $thisid      = $result['timeconditions_id']; 
    87     $description = 'Timecondition: '.$result['displayname']
     87    $description = sprintf(_("Time Condition: %s"),$result['displayname'])
    8888    $thisurl     = 'config.php?display=timeconditions&itemid='.urlencode($thisid); 
    8989    if ($dest === true || $dest = $thisdest) { 
     
    352352  global $currentcomponent; 
    353353 
    354   $descerr = 'Description must be alpha-numeric, and may not be left blank'
     354  $descerr = _("Description must be alpha-numeric, and may not be left blank")
    355355  $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; 
    356356  $action= isset($_REQUEST['action'])?$_REQUEST['action']:null; 
     
    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); 
     
    385385 
    386386 
    387     $currentcomponent->addguielem(_("Time Group"), new gui_textbox('description', $description, 'Description', 'This will display as the name of this Time Group.', '', '', false), 3); 
     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) {