Annotation of loncom/localize/lonlocal.pm, revision 1.55

1.1       www         1: # The LearningOnline Network with CAPA
                      2: # Localization routines
                      3: #
1.55    ! bisitz      4: # $Id: lonlocal.pm,v 1.54 2009/02/01 21:54:30 lueken Exp $
1.1       www         5: #
                      6: # Copyright Michigan State University Board of Trustees
                      7: #
                      8: # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
                      9: #
                     10: # LON-CAPA is free software; you can redistribute it and/or modify
                     11: # it under the terms of the GNU General Public License as published by
                     12: # the Free Software Foundation; either version 2 of the License, or
                     13: # (at your option) any later version.
                     14: #
                     15: # LON-CAPA is distributed in the hope that it will be useful,
                     16: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                     17: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     18: # GNU General Public License for more details.
                     19: #
                     20: # You should have received a copy of the GNU General Public License
                     21: # along with LON-CAPA; if not, write to the Free Software
                     22: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                     23: #
                     24: # /home/httpd/html/adm/gpl.txt
                     25: #
                     26: # http://www.lon-capa.org/
                     27: #
                     28: ######################################################################
                     29: ######################################################################
1.10      bowersj2   30: 
                     31: =pod
                     32: 
                     33: =head1 NAME
                     34: 
                     35: Apache::lonlocal - provides localization services
                     36: 
                     37: =head1 SYNOPSIS
                     38: 
                     39: lonlocal provides localization services for LON-CAPA programmers based
                     40: on Locale::Maketext. See
                     41: C<http://search.cpan.org/dist/Locale-Maketext/lib/Locale/Maketext.pod>
                     42: for more information on Maketext.
                     43: 
                     44: =head1 OVERVIEWX<internationalization>
                     45: 
                     46: As of LON-CAPA 1.1, we've started to localize LON-CAPA using the
                     47: Locale::Maketext module. Internationalization is the bulk of the work
                     48: right now (pre-1.1); localizing can be done anytime, and involves 
                     49: little or no programming.
                     50: 
                     51: The internationalization process involves putting a wrapper around
                     52: on-screen user messages and menus and turning them into keys,
                     53: which the MaketextX<Maketext> library translates into the desired
                     54: language output using a look-up table ("lexicon").X<lexicon>
                     55: 
                     56: As keys we are currently using the plain English messages, and
                     57: Maketext is configured to replace the message by its own key if no
                     58: translation is found. This makes it easy to phase in the
                     59: internationalization without disturbing the screen output.
                     60: 
                     61: Internationalization is somewhat tedious and effectively impossible
                     62: for a non-fluent speaker to perform, but is fairly easy to create
                     63: translations, requiring no programming skill. As a result, this is one
                     64: area where you can really help LON-CAPA out, even if you aren't a
                     65: programmer, and we'd really appreciate it.
                     66: 
                     67: =head1 How To Localize Handlers For Programmers
                     68: 
                     69: Into the "use" section of a module, we need to insert
                     70: 
                     71:  use Apache::lonlocal;
                     72: 
                     73: Note that there are B<no parentheses>, we B<want> to pollute our
                     74: namespace. 
                     75: 
                     76: Inside might be something like this
                     77: 
                     78:  sub message {
                     79:      my $status=shift;
                     80:      my $message='Status unknown';
                     81:      if ($status eq 'WON') {
                     82:         $message='You have won.';
                     83:      } elsif ($status eq 'LOST') {
                     84:         $message='You are a total looser.';
                     85:      }
                     86:      return $message;
                     87:  }
                     88:  ...
                     89:  $r->print('<h3>Gamble your Homework Points</h3>');
                     90:  ...
                     91:  $r->print(<<ENDMSG);
                     92:  <font size="1">Rules:</font>
                     93:  <font size="0">No purchase necessary. Illegal where not allowed.</font>
                     94:  ENDMSG
                     95: 
                     96: We have to now wrap the subroutine &mt()X<mt> ("maketext") around our 
                     97: messages, but not around markup, etc. We also want minimal disturbance. 
                     98: The first two examples are easy:
                     99: 
                    100:  sub message {
                    101:      my $status=shift;
                    102:      my $message='Status unknown';
                    103:      if ($status eq 'WON') {
                    104:         $message='You have won.';
                    105:      } elsif ($status eq 'LOST') {
                    106:         $message='You are a total looser.';
                    107:      }
                    108:      return &mt($message);
                    109:  }
                    110:  ...
                    111:  $r->print('<h3>'.&mt('Gamble your Homework Points').'</h3>');
                    112: 
                    113: The last one is a bummer, since you cannot call subroutines inside of 
                    114: (<<MARKER). I have written a little subroutine to generate a translated 
                    115: hash for that purpose:
                    116: 
                    117:  my %lt=&Apache::lonlocal::texthash('header' => 'Rules', 'disclaimer' => 
                    118:  'No purchase necessary. Illegal where not allowed.');
                    119:  $r->print(<<ENDMSG);
                    120:  <font size="1">$lt{'header'}:</font>
                    121:  <font size="0">$lt{'disclaimer'}</font>
                    122:  ENDMSG
                    123: 
                    124: As a programmer, your job is done here. If everything worked, you 
                    125: should see no changes on the screen.
                    126: 
                    127: =head1 How To Localize LON-CAPA for Translators
                    128: 
                    129: As a translator, you need to provide the lexicon for the keys, which in 
                    130: this case is the plain text message. The lexicons sit in 
                    131: loncom/localize/localize, with the language code as filename, for 
                    132: example de.pm for the German translation. The file then simply looks 
                    133: like this:
                    134: 
                    135:     'You have won.'
                    136:  => 'Sie haben gewonnen.',
                    137: 
                    138:     'You are a total looser.'
                    139:  => 'Sie sind der totale Verlierer.',
                    140: 
                    141:     'Rules'
                    142:  => 'Regeln',
                    143: 
                    144:     'No purchase necessary. Illegal where not allowed.'
                    145:  => 'Es ist erlaubt, einfach zu verlieren, und das ist Ihre Schuld.'
                    146: 
                    147: 
                    148: Comments may be added with the # symbol, which outside of a string
                    149: (the things with the apostrophe surrounding them, which are the 
                    150: keys and translations) will cause the translation routines to
                    151: ignore the rest of the line.
                    152: 
                    153: This is a relatively easy task, and any help is appreciated.
                    154: 
                    155: Maketext can do a whole lot more, see
                    156: C<http://search.cpan.org/dist/Locale-Maketext/lib/Locale/Maketext.pod>
                    157: but for most purposes, we do not have to mess with that.
                    158: 
                    159: =cut
