Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2fcb9a09

Von Thomas Heck vor etwa 11 Jahren hinzugefügt

  • ID 2fcb9a09fddfd18b6f611d2752d54a84055b3278
  • Vorgänger 3711d95e
  • Nachfolger 2e4e2ba9

Zeitformat einstellbar machen

Unterschiede anzeigen:

SL/DB/AuthUser.pm
8 8
use SL::DB::Manager::AuthUser;
9 9
use SL::DB::Helper::Util;
10 10

  
11
use constant CONFIG_VARS => qw(copies countrycode dateformat default_media default_printer_id email favorites fax hide_cvar_search_options mandatory_departments menustyle name
11
use constant CONFIG_VARS => qw(copies countrycode dateformat timeformat default_media default_printer_id email favorites fax hide_cvar_search_options mandatory_departments menustyle name
12 12
                               numberformat show_form_details signature stylesheet taxincluded_checked tel template_format vclimit);
13 13

  
14 14
__PACKAGE__->meta->add_relationship(
SL/Locale.pm
383 383
sub format_date_object_to_time {
384 384
  my ($self, $datetime, %params) = @_;
385 385

  
386
  return $datetime->strftime('%H:%M');
386
  my $format =  $::myconfig{timeformat} || 'hh:mm';
387
  $format    =~ s/hh/\%H/;
388
  $format    =~ s/mm/\%M/;
389
  $format    =~ s/ss/\%S/;
390

  
391
  return $datetime->strftime($format);
387 392
}
388 393

  
389 394
sub format_date_object {
bin/mozilla/am.pl
960 960
  my $locale   = $main::locale;
961 961

  
962 962
  _build_cfg_options('dateformat', qw(mm/dd/yy dd/mm/yy dd.mm.yy yyyy-mm-dd));
963
  _build_cfg_options('timeformat', qw(hh:mm hh:mm:ss));
963 964
  _build_cfg_options('numberformat', ('1,000.00', '1000.00', '1.000,00', '1000,00'));
964 965

  
965 966
  my @formats = ();
locale/de/all
2238 2238
  'This user will have access to the following clients' => 'Dieser Benutzer wird Zugriff auf die folgenden Mandanten haben',
2239 2239
  'This vendor number is already in use.' => 'Diese Lieferantennummer wird bereits verwendet.',
2240 2240
  'Three Options:'              => 'Drei Optionen:',
2241
  'Time Format'                 => 'Uhrzeitformat',
2241 2242
  'Time Tracking'               => 'Zeiterfassung',
2242 2243
  'Time period for the analysis:' => 'Analysezeitraum:',
2243 2244
  'Timestamp'                   => 'Uhrzeit',
templates/webpages/am/config.html
53 53
      <td><input name="fax" size="14" value="[% HTML.escape(myconfig_fax) %]"></td>
54 54
     </tr>
55 55

  
56
       <tr>
57
        <th align="right"q>[% 'taxincluded checked' | $T8 %]</th>
56
      <tr>
57
        <th align="right">[% 'taxincluded checked' | $T8 %]</th>
58 58
        <td>
59 59
          [% L.yes_no_tag('taxincluded_checked', myconfig_taxincluded_checked) %]
60 60
        </td>
......
72 72
        [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
73 73
      </td>
74 74
     </tr>
75
     <tr>
76
       <th align="right">[% 'Time Format' | $T8 %]</th>
77
       <td>
78
         [% L.select_tag('timeformat', TIMEFORMATS, value_key = 'value', title_key = 'name') %]
79
       </td>
80
     </tr>
75 81
     <tr>
76 82
      <th align="right">[% 'Output Number Format' | $T8 %]</th>
77 83
      <td>

Auch abrufbar als: Unified diff