[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3994] branches/1.3/bin/aa.pl



Revision: 3994
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3994&view=rev
Author:   tshvr
Date:     2011-11-13 17:15:18 +0000 (Sun, 13 Nov 2011)
Log Message:
-----------
avoid untranslatable parameterised localisation msgid

Modified Paths:
--------------
    branches/1.3/bin/aa.pl

Modified: branches/1.3/bin/aa.pl
===================================================================
--- branches/1.3/bin/aa.pl	2011-11-13 16:56:29 UTC (rev 3993)
+++ branches/1.3/bin/aa.pl	2011-11-13 17:15:18 UTC (rev 3994)
@@ -439,14 +439,18 @@
     # 	$locale->text('Add AP Transaction');
     #   $locale->text('Edit AR Transaction');
     #   $locale->text('Edit AP Transaction');
+    my $title_msgid="$title $form->{ARAP} Transaction";
     if ($form->{reverse} == 0){
-       $form->{title} = $locale->text("[_1] [_2] Transaction", $title, $form->{ARAP});
+       #$form->{title} = $locale->text("[_1] [_2] Transaction", $title, $form->{ARAP});
+       $form->{title} = $locale->text($title_msgid);
     }
     elsif($form->{reverse} == 1) {
        if ($form->{subtype} eq 'credit_note'){
-           $form->{title} = $locale->text("[_1] Credit Note", $title);
+           $title_msgid="$title Credit Note";$form->{title}=$locale->text($title_msgid);
+           #$form->{title} = $locale->text("[_1] Credit Note", $title);
        } elsif ($form->{subtype} eq 'debit_note'){
-           $form->{title} = $locale->text("[_1] Debit Note", $title);
+           $title_msgid="$title Debit Note";$form->{title}=$locale->text($title_msgid);
+           #$form->{title} = $locale->text("[_1] Debit Note", $title);
        } else {
            $form->error("Unknown subtype $form->{subtype} in $form->{ARAP} "
               . "transaction.");

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.