1.1       www       160: 
                    161: package Apache::lonlocal;
                    162: 
                    163: use strict;
                    164: use Apache::localize;
1.14      www       165: use locale;
1.39      albertel  166: use POSIX qw(locale_h strftime);
1.42      albertel  167: use DateTime();
1.46      raeburn   168: use DateTime::TimeZone;
1.49      raeburn   169: use DateTime::Locale;
1.1       www       170: 
                    171: require Exporter;
                    172: 
                    173: our @ISA = qw (Exporter);
1.48      raeburn   174: our @EXPORT = qw(mt mtn ns mt_user);
1.1       www       175: 
                    176: # ========================================================= The language handle
                    177: 
                    178: use vars qw($lh);
                    179: 
                    180: # ===================================================== The "MakeText" function
                    181: 
1.55    ! bisitz    182: # ######### Localize Cache
        !           183: # my @localize_cache;
        !           184: # #########
1.54      lueken    185: 
1.1       www       186: sub mt (@) {
1.36      albertel  187: #    open(LOG,'>>/home/www/loncapa/loncom/localize/localize/newphrases.txt');
                    188: #    print LOG (@_[0]."\n");
                    189: #    close(LOG);
1.26      www       190:     if ($lh) {
1.44      raeburn   191:         if ($_[0] eq '') {
                    192:             if (wantarray) {
                    193:                 return @_;
                    194:             } else {
                    195:                 return $_[0];
                    196:             }
                    197:         } else {
1.55    ! bisitz    198:             return $lh->maketext(@_);
        !           199: #				######### Localize Cache
        !           200: #				foreach my $e (@localize_cache)
        !           201: #				{
        !           202: #					if($_[0] eq $$e[0]) { return $$e[1]; }
        !           203: #				}
        !           204: #
        !           205: #				if($#localize_cache == 100) { pop(@localize_cache); }
        !           206: #				my $localize_entry = $lh->maketext(@_);
        !           207: #				unshift(@localize_cache, [ @_, $localize_entry ] );
        !           208: #				#########
        !           209: #            
        !           210: #	    		return $localize_entry;
1.44      raeburn   211:         }
1.3       www       212:     } else {
1.31      albertel  213: 	if (wantarray) {
                    214: 	    return @_;
                    215: 	} else {
                    216: 	    return $_[0];
                    217: 	}
1.4       www       218:     }
                    219: }
                    220: 
