Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | package Psh::Locale::Default; |
2 | ||
3 | # | |
4 | # Main part of the module. | |
5 | # | |
6 | ||
7 | my %sig_description = ( | |
8 | 'TTOU' => 'TTY output', | |
9 | 'TTIN' => 'TTY input', | |
10 | 'KILL' => 'killed', | |
11 | 'FPE' => 'floating point exception', | |
12 | 'SEGV' => 'segmentation fault', | |
13 | 'PIPE' => 'broken pipe', | |
14 | 'BUS' => 'bus error', | |
15 | 'ABRT' => 'aborted', | |
16 | 'ILL' => 'illegal instruction', | |
17 | 'TSTP' => 'stop typed at TTY', | |
18 | 'INT' => 'interrupt character typed' | |
19 | ); | |
20 | $Psh::text{sig_description}=\%sig_description; | |
21 | ||
22 | while(<DATA>) { | |
23 | next if /^\#/; | |
24 | chomp; | |
25 | if( /^([a-z_]+)=(.*)$/) { | |
26 | my $key= $1; | |
27 | my $val= $2; | |
28 | if( $val=~/\\$/) { | |
29 | $val=~ s/\\$//; | |
30 | } else { | |
31 | $val.="\n"; | |
32 | } | |
33 | $val=~ s/\\n/\n/g; | |
34 | $val=~ s/\\(.)/$1/g; | |
35 | $Psh::text{$key}=$val; | |
36 | } | |
37 | } | |
38 | ||
39 | 1; | |
40 | ||
41 | __DATA__ | |
42 | # Misc texts | |
43 | exec_failed=Error - Could not exec %1. | |
44 | fork_failed=Error - Could not fork. | |
45 | builtin_failed=Internal Error - Could not load builtin - %1 | |
46 | no_command=Command not found or syntax wrong: %1 | |
47 | simulate_perl_w=Simulating -w switch and strict | |
48 | no_r_flag=If you intended to use a different rc file, please now use the -f switch.\n -r is now reserved for 'restricted mode'. | |
49 | perm_denied=%2: %1: Permission denied. | |
50 | no_such_dir=%2: %1: No such directory. | |
51 | no_such_builtin=%2: %1: No such builtin. | |
52 | no_such_strategy=%2: Unknown strategy '%1'. | |
53 | no_jobcontrol=Your system does not support job control | |
54 | interal_error=Internal psh error. psh would have died now. | |
55 | input_incomplete=%2: End of input during incomplete expression %1 | |
56 | clueless=%2: Can't determine how to evaluate '%1'. | |
57 | psh_echo_wrong=%1: WARNING: $Psh::echo is not a CODE reference or an ordinary scalar. | |
58 | psh_result_array_wrong=%1: WARNING: $Psh::result_array is neither an ARRAY reference or a string. | |
59 | cannot_read_script=%2: Cannot read script '%1' | |
60 | cannot_open_script=%2: Cannot open script '%1' | |
61 | redirect_file_missing=%2: Error: Filename missing after redirect '%1'. | |
62 | evaluates_under=%1 evaluates under strategy %2 by %3 | |
63 | ||
64 | # Various builtins | |
65 | unalias_noalias=unalias: '%1' not an alias | |
66 | bi_readline_header=Using Readline %1, with features: | |
67 | help_header=psh supports following built in commands | |
68 | no_help=Sorry, help for builtin %1 is not available | |
69 | usage_setenv=Usage: setenv <variable> <value> | |
70 | usage_export=Usage: export <variable> [=] <value>\n export <variable | |
71 | usage_kill=Usage: kill <sig> <pid>| -l | |
72 | usage_delenv=Usage: delenv <var> [<var2> <var3> ...] | |
73 | bi_export_tied=Variable \$%1 is already tied via %2, cannot export. | |
74 | bi_kill_no_such_job=kill: No such job %1 | |
75 | bi_kill_no_such_jobspec=kill: Unknown job specification %1 | |
76 | bi_kill_error_sig=kill: Error sending signal %2 to process %1 | |
77 | bi_which_no_command=which: requires a command or command line as argument | |
78 | bi_alias_none=No aliases. | |
79 | bi_alias_cant_a=Cannot alias '-a'. | |
80 | bi_jobs_none=No jobs. | |
81 | bi_strategy_list=Following strategies are used: | |
82 | bi_strategy_wrong_arg=Wrong argument for builtin strategy. | |
83 | bi_strategy_notfound=Could not find strategy %1. | |
84 | bi_fc_notfound=no command found. | |
85 | bi_pshtoken_dumper=The pshtokenize command needs the Data::Dumper module!! | |
86 | bi_builtin_inactive=The strategy 'built_in' is currently not active. | |
87 | bi_bsdresource=Please install the BSD::Resource package. This builtin will not work otherwise! | |
88 | bi_tieopt_badtype_array=Option %1 is not an array | |
89 | bi_tieopt_badtype_hash=Option %1 is not a hash | |
90 | bi_tieopt_badtype_scalar=Option %1 is not a scalar | |
91 | bi_tieopt_fetch_badtype_scalar=Option %1 is no longer a scalar | |
92 | bi_tieopt_fetch_badtype_hash=Option %1 is no longer a hash | |
93 | bi_tieopt_fetch_badtype_array=Option %1 is no longer an array | |
94 | ||
95 | ||
96 | # Stuff for Job handling | |
97 | done=done\ | |
98 | terminated=terminated\ | |
99 | stopped=stopped\ | |
100 | restart=restart\ | |
101 | foreground=foreground\ | |
102 | error=error\ | |
103 | ||
104 | # Readline | |
105 | readline_interrupted}=\nInterrupted! | |
106 | readline_error=Readline did not start up properly:\n%1 | |
107 | no_readline=No Readline module available. Please install Term::ReadLine::Perl | |
108 | old_gnu_readline=Your version of Term::ReadLine::Gnu is %1 which is less than 1.06. This is a known to be buggy version. Please upgrade.\n | |
109 | ||
110 | # Prompt stuff | |
111 | prompt_wrong_type=%1: Warning: $Psh::prompt is neither a SCALAR nor a CODE reference. | |
112 | prompt_unknown_escape=%2: Warning: $Psh::prompt or PS1/2 environment variables contain unknown escape sequence '\\%1'. | |
113 | prompt_expansion_error=%3: Warning: Expansion of '\\%1' in prompt string yielded\nstring containing '%2'. Stripping escape sequence from\nsubstitution. | |
114 | ||
115 | # Psh::OS::Win | |
116 | no_libwin32=libwin32 required (available as CPAN bundle or with ActivePerl distribution | |
117 | ||
118 | # Psh::OS::Unix | |
119 | unix_received_strange_sig=Received SIG%1 - ignoring | |
120 | ||
121 | __END__ | |
122 | ||
123 | =head1 NAME | |
124 | ||
125 | Psh::Locale::Default - containing translations for default locale | |
126 | ||
127 | ||
128 | =head1 SYNOPSIS | |
129 | ||
130 | use Psh::Locale::Default; | |
131 | ||
132 | ||
133 | ||
134 | =head1 DESCRIPTION | |
135 | ||
136 | This module contains defaults for all of the internationalized | |
137 | strings in the Perl Shell. | |
138 | ||
139 | ||
140 | =head2 Translating Signal Names | |
141 | ||
142 | The text below can be used with Babelfish to generate the signal | |
143 | descriptions for translations. | |
144 | ||
145 | tty output | |
146 | ||
147 | tty input | |
148 | ||
149 | killed | |
150 | ||
151 | floating point exception | |
152 | ||
153 | segmentation fault | |
154 | ||
155 | broken pipe | |
156 | ||
157 | bus error | |
158 | ||
159 | aborted | |
160 | ||
161 | illegal instruction | |
162 | ||
163 | stop typed at TTY | |
164 | ||
165 | interrupt character typed | |
166 | ||
167 | ||
168 | =head2 Translating Messages | |
169 | ||
170 | The text below was used with Babelfish to generate the messages | |
171 | for translations. | |
172 | ||
173 | done. | |
174 | ||
175 | terminated. | |
176 | ||
177 | stopped. | |
178 | ||
179 | restart. | |
180 | ||
181 | foreground. | |
182 | ||
183 | Error: "Foo" failed. | |
184 | ||
185 | Simulating option "W" and "strict". | |
186 | ||
187 | Permission denied. | |
188 | ||
189 | No such directory. | |
190 | ||
191 | No such builtin. | |
192 | ||
193 | Interrupted! | |
194 | ||
195 | "Readline" did not start up properly. | |
196 | ||
197 | No "Readline" module available. Please install "Term::ReadLine::Perl". | |
198 | ||
199 | "%1" is not an alias. | |
200 | ||
201 | Using "Readline": "%1", with features "X" and "Y". | |
202 | ||
203 | Your system does not support job control. | |
204 | ||
205 | "psh" supports the following built-in commands. | |
206 | ||
207 | Sorry, help for builtin %1 is not available. | |
208 | ||
209 | Warning: Expansion of "%1" in prompting message | |
210 | yielded text containing "%2" . | |
211 | Removing escape sequence from substitution. | |
212 | ||
213 | Warning: "Foo" contains unknown escape sequence. | |
214 | ||
215 | "libwin32" required (available as "CPAN" bundle or with "ActivePerl" distribution. | |
216 | ||
217 | ||
218 | =head1 AUTHOR | |
219 | ||
220 | Markus Peter, warp@spin.de | |
221 | ||
222 | =head1 SEE ALSO | |
223 | ||
224 | Psh::Locale::* | |
225 | ||
226 |