Changeset 6959

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) { 
  • modules/branches/2.5/timeconditions/i18n/sv_SE/LC_MESSAGES/timeconditions.po

    r6846 r6959  
    88"Project-Id-Version: FreePBX timeconditions\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2008-09-26 21:35+0200\n" 
    11 "PO-Revision-Date: 2008-09-26 23:29+0100\n" 
     10"POT-Creation-Date: 2008-10-06 12:39+0200\n" 
     11"PO-Revision-Date: 2008-10-12 15:35+0100\n" 
    1212"Last-Translator: Mikael Carlsson <mickecamino@gmail.com>\n" 
    1313"Language-Team: Svenska\n" 
     
    1818"X-Poedit-Country: SWEDEN\n" 
    1919 
     20#: functions.inc.php:18 
     21#: functions.inc.php:87 
     22#, php-format 
     23msgid "Time Condition: %s" 
     24msgstr "Tidkondition: %s" 
     25 
    2026#: functions.inc.php:354 
    2127msgid "Description must be alpha-numeric, and may not be left blank" 
    22 msgstr "Beskrivningen fÃ¥r endast innehÃ¥lla alfa-numeriska tecken och inte vara tom" 
     28msgstr "Beskrivningen kan bara inehÃ¥lla alfa-numeriska tecken och den kan inte vara tom" 
    2329 
    2430#: functions.inc.php:358 
     31#: functions.inc.php:367 
    2532#: functions.inc.php:387 
    2633#: page.timegroups.php:21 
     
    3744 
    3845#: functions.inc.php:367 
     46#: functions.inc.php:387 
    3947msgid "Description" 
    4048msgstr "Beskrivning" 
     49 
     50#: functions.inc.php:367 
     51#: functions.inc.php:387 
     52msgid "This will display as the name of this Time Group." 
     53msgstr "Detta kommer att visas som namnet för denna tidgrupp." 
    4154 
    4255#: functions.inc.php:373 
     
    301314msgstr "Tidskonditioner" 
    302315 
     316msgid "Time Groups" 
     317msgstr "Tidgrupper" 
     318 
    303319#: dirty fix for menus 
    304320msgid "Add" 
  • modules/branches/2.5/timeconditions/i18n/timeconditions.pot

    r6846 r6959  
    99"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2008-09-26 21:35+0200\n" 
     11"POT-Creation-Date: 2008-10-06 12:39+0200\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    1717"Content-Transfer-Encoding: 8bit\n" 
    1818 
     19#: functions.inc.php:18 functions.inc.php:87 
     20#, php-format 
     21msgid "Time Condition: %s" 
     22msgstr "" 
     23 
    1924#: functions.inc.php:354 
    2025msgid "Description must be alpha-numeric, and may not be left blank" 
    2126msgstr "" 
    2227 
    23 #: functions.inc.php:358 functions.inc.php:387 page.timegroups.php:21 
     28#: functions.inc.php:358 functions.inc.php:367 functions.inc.php:387 
     29#: page.timegroups.php:21 
    2430msgid "Time Group" 
    2531msgstr "" 
     
    3339msgstr "" 
    3440 
    35 #: functions.inc.php:367 
     41#: functions.inc.php:367 functions.inc.php:387 
    3642msgid "Description" 
     43msgstr "" 
     44 
     45#: functions.inc.php:367 functions.inc.php:387 
     46msgid "This will display as the name of this Time Group." 
    3747msgstr "" 
    3848 
     
    283293msgstr "" 
    284294 
     295msgid "Time Groups" 
     296msgstr "" 
     297 
    285298#: dirty fix for menus 
    286299msgid "Add"