1.48      raeburn   221: sub mt_user {
                    222:     my ($user_lh,@what) = @_;
                    223:     if ($user_lh) {
                    224:         if ($what[0] eq '') {
                    225:             if (wantarray) {
                    226:                 return @what;
                    227:             } else {
                    228:                 return $what[0];
                    229:             }
                    230:         } else {
                    231:             return $user_lh->maketext(@what);
                    232:         }
                    233:     } else {
                    234:         if (wantarray) {
                    235:             return @what;
                    236:         } else {
                    237:             return $what[0];
                    238:         }
                    239:     }
                    240: }
                    241: 
1.6       www       242: # ============================================================== What language?
                    243: 
                    244: sub current_language {
1.20      albertel  245:     if ($lh) {
                    246: 	my $lang=$lh->maketext('language_code');
                    247: 	return ($lang eq 'language_code'?'en':$lang);
                    248:     }
1.21      www       249:     return 'en';
1.6       www       250: }
                    251: 
1.52      raeburn   252: sub preferred_languages {
                    253:     my @languages=();
                    254:     if (($Apache::lonnet::env{'request.role.adv'}) && ($Apache::lonnet::env{'form.languages'})) {
                    255:         @languages=(@languages,split(/\s*(\,|\;|\:)\s*/,$Apache::lonnet::env{'form.languages'}));
                    256:     }
                    257:     if ($Apache::lonnet::env{'course.'.$Apache::lonnet::env{'request.course.id'}.'.languages'}) {
                    258:         @languages=(@languages,split(/\s*(\,|\;|\:)\s*/,
                    259:                  $Apache::lonnet::env{'course.'.$Apache::lonnet::env{'request.course.id'}.'.languages'}));
                    260:     }
                    261: 
                    262:     if ($Apache::lonnet::env{'environment.languages'}) {
                    263:         @languages=(@languages,
                    264:                     split(/\s*(\,|\;|\:)\s*/,$Apache::lonnet::env{'environment.languages'}));
                    265:     }
                    266:     my $browser=$ENV{'HTTP_ACCEPT_LANGUAGE'};
                    267:     if ($browser) {
                    268:         my @browser =
                    269:             map { (split(/\s*;\s*/,$_))[0] } (split(/\s*,\s*/,$browser));
                    270:         push(@languages,@browser);
                    271:     }
                    272: 
                    273:     foreach my $domtype ($Apache::lonnet::env{'user.domain'},$Apache::lonnet::env{'request.role.domain'},
                    274:                          $Apache::lonnet::perlvar{'lonDefDomain'}) {
                    275:         if ($domtype ne '') {
                    276:             my %domdefs = &Apache::lonnet::get_domain_defaults($domtype);
                    277:             if ($domdefs{'lang_def'} ne '') {
                    278:                 push(@languages,$domdefs{'lang_def'});
                    279:             }
                    280:         }
                    281:     }
                    282:     return &get_genlanguages(@languages);
                    283: }
                    284: 
                    285: sub get_genlanguages {
                    286:     my (@languages) = @_;
                    287: # turn "en-ca" into "en-ca,en"
                    288:     my @genlanguages;
                    289:     foreach my $lang (@languages) {
                    290:         unless ($lang=~/\w/) { next; }
                    291:         push(@genlanguages,$lang);
                    292:         if ($lang=~/(\-|\_)/) {
                    293:             push(@genlanguages,(split(/(\-|\_)/,$lang))[0]);
                    294:         }
                    295:     }
                    296:     #uniqueify the languages list
                    297:     my %count;
                    298:     @genlanguages = map { $count{$_}++ == 0 ? $_ : () } @genlanguages;
                    299:     return @genlanguages;
                    300: }
                    301: 
1.8       www       302: # ============================================================== What encoding?
                    303: 
                    304: sub current_encoding {
1.33      albertel  305:     my $default='UTF-8';
                    306:     if ($Apache::lonnet::env{'browser.os'} eq 'win' && 
                    307: 	$Apache::lonnet::env{'browser.type'} eq 'explorer') {
1.34      albertel  308:         $default='ISO-8859-1';
1.33      albertel  309:     }
1.12      albertel  310:     if ($lh) {
                    311: 	my $enc=$lh->maketext('char_encoding');
1.33      albertel  312: 	return ($enc eq 'char_encoding'?$default:$enc);
1.12      albertel  313:     } else {
1.33      albertel  314: 	return $default;
1.12      albertel  315:     }
1.8       www       316: }
                    317: 
1.15      www       318: # =============================================================== Which locale?
                    319: # Refer to locale -a
                    320: #
                    321: sub current_locale {
                    322:     if ($lh) {
                    323: 	my $enc=$lh->maketext('lang_locale');
                    324: 	return ($enc eq 'lang_locale'?'':$enc);
                    325:     } else {
                    326: 	return undef;
                    327:     }
                    328: }
                    329: 
1.4       www       330: # ============================================================== Translate hash
                    331: 
                    332: sub texthash {
                    333:     my %hash=@_;
                    334:     foreach (keys %hash) {
                    335: 	$hash{$_}=&mt($hash{$_});
                    336:     }
                    337:     return %hash;
1.1       www       338: }
                    339: 
                    340: # ========= Get a handle (do not invoke in vain, leave this to access handlers)
                    341: 
                    342: sub get_language_handle {
1.9       www       343:     my $r=shift;
1.31      albertel  344:     if ($r) {
                    345: 	my $headers=$r->headers_in;
                    346: 	$ENV{'HTTP_ACCEPT_LANGUAGE'}=$headers->{'Accept-language'};
                    347:     }
1.52      raeburn   348:     my @languages=&preferred_languages();
1.29      www       349:     $ENV{'HTTP_ACCEPT_LANGUAGE'}='';
                    350:     $lh=Apache::localize->get_handle(@languages);
1.37      albertel  351:     if ($r) {
1.12      albertel  352: 	$r->content_languages([&current_language()]);
1.8       www       353:     }
1.16      www       354: ###    setlocale(LC_ALL,&current_locale);
1.18      www       355: }
                    356: 
                    357: # ========================================================== Localize localtime
1.35      www       358: sub gettimezone {
1.53      raeburn   359:     my ($timezone) = @_;
                    360:     if ($timezone ne '') {
                    361:         if (!DateTime::TimeZone->is_valid_name($timezone)) {
                    362:             $timezone = 'local';
                    363:         }
                    364:         return $timezone;
                    365:     }
                    366:     my $cid = $Apache::lonnet::env{'request.course.id'};  
                    367:     if ($cid ne '') {
                    368:         if ($Apache::lonnet::env{'course.'.$cid.'.timezone'}) {
                    369:             $timezone = $Apache::lonnet::env{'course.'.$cid.'.timezone'};    
                    370:         } else {
                    371:             my $cdom = $Apache::lonnet::env{'course.'.$cid.'.domain'};
                    372:             if ($cdom ne '') {
                    373:                 my %domdefaults = &Apache::lonnet::get_domain_defaults($cdom);
                    374:                 if ($domdefaults{'timezone_def'} ne '') {
                    375:                     $timezone = $domdefaults{'timezone_def'};
                    376:                 }
1.45      raeburn   377:             }
                    378:         }
1.50      raeburn   379:     } elsif ($Apache::lonnet::env{'request.role.domain'} ne '') {
                    380:         my %uroledomdefs = 
                    381:             &Apache::lonnet::get_domain_defaults($Apache::lonnet::env{'request.role.domain'});
                    382:         if ($uroledomdefs{'timezone_def'} ne '') {
                    383:             $timezone = $uroledomdefs{'timezone_def'};
                    384:         }
                    385:     } elsif ($Apache::lonnet::env{'user.domain'} ne '') {
                    386:         my %udomdefaults = 
                    387:             &Apache::lonnet::get_domain_defaults($Apache::lonnet::env{'user.domain'});
                    388:         if ($udomdefaults{'timezone_def'} ne '') {
                    389:             $timezone = $udomdefaults{'timezone_def'};
                    390:         }
1.42      albertel  391:     }
1.46      raeburn   392:     if ($timezone ne '') {
                    393:         if (DateTime::TimeZone->is_valid_name($timezone)) {
                    394:             return $timezone;
                    395:         }
                    396:     }
1.42      albertel  397:     return 'local';
1.35      www       398: }
1.18      www       399: 
                    400: sub locallocaltime {
1.53      raeburn   401:     my ($thistime,$timezone) = @_;
1.40      albertel  402:     if (!defined($thistime) || $thistime eq '') {
                    403: 	return &mt('Never');
                    404:     }
1.47      raeburn   405:     if (($thistime < 0) || ($thistime eq 'NaN')) {
                    406:         &Apache::lonnet::logthis("Unexpected time (negative or NaN) '$thistime' passed to lonlocal::locallocaltime");  
                    407:         return &mt('Never');
                    408:     }
                    409:     if ($thistime !~ /^\d+$/) {
                    410:         &Apache::lonnet::logthis("Unexpected non-numeric time '$thistime' passed to lonlocal::locallocaltime");
                    411:         return &mt('Never');
                    412:     }
1.42      albertel  413: 
                    414:     my $dt = DateTime->from_epoch(epoch => $thistime)
1.53      raeburn   415:                      ->set_time_zone(&gettimezone($timezone));
1.18      www       416:     if ((&current_language=~/^en/) || (!$lh)) {
1.42      albertel  417: 
                    418: 	return $dt->strftime("%a %b %e %I:%M:%S %P %Y (%Z)");
1.18      www       419:     } else {
                    420: 	my $format=$lh->maketext('date_locale');
                    421: 	if ($format eq 'date_locale') {
1.42      albertel  422: 	    return $dt->strftime("%a %b %e %I:%M:%S %P %Y (%Z)");
1.18      www       423: 	}
1.42      albertel  424: 	my $time_zone  = $dt->time_zone_short_name();
                    425: 	my $seconds    = $dt->second();
                    426: 	my $minutes    = $dt->minute();
                    427: 	my $twentyfour = $dt->hour();
                    428: 	my $day        = $dt->day_of_month();
                    429: 	my $mon        = $dt->month()-1;
                    430: 	my $year       = $dt->year();
1.43      www       431: 	my $wday       = $dt->wday();
                    432:         if ($wday==7) { $wday=0; }
1.42      albertel  433: 	my $month  =(split(/\,/,$lh->maketext('date_months')))[$mon];
1.18      www       434: 	my $weekday=(split(/\,/,$lh->maketext('date_days')))[$wday];
                    435: 	if ($seconds<10) {
                    436: 	    $seconds='0'.$seconds;
                    437: 	}
                    438: 	if ($minutes<10) {
                    439: 	    $minutes='0'.$minutes;
                    440: 	}
                    441: 	my $twelve=$twentyfour;
1.19      www       442: 	my $ampm;
1.18      www       443: 	if ($twelve>12) {
                    444: 	    $twelve-=12;
1.19      www       445: 	    $ampm=$lh->maketext('date_pm');
1.18      www       446: 	} else {
1.19      www       447: 	    $ampm=$lh->maketext('date_am');
1.18      www       448: 	}
1.42      albertel  449: 	foreach ('seconds','minutes','twentyfour','twelve','day','year',
                    450: 		 'month','weekday','ampm') {
1.18      www       451: 	    $format=~s/\$$_/eval('$'.$_)/gse;
                    452: 	}
1.42      albertel  453: 	return $format." ($time_zone)";
1.18      www       454:     }
1.1       www       455: }
                    456: 
1.49      raeburn   457: sub getdatelocale {
                    458:     my ($datelocale,$locale_obj);
                    459:     if ($Apache::lonnet::env{'course.'.$Apache::lonnet::env{'request.course.id'}.'.datelocale'}) {
                    460:         $datelocale = $Apache::lonnet::env{'course.'.$Apache::lonnet::env{'request.course.id'}.'.datelocale'};
                    461:     } elsif ($Apache::lonnet::env{'request.course.id'} ne '') {
                    462:         my $cdom = $Apache::lonnet::env{'course.'.$Apache::lonnet::env{'request.course.id'}.'.domain'};
                    463:         if ($cdom ne '') {
                    464:             my %domdefaults = &Apache::lonnet::get_domain_defaults($cdom);
                    465:             if ($domdefaults{'datelocale_def'} ne '') {
                    466:                 $datelocale = $domdefaults{'datelocale_def'};
                    467:             }
                    468:         }
                    469:     } elsif ($Apache::lonnet::env{'user.domain'} ne '') {
                    470:         my %udomdefaults = &Apache::lonnet::get_domain_defaults($Apache::lonnet::env{'user.domain'});
                    471:         if ($udomdefaults{'datelocale_def'} ne '') {
                    472:             $datelocale = $udomdefaults{'datelocale_def'};
                    473:         }
                    474:     }
                    475:     if ($datelocale ne '') {
                    476:         eval {
                    477:             $locale_obj = DateTime::Locale->load($datelocale);
                    478:         };
                    479:         if (!$@) {
                    480:             if ($locale_obj->id() eq $datelocale) {
                    481:                 return $locale_obj;
                    482:             }
                    483:         }
                    484:     }
                    485:     return $locale_obj;
                    486: }
                    487: 
1.51      jms       488: =pod 
                    489: 
                    490: =item * normalize_string
                    491: 
                    492: Normalize string (reduce fragility in the lexicon files)
1.49      raeburn   493: 
1.51      jms       494: This normalizes a string to reduce fragility in the lexicon files of
                    495: huge messages (such as are used by the helper), and allow useful
                    496: formatting: reduce all consecutive whitespace to a single space,
                    497: and remove all HTML
                    498: 
                    499: =cut
1.17      bowersj2  500: 
                    501: sub normalize_string {
                    502:     my $s = shift;
                    503:     $s =~ s/\s+/ /g;
                    504:     $s =~ s/<[^>]+>//g;
1.22      bowersj2  505:     # Pop off beginning or ending spaces, which aren't good
                    506:     $s =~ s/^\s+//;
                    507:     $s =~ s/\s+$//;
1.17      bowersj2  508:     return $s;
                    509: }
1.22      bowersj2  510: 
1.51      jms       511: =pod 
                    512: 
                    513: =item * ns
                    514: 
                    515: alias for normalize_string; recommend using it only in the lexicon
                    516: 
                    517: =cut
                    518: 
1.22      bowersj2  519: sub ns {
                    520:     return normalize_string(@_);
                    521: }
                    522: 
1.51      jms       523: =pod
                    524: 
                    525: =item * mtn
                    526: 
                    527: mtn: call the mt function and the normalization function easily.
                    528: Returns original non-normalized string if there was no translation
                    529: 
                    530: =cut
                    531: 
1.22      bowersj2  532: sub mtn (@) {
                    533:     my @args = @_; # don't want to modify caller's string; if we
                    534: 		   # didn't care about that we could set $_[0]
                    535: 		   # directly
                    536:     $args[0] = normalize_string($args[0]);
                    537:     my $translation = &mt(@args);
                    538:     if ($translation ne $args[0]) {
                    539: 	return $translation;
                    540:     } else {
                    541: 	return $_[0];
                    542:     }
1.27      www       543: }
                    544: 
                    545: # ---------------------------------------------------- Replace MT{...} in files
                    546: 
                    547: sub transstatic {
                    548:     my $strptr=shift;
                    549:     $$strptr=~s/MT\{([^\}]*)\}/&mt($1)/gse;
                    550: }
                    551: 
1.41      albertel  552: =pod 
                    553: 
                    554: =item * mt_escape
                    555: 
                    556: mt_escape takes a string reference and escape the [] in there so mt
                    557: will leave them as is and not try to expand them
                    558: 
                    559: =cut
                    560: 
                    561: sub mt_escape {
                    562:     my ($str_ref) = @_;
                    563:     $$str_ref =~s/~/~~/g;
                    564:     $$str_ref =~s/([\[\]])/~$1/g;
                    565: }
                    566: 
1.1       www       567: 1;
                    568: 
                    569: __END__

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>