[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [474] trunk/bin
- Subject: SF.net SVN: ledger-smb: [474] trunk/bin
- From: ..hidden..
- Date: Thu, 02 Nov 2006 18:17:02 -0800
Revision: 474
http://svn.sourceforge.net/ledger-smb/?rev=474&view=rev
Author: tetragon
Date: 2006-11-02 18:16:57 -0800 (Thu, 02 Nov 2006)
Log Message:
-----------
More string changes
Modified Paths:
--------------
trunk/bin/am.pl
trunk/bin/bp.pl
trunk/bin/gl.pl
trunk/bin/ic.pl
trunk/bin/io.pl
trunk/bin/ir.pl
trunk/bin/is.pl
Modified: trunk/bin/am.pl
===================================================================
--- trunk/bin/am.pl 2006-11-03 01:57:14 UTC (rev 473)
+++ trunk/bin/am.pl 2006-11-03 02:16:57 UTC (rev 474)
@@ -294,7 +294,7 @@
foreach $item ("AR", "AP") {
$i = 0;
for ("${item}_amount", "${item}_paid", "${item}_tax") { $i++ if $form->{$_} }
- $form->error($locale->text('Cannot set multiple options for')." $item") if $i > 1;
+ $form->error($locale->text('Cannot set multiple options for [_1]', $item)) if $i > 1;
}
if (AM->save_account(\%myconfig, \%$form)) {
@@ -1447,7 +1447,7 @@
print qq|
<h2 class=confirm>$form->{title}</h2>
-<h4>|.$locale->text('Deleting a language will also delete the templates for the language').qq| $form->{invnumber}</h4>
+<h4>|.$locale->text('Deleting a language will also delete the templates for the language [_1]', $form->{invnumber}).qq|</h4>
<input type=hidden name=action value=continue>
<input type=hidden name=nextsub value=yes_delete_language>
@@ -2082,7 +2082,7 @@
|;
}
- $form->{title} = $locale->text('Edit Preferences for').qq| $form->{login}|;
+ $form->{title} = $locale->text('Edit Preferences for [_1]', $form->{login});
$form->header;
@@ -2246,9 +2246,6 @@
if ($form->{media} eq 'email') {
$form->error($locale->text('No email address for [_1]', $myconfig{name})) unless ($myconfig{email});
-
- $form->{OUT} = "${LedgerSMB::Sysconfig::sendmail}";
-
}
$SIG{INT} = 'IGNORE';
@@ -3064,17 +3061,17 @@
if ($pt->{invoice}) {
if ($pt->{arid}) {
- $form->info("\n".$locale->text('Posting')." ".$locale->text('Sales Invoice')." $form->{invnumber}");
+ $form->info("\n".$locale->text('Posting Sales Invoice [_1]', $form->{invnumber}));
$ok = IS->post_invoice(\%myconfig, \%$form);
} else {
- $form->info("\n".$locale->text('Posting')." ".$locale->text('Vendor Invoice')." $form->{invnumber}");
+ $form->info("\n".$locale->text('Posting Vendor Invoice [_1]', $form->{invnumber}));
$ok = IR->post_invoice(\%myconfig, \%$form);
}
} else {
if ($pt->{arid}) {
- $form->info("\n".$locale->text('Posting')." ".$locale->text('Transaction')." $form->{invnumber}");
+ $form->info("\n".$locale->text('Posting Transaction [_1]', $form->{invnumber}));
} else {
- $form->info("\n".$locale->text('Posting')." ".$locale->text('Transaction')." $form->{invnumber}");
+ $form->info("\n".$locale->text('Posting Transaction [_1]', $form->{invnumber}));
}
$ok = AA->post_transaction(\%myconfig, \%$form);
@@ -3128,7 +3125,7 @@
for ("$ordnumber", "reference") { $form->{$_} = $form->unquote($form->{$_}) }
$form->{closed} = 0;
- $form->info("\n".$locale->text('Saving')." ".$flabel." $form->{$ordnumber}");
+ $form->info("\n".$locale->text('Saving [_1] [_2]', $flabel, $form->{$ordnumber}));
if ($ok = OE->save(\%myconfig, \%$form)) {
$form->info(" ..... ".$locale->text('done'));
} else {
@@ -3170,7 +3167,7 @@
$form->{rowcount} = $j;
for (qw(id recurring)) { delete $form->{$_} }
- $form->info("\n".$locale->text('Posting')." ".$locale->text('GL Transaction')." $form->{reference}");
+ $form->info("\n".$locale->text('Posting GL Transaction [_1]', $form->{reference}));
$ok = GL->post_transaction(\%myconfig, \%$form);
$form->info(" ..... ".$locale->text('done'));
Modified: trunk/bin/bp.pl
===================================================================
--- trunk/bin/bp.pl 2006-11-03 01:57:14 UTC (rev 473)
+++ trunk/bin/bp.pl 2006-11-03 02:16:57 UTC (rev 474)
@@ -214,7 +214,7 @@
}
}
- $form->error('Nothing selected!') unless $selected;
+ $form->error($locale->text('Nothing selected!')) unless $selected;
$form->{title} = $locale->text('Confirm!');
Modified: trunk/bin/gl.pl
===================================================================
--- trunk/bin/gl.pl 2006-11-03 01:57:14 UTC (rev 473)
+++ trunk/bin/gl.pl 2006-11-03 02:16:57 UTC (rev 474)
@@ -193,7 +193,7 @@
sub search {
- $form->{title} = $locale->text('General Ledger')." ".$locale->text('Reports');
+ $form->{title} = $locale->text('General Ledger Reports');
$colspan = 5;
$form->all_departments(\%myconfig);
@@ -654,13 +654,13 @@
if ($myconfig{acs} !~ /AR--AR/) {
$button{'AR--Add Transaction'}{code} = qq|<button class="submit" type="submit" name="action" value="ar_transaction">|.$locale->text('AR Transaction').qq|</button> |;
$button{'AR--Add Transaction'}{order} = $i++;
- $button{'AR--Sales Invoice'}{code} = qq|<button class="submit" type="submit" name="action" value="sales_invoice_">|.$locale->text('Sales Invoice ').qq|</button> |;
+ $button{'AR--Sales Invoice'}{code} = qq|<button class="submit" type="submit" name="action" value="sales_invoice_">|.$locale->text('Sales Invoice').qq|</button> |;
$button{'AR--Sales Invoice'}{order} = $i++;
}
if ($myconfig{acs} !~ /AP--AP/) {
$button{'AP--Add Transaction'}{code} = qq|<button class="submit" type="submit" name="action" value="ap_transaction">|.$locale->text('AP Transaction').qq|</button> |;
$button{'AP--Add Transaction'}{order} = $i++;
- $button{'AP--Vendor Invoice'}{code} = qq|<button class="submit" type="submit" name="action" value="vendor_invoice_">|.$locale->text('Vendor Invoice ').qq|</button> |;
+ $button{'AP--Vendor Invoice'}{code} = qq|<button class="submit" type="submit" name="action" value="vendor_invoice_">|.$locale->text('Vendor Invoice').qq|</button> |;
$button{'AP--Vendor Invoice'}{order} = $i++;
}
@@ -1104,7 +1104,7 @@
print qq|
<h2 class=confirm>|.$locale->text('Confirm!').qq|</h2>
-<h4>|.$locale->text('Are you sure you want to delete Transaction').qq| $form->{reference}</h4>
+<h4>|.$locale->text('Are you sure you want to delete Transaction [_1]', $form->{reference}).qq|</h4>
<button name="action" class="submit" type="submit" value="yes">|.$locale->text('Yes').qq|</button>
</form>
Modified: trunk/bin/ic.pl
===================================================================
--- trunk/bin/ic.pl 2006-11-03 01:57:14 UTC (rev 473)
+++ trunk/bin/ic.pl 2006-11-03 02:16:57 UTC (rev 474)
@@ -119,25 +119,25 @@
# readonly
if ($form->{item} eq 'part') {
$form->{readonly} = 1 if $myconfig{acs} =~ /Goods \& Services--Add Part/;
- $form->error($locale->text('Cannot create Part').";".$locale->text('Inventory account does not exist!')) if ! @{ $form->{IC_links}{IC} };
- $form->error($locale->text('Cannot create Part').";".$locale->text('Income account does not exist!')) if ! @{ $form->{IC_links}{IC_sale} };
- $form->error($locale->text('Cannot create Part').";".$locale->text('COGS account does not exist!')) if ! @{ $form->{IC_links}{IC_cogs} };
+ $form->error($locale->text('Cannot create Part; Inventory account does not exist!')) if ! @{ $form->{IC_links}{IC} };
+ $form->error($locale->text('Cannot create Part; Income account does not exist!')) if ! @{ $form->{IC_links}{IC_sale} };
+ $form->error($locale->text('Cannot create Part; COGS account does not exist!')) if ! @{ $form->{IC_links}{IC_cogs} };
}
if ($form->{item} eq 'service') {
$form->{readonly} = 1 if $myconfig{acs} =~ /Goods \& Services--Add Service/;
- $form->error($locale->text('Cannot create Service').";".$locale->text('Income account does not exist!')) if ! @{ $form->{IC_links}{IC_income} };
- $form->error($locale->text('Cannot create Service').";".$locale->text('Expense account does not exist!')) if ! @{ $form->{IC_links}{IC_expense} };
+ $form->error($locale->text('Cannot create Service; Income account does not exist!')) if ! @{ $form->{IC_links}{IC_income} };
+ $form->error($locale->text('Cannot create Service; Expense account does not exist!')) if ! @{ $form->{IC_links}{IC_expense} };
}
if ($form->{item} eq 'assembly') {
$form->{readonly} = 1 if $myconfig{acs} =~ /Goods \& Services--Add Assembly/;
- $form->error($locale->text('Cannot create Assembly').";".$locale->text('Income account does not exist!')) if ! @{ $form->{IC_links}{IC_income} };
+ $form->error($locale->text('Cannot create Assembly; Income account does not exist!')) if ! @{ $form->{IC_links}{IC_income} };
}
if ($form->{item} eq 'labor') {
$form->{readonly} = 1 if $myconfig{acs} =~ /Goods \& Services--Add Labor\/Overhead/;
- $form->error($locale->text('Cannot create Labor').";".$locale->text('Inventory account does not exist!')) if ! @{ $form->{IC_links}{IC} };
- $form->error($locale->text('Cannot create Labor').";".$locale->text('COGS account does not exist!')) if ! @{ $form->{IC_links}{IC_cogs} };
+ $form->error($locale->text('Cannot create Labor; Inventory account does not exist!')) if ! @{ $form->{IC_links}{IC} };
+ $form->error($locale->text('Cannot create Labor; COGS account does not exist!')) if ! @{ $form->{IC_links}{IC_cogs} };
}
@@ -2684,7 +2684,7 @@
$form->{"vendor_$i"} = qq|$form->{name_list}[0]->{name}--$form->{name_list}[0]->{id}|;
} else {
# name is not on file
- $form->error(qq|$form->{"vendor_$i"} : |.$locale->text('Vendor not on file!'));
+ $form->error($locale->text('[_1]: Vendor not on file!', $form->{"vendor_$i"}));
}
}
}
@@ -2743,7 +2743,7 @@
$form->{"customer_$i"} = qq|$form->{name_list}[0]->{name}--$form->{name_list}[0]->{id}|;
} else {
# name is not on file
- $form->error(qq|$form->{customer} : |.$locale->text('Customer not on file!'));
+ $form->error($locale->text('[_1]: Customer not on file!', $form->{customer}));
}
}
}
Modified: trunk/bin/io.pl
===================================================================
--- trunk/bin/io.pl 2006-11-03 01:57:14 UTC (rev 473)
+++ trunk/bin/io.pl 2006-11-03 02:16:57 UTC (rev 474)
@@ -869,7 +869,7 @@
}
for $i (1 .. $form->{rowcount} - 1) {
- $form->isblank("partnumber_$i", $locale->text('Number missing in Row') . " $i");
+ $form->isblank("partnumber_$i", $locale->text('Number missing in Row [_1]', $i));
}
}
Modified: trunk/bin/ir.pl
===================================================================
--- trunk/bin/ir.pl 2006-11-03 01:57:14 UTC (rev 473)
+++ trunk/bin/ir.pl 2006-11-03 02:16:57 UTC (rev 474)
@@ -908,7 +908,7 @@
print qq|
<h2 class=confirm>|.$locale->text('Confirm!').qq|</h2>
-<h4>|.$locale->text('Are you sure you want to delete Invoice Number').qq| $form->{invnumber}</h4>
+<h4>|.$locale->text('Are you sure you want to delete Invoice Number [_1]?', $form->{invnumber}).qq|</h4>
<p>
<button name="action" class="submit" type="submit" value="yes">|.$locale->text('Yes').qq|</button>
</form>
Modified: trunk/bin/is.pl
===================================================================
--- trunk/bin/is.pl 2006-11-03 01:57:14 UTC (rev 473)
+++ trunk/bin/is.pl 2006-11-03 02:16:57 UTC (rev 474)
@@ -900,7 +900,7 @@
($form->{AR_paid}) = split /--/, $form->{AR_paid};
if (IS->post_invoice(\%myconfig, \%$form)) {
- $form->redirect($locale->text('Invoice')." $form->{invnumber} ".$locale->text('posted!'));
+ $form->redirect($locale->text('Invoice [_1] posted!', $form->{invnumber}));
} else {
$form->error($locale->text('Cannot post invoice!'));
}
@@ -947,7 +947,7 @@
print qq|
<h2 class=confirm>|.$locale->text('Confirm!').qq|</h2>
-<h4>|.$locale->text('Are you sure you want to delete Invoice Number').qq| $form->{invnumber}
+<h4>|.$locale->text('Are you sure you want to delete Invoice Number [_1]?', $form->{invnumber}).qq|
</h4>
<p>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.