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

SF.net SVN: ledger-smb:[6885] trunk/bin/am.pl



Revision: 6885
          http://sourceforge.net/p/ledger-smb/code/6885
Author:   pongracz
Date:     2014-02-21 20:05:42 +0000 (Fri, 21 Feb 2014)
Log Message:
-----------
Translation fix from 1.3. Now messages translated in two steps: first build the final message in English and second, translate that one. Somehow the old code simply did not work as expected. I checked a relevant and working part and rewrited the problematic code. Now it seems working, one need to check *.po to contain all messages.

Modified Paths:
--------------
    trunk/bin/am.pl

Property Changed:
----------------
    trunk/bin/am.pl

Modified: trunk/bin/am.pl
===================================================================
--- trunk/bin/am.pl	2014-02-21 19:21:28 UTC (rev 6884)
+++ trunk/bin/am.pl	2014-02-21 20:05:42 UTC (rev 6885)
@@ -98,7 +98,7 @@
 }
 
 sub add_gifi {
-    $form->{title} = $locale->text("Add");
+    $form->{title} = "Add";
 
     # construct callback
     $form->{callback} = "reports.pl?action=list_gifi";
@@ -150,8 +150,9 @@
 
 sub gifi_header {
     my $hiddens = shift;
+    my $title_msg="$form->{title} GIFI";
 
-    $form->{title} = $locale->text("[_1] GIFI", $form->{title});
+    $form->{title} = $locale->text($title_msg);
 
     # $locale->text('Add GIFI')
     # $locale->text('Edit GIFI')
@@ -223,7 +224,7 @@
 
 sub add_business {
 
-    $form->{title} = $locale->text("Add");
+    $form->{title} = "Add";
 
     $form->{callback} =
 "$form->{script}?action=add_business&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}"
@@ -272,8 +273,9 @@
 
 sub business_header {
     my $hiddens = shift;
+    my $title_msg="$form->{title} Business";
 
-    $form->{title} = $locale->text("[_1] Business", $form->{title});
+    $form->{title} = $locale->text($title_msg);
 
     # $locale->text('Add Business')
     # $locale->text('Edit Business')
@@ -304,7 +306,7 @@
 
 sub add_sic {
 
-    $form->{title} = $locale->text("Add");
+    $form->{title} = "Add";
 
     $form->{callback} =
 "$form->{script}?action=add_sic&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}"
@@ -358,8 +360,9 @@
 
 sub sic_header {
     my $hiddens = shift;
+    my $title_msg="$form->{title} SIC";
 
-    $form->{title} = $locale->text("[_1] SIC", $form->{title});
+    $form->{title} = $locale->text($title_msg);
 
     # $locale->text('Add SIC')
     # $locale->text('Edit SIC')
@@ -392,7 +395,7 @@
 
 sub add_language {
 
-    $form->{title} = $locale->text("Add");
+    $form->{title} = "Add";
 
     $form->{callback} =
 "$form->{script}?action=add_language&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}"
@@ -446,8 +449,9 @@
 
 sub language_header {
     my $hiddens = shift;
+    my $title_msg="$form->{title} Language";
 
-    $form->{title} = $locale->text("[_1] Language", $form->{title});
+    $form->{title} = $locale->text($title_msg);
 
     # $locale->text('Add Language')
     # $locale->text('Edit Language')
@@ -726,7 +730,7 @@
 
 sub add_warehouse {
 
-    $form->{title} = $locale->text("Add");
+    $form->{title} = "Add";
 
     $form->{callback} =
 "$form->{script}?action=add_warehouse&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}"
@@ -775,8 +779,9 @@
 
 sub warehouse_header {
     my $hiddens = shift;
+    my $title_msg="$form->{title} Warehouse";
 
-    $form->{title} = $locale->text("[_1] Warehouse", $form->{title});
+    $form->{title} = $locale->text($title_msg);
 
     # $locale->text('Add Warehouse')
     # $locale->text('Edit Warehouse')


Property changes on: trunk/bin/am.pl
___________________________________________________________________
Added: svn:text-time
## -0,0 +1 ##
+2014-02-21T20:04:57.522474Z
\ No newline at end of property
Added: svn:unix-mode
## -0,0 +1 ##
+0600
\ No newline at end of property
Added: svn:owner
## -0,0 +1 ##
+0 root
\ No newline at end of property
Added: svn:group
## -0,0 +1 ##
+0 root
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits