| . $locale->text('Click on login name to edit!') . qq|
<br>
|
- . $locale->text(
- 'To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.'
- )
+ . $locale->text('To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.')
. qq|
<p>
&dbdriver_defaults;
$msg{Pg} =
- $locale->text(
- 'Leave host and port field empty unless you want to make a remote connection.'
- );
+ $locale->text('Leave host and port field empty unless you want to make a remote connection.');
$msg{Oracle} =
- $locale->text(
- 'You must enter a host and port for local and remote connections!');
+ $locale->text('You must enter a host and port for local and remote connections!');
$form->{title} =
"Lx-Office ERP / " . $locale->text('Database Administration');
</table>
<p>|
- . $locale->text(
- 'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!'
- )
+ . $locale->text('This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!')
. qq|
<br>$msg{$form->{dbdriver}}
</tr>
<tr>
<td colspan=2>|
- . $locale->text(
- 'Enter up to 3 letters separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies'
- )
+ . $locale->text('Enter up to 3 letters separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies')
. qq|<br><input name=curr size=40 value="$form->{defaults}{curr}"></td>
</tr>
</table>
<h2 class=confirm>$form->{title}</h2>
<h4>|
- . $locale->text(
- 'Are you sure you want to remove the marked entries from the queue?')
+ . $locale->text('Are you sure you want to remove the marked entries from the queue?')
. qq|</h4>
<input name=action class=submit type=submit value="|
$lxdebug->enter_sub();
if (!$lizenzen) {
$form->error(
- $locale->text(
- 'The licensing module has been deactivated in lx-erp.conf.')
+ $locale->text('The licensing module has been deactivated in lx-erp.conf.')
);
}
|);
if (scalar(@{ $form->{"licenses"} }) == 0) {
print(qq|</table>|
- . $locale->text(
- "No licenses were found that match the search criteria.")
+ . $locale->text("No licenses were found that match the search criteria.")
. qq|</body></html>|);
exit(0);
}
$checked = "checked" if ($form->{kz10} eq '1');
print qq|
<input name="FA_10" id=FA_10 class=checkbox type=checkbox value="1" $checked title = "|
- . $locale->text(
- 'Ist dies eine berichtigte Anmeldung? (Nr. 10/Zeile 15 Steuererklärung)')
+ . $locale->text('Ist dies eine berichtigte Anmeldung? (Nr. 10/Zeile 15 Steuererklärung)')
. qq|">
| . $locale->text('Berichtigte Anmeldung') . qq|
<br>
# Auf Übergabefehler checken
USTVA::info(
- $locale->text(
- 'Bitte das Bundesland UND die Stadt bzw. den Einzugsbereich Ihres zuständigen Finanzamts auswählen.'
- ))
+ $locale->text('Bitte das Bundesland UND die Stadt bzw. den Einzugsbereich Ihres zuständigen Finanzamts auswählen.'))
if ( $form->{elsterFFFF_new} eq 'Auswahl'
|| $form->{elsterland_new} eq 'Auswahl');
USTVA::info(
my $fh = new FileHandle;
open $fh, "$file" or die "$! : $file";
+ my ($is_submit, $line_no, $sub_line_no) = (0, 0, 0);
+
while (<$fh>) {
+ $line_no++;
# is this another file
if (/require\s+\W.*\.pl/) {
my $newfile = $&;
if (/Locale/) {
unless (/^use /) {
my ($null, $country) = split /,/;
- $country =~ s/^ +["']//;
- $country =~ s/["'].*//;
+ $country =~ s/^ +[\"\']//;
+ $country =~ s/[\"\'].*//;
}
}
- if (/\$locale->text.*?\W\)/) {
+ my $postmatch = "";
+ # is it a submit button before $locale->
+ if (/type\s*=\s*submit/i) {
+ $postmatch = $';
+ if ($` !~ /\$locale->text/) {
+ $is_submit = 1;
+ $sub_line_no = $line_no;
+ }
+ }
+
+ my ($found) = /\$locale->text.*?\W\)/;
+ my $postmatch = $';
+
+ if ($found) {
my $string = $&;
- $string =~ s/\$locale->text\(\s*['"(q|qq)]['\/\\\|~]*//;
+ $string =~ s/\$locale->text\(\s*[\'\"(q|qq)][\'\/\\\|~]*//;
$string =~ s/\W\)+.*$//;
# if there is no $ in the string record it
$alllocales{$string} = 1;
# is it a submit button before $locale->
- if (/type=submit/) {
+ if ($is_submit) {
$submit{$string} = 1;
}
}
+ } elsif ($postmatch =~ />/) {
+ $is_submit = 0;
}
# exit loop if there are no more locales on this line
- ($rc) = ($' =~ /\$locale->text/);
+ ($rc) = ($postmatch =~ /\$locale->text/);
# strip text
s/^.*?\$locale->text.*?\)//;
+
+ if (($postmatch =~ />/) ||
+ (!$found && ($sub_line_no != $line_no) && />/)) {
+ $is_submit = 0;
+ }
}
}
'alle_auswählen' => 'select_all',
'konfiguration' => 'config',
'debug' => 'debug',
+ 'winston_export' => 'winston_export',
};
1;