| 1 | package App::Syslogd::I18N::en; | ||
| 2 | |||
| 3 | # English lexicon. Square brackets are Maketext syntax; a literal bracket | ||
| 4 | # is written "~[" or "~]". Argument order is defined by %ARGUMENT_ORDER in | ||
| 5 | # App::Syslogd::I18N, not here. | ||
| 6 | |||
| 7 | 47 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 47 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 47 | ▶ | use autodie qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | # Not -norequire: a translation that inherits from this package (as the | ||
| 12 | # documentation recommends) may be loaded before App::Syslogd::I18N is | ||
| 13 | 47 | ▶ | use parent 'App::Syslogd::I18N'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 47 | our $VERSION = '0.002.1'; | |
| 16 | |||
| 17 | 47 | our %Lexicon = ( | |
| 18 | usage => 'Usage: [_1] ~[--port <port_number>~] ~[--address <address>~] ~[--file <CSV file>~] ~[--no-resolve~] ~[--language <tag>~]', | ||
| 19 | listening => 'Syslog server listening on [_1] UDP port [_2]', | ||
| 20 | shutdown => 'Syslog server shutting down after recording [quant,_1,message,messages]', | ||
| 21 | socket_failed => 'Could not create a UDP socket on [_1] port [_2]: [_3]', | ||
| 22 | open_failed => 'Could not open log file [_1]: [_2]', | ||
| 23 | unsafe_file => 'Refusing to log to [_1]: it must be a regular file, owned by this user, with exactly one link', | ||
| 24 | write_failed => 'Could not write to log file [_1]: [_2]', | ||
| 25 | recv_failed => 'Error receiving a datagram: [_1]', | ||
| 26 | no_log_open => 'process() was called before reopen_log() succeeded', | ||
| 27 | not_a_datagram => 'A datagram must be a string (the type given was [_1])', | ||
| 28 | missing_key => 'A message key is needed', | ||
| 29 | bad_values => 'Message values must be a hash reference (the type given was [_1])', | ||
| 30 | no_progress => 'the system accepted no data', | ||
| 31 | not_a_log => 'Refusing to log to [_1]: it is not empty and does not start with the syslog header line', | ||
| 32 | already_running => 'run() is already running', | ||
| 33 | not_cgi => 'This program is a server, not a CGI program: it will not run from a web server', | ||
| 34 | ); | ||
| 35 | |||
| 36 | =head1 NAME | ||
| 37 | |||
| 38 | App::Syslogd::I18N::en - English messages for App::Syslogd | ||
| 39 | |||
| 40 | =head1 VERSION | ||
| 41 | |||
| 42 | Version 0.002.1 | ||
| 43 | |||
| 44 | =head1 SYNOPSIS | ||
| 45 | |||
| 46 | You do not use this package directly. L<App::Syslogd::I18N> loads it: | ||
| 47 | |||
| 48 | my $lh = App::Syslogd::I18N->handle('en'); | ||
| 49 | |||
| 50 | =head1 DESCRIPTION | ||
| 51 | |||
| 52 | The English text of every message. It is also the fallback: when no | ||
| 53 | lexicon matches the user's language, English is used. Other languages | ||
| 54 | should inherit from this package, so that a message they have not translated | ||
| 55 | yet is still shown in English. L<App::Syslogd::I18N> explains the format. | ||
| 56 | |||
| 57 | =head1 ENCODING | ||
| 58 | |||
| 59 | All the text is ASCII. | ||
| 60 | |||
| 61 | =head1 AUTHOR | ||
| 62 | |||
| 63 | Nigel Horne, C<< <njh at nigelhorne.com> >> | ||
| 64 | |||
| 65 | =head1 LICENSE AND COPYRIGHT | ||
| 66 | |||
| 67 | Copyright 2026 Nigel Horne. | ||
| 68 | |||
| 69 | This program is released under the GNU General Public License, version 2 | ||
| 70 | (see the F<LICENSE> file). If you use it, please let me know. | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | 47 | 1; | |