]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - release/doc/ru_RU.KOI8-R/share/examples/dev-auto-translate.pl
Document recent security advisories (since 9.2-RELEASE is released).
[FreeBSD/releng/10.0.git] / release / doc / ru_RU.KOI8-R / share / examples / dev-auto-translate.pl
1 #!/usr/bin/perl
2 # $FreeBSD$
3 # $FreeBSDru: frdp/release/doc/ru_RU.KOI8-R/share/examples/dev-auto-translate.pl,v 1.4 2005/06/30 12:11:18 den Exp $
4 #
5 # Auto-translate some device entities from English to Russian (KOI8-R)
6 #
7 # Example:
8 # cd /usr/src/release/doc/ru_RU.KOI8-R
9 # perl share/examples/dev-auto-translate.pl -o share/xml/dev-auto-ru.sgml < ../share/xml/dev-auto.sgml
10 #
11 # This script is maintained only in HEAD branch.
12
13 use Getopt::Std;
14 use POSIX qw(fprintf);
15
16 $OutputFile = "";
17 $isOutputFile = 0;
18
19 if (getopts('o:')) {
20   chomp($OutputFile = $opt_o);
21   $isOutputFile = 1;
22 }
23
24 if($isOutputFile) {
25   open TRANSLATED, "< $OutputFile"  or die "Can't open $OutputFile: $!";
26
27   # check for already translated entities
28   undef %translated;
29   while(<TRANSLATED>) {
30     next if !/hwlist\.([0-9a-f]+)/;
31     $translated{$1} = 1;
32   }
33
34   close(TRANSLATED);
35
36   open OUTPUTFILE, ">> $OutputFile"  or die "Can't open $OutputFile: $!";
37 }
38
39 # translate some entities
40 while (<>) {
41 next if !/&man\..*\.[0-9];/;
42 s/Controllers supported by the (&man\..*\.[0-9];) driver include:/ëÏÎÔÒÏÌÌÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
43 s/The (&man\..*\.[0-9];) driver supports the following SCSI controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ SCSI:/;
44 s/The (&man\..*\.[0-9];) driver supports SCSI controllers including:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÏÎÔÒÏÌÌÅÒÙ SCSI, ×ËÌÀÞÁÑ:/;
45 s/The (&man\..*\.[0-9];) driver supports the following SCSI host adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÈÏÓÔ ÁÄÁÐÔÅÒÙ SCSI:/;
46 s/The (&man\..*\.[0-9];) driver supports the following SCSI host adapter chips and SCSI controller cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÈÏÓÔ ÁÄÁÐÔÅÒÙ SCSI É ËÁÒÔÙ ËÏÎÔÒÏÌÌÅÒÏ× SCSI:/;
47 s/The (&man\..*\.[0-9];) driver supports the following:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÅÅ:/;
48 s/The adapters currently supported by the (&man\..*\.[0-9];) driver include the following:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ ÓÌÅÄÕÀÝÉÅ:/;
49 s/The following cards are among those supported by the (&man\..*\.[0-9];) driver:/óÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ ×ÈÏÄÑÔ × ÞÉÓÌÏ ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÄÒÁÊ×ÅÒÏÍ $1:/;
50 s/The following cards are among those supported by the (&man\..*\.[0-9];) module:/óÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ ×ÈÏÄÑÔ × ÞÉÓÌÏ ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÍÏÄÕÌÅÍ $1:/;
51 s/Adapters supported by the (&man\..*\.[0-9];) driver include:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
52 s/Cards supported by the (&man\..*\.[0-9];) driver include:/ëÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
53 s/The (&man\..*\.[0-9];) driver supports the following card models:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÍÏÄÅÌÉ ËÁÒÔ:/;
54 s/The (&man\..*\.[0-9];) driver provides support for the following chipsets:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÎÁÂÏÒÙ ÍÉËÒÏÓÈÅÍ:/;
55 s/The following NICs are known to work with the (&man\..*\.[0-9];) driver at this time:/óÌÅÄÕÀÝÉÅ ÓÅÔÅ×ÙÅ ËÁÒÔÙ ÒÁÂÏÔÁÀÔ Ó ÄÒÁÊ×ÅÒÏÍ $1:/; 
56 s/The (&man\..*\.[0-9];) driver provides support for the following RAID adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ RAID ÁÄÁÐÔÅÒÙ:/; 
57 s/The (&man\..*\.[0-9];) driver supports the following Ethernet NICs:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÓÅÔÅ×ÙÅ ËÁÒÔÙ Ethernet:/; 
58 s/Cards supported by (&man\..*\.[0-9];) driver include:/ëÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ $1, ×ËÌÀÞÁÑ:/; 
59 s/The (&man\..*\.[0-9];) driver supports the following adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ:/; 
60 s/The (&man\..*\.[0-9];) driver supports the following ATA RAID controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ ATA RAID:/; 
61 s/The following controllers are supported by the (&man\..*\.[0-9];) driver:/äÒÁÊ×ÅÒÏÍ $1 ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ:/;
62 s/The (&man\..*\.[0-9];) driver supports the following cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÁÒÔÙ:/;
63 s/The SCSI controller chips supported by the (&man\..*\.[0-9];) driver can be found onboard on many systems including:/íÉËÒÏÓÈÅÍÙ SCSI ËÏÎÔÒÏÌÌÅÒÁ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ÍÏÇÕÔ ÂÙÔØ ×ÓÔÒÏÅÎÙ ×Ï ÍÎÏÇÉÅ ÓÉÓÔÅÍÙ, ×ËÌÀÞÁÑ:/;
64 s/The following devices are currently supported by the (&man\..*\.[0-9];) driver:/äÒÁÊ×ÅÒÏÍ $1 × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á:/;
65 s/The (&man\..*\.[0-9];) driver supports cards containing any of the following chips:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÁÒÔÙ, ÓÏÄÅÒÖÁÝÉÅ ÌÀÂÕÀ ÉÚ ÓÌÅÄÕÀÝÉÈ ÍÉËÒÏÓÈÅÍ:/;
66 s/The (&man\..*\.[0-9];) driver supports the following soundcards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ:/;
67 s/The (&man\..*\.[0-9];) driver supports audio devices based on the following chipset:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ Ú×ÕËÏ×ÙÅ ÕÓÔÒÏÊÓÔ×Á, ÏÓÎÏ×ÁÎÎÙÅ ÎÁ ÓÌÅÄÕÀÝÅÍ ÎÁÂÏÒÅ ÍÉËÒÏÓÈÅÍ:/;
68 s/The (&man\..*\.[0-9];) driver supports the following audio devices:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ÕÓÔÒÏÊÓÔ×Á:/;
69 s/The (&man\..*\.[0-9];) driver supports the following PCI sound cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ PCI:/;
70 s/SCSI controllers supported by the (&man\..*\.[0-9];) driver include:/SCSI ËÏÎÔÒÏÌÌÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
71 s/The (&man\..*\.[0-9];) driver supports the following SATA RAID controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ SATA RAID ËÏÎÔÒÏÌÌÅÒÙ:/;
72 s/Devices supported by the (&man\..*\.[0-9];) driver include:/õÓÔÒÏÊÓÔ×Á, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
73 s/The following devices are supported by the (&man\..*\.[0-9];) driver:/óÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÄÒÁÊ×ÅÒÏÍ $1/;
74 s/The (&man\..*\.[0-9];) driver supports the following devices:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á:/;
75 s/The (&man\..*\.[0-9];) driver supports the following parallel to SCSI interfaces:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ parallel to SCSI ÉÎÔÅÒÆÅÊÓÙ/;
76 s/The (&man\..*\.[0-9];) driver supports the following hardware:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÅÅ ÏÂÏÒÕÄÏ×ÁÎÉÅ:/;
77 s/The adapters supported by the (&man\..*\.[0-9];) driver include:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
78 s/The (&man\..*\.[0-9];) driver supports the following Ethernet adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ Ethernet:/;
79 s/Controllers and cards supported by the (&man\..*\.[0-9];) driver include:/ëÏÎÔÒÏÌÌÅÒÙ É ËÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
80 s/The (&man\..*\.[0-9];) driver supports the following audio chipsets:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÕÄÉÏ ÞÉÐÓÅÔÙ:/;
81 s/The (&man\..*\.[0-9];) driver supports the following sound cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ:/;
82 s/The (&man\..*\.[0-9];) driver provides support for the following chips:/äÒÁÊ×ÅÒ $1 ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÐÏÄÄÅÒÖËÕ ÄÌÑ ÓÌÅÄÕÀÝÉÈ ÍÉËÒÏÓÈÅÍ:/;
83 if($isOutputFile) {
84   next if !/hwlist\.([0-9a-f]+)/;
85   print OUTPUTFILE if !$translated{$1};
86 } else {
87 print;
88 }
89 }