Hi Bjarne
I did like this, But you hav to set the format money value in the
GLobal_settings to be KR and the thousand seperator with a point and not
comma on the last value.
Then the output should be Norwegian.
I ve rebuilded the whole calculate total file to Norwegian, so if you liek
you can get access to my files in Norwegian.
via my FTP.

Anyway this works for me..


function showTotals($total)
 {
  file://sort the array by fee name
  ksort($total);

  file://print items total
  printTableRow("Artikler",
   formatMoney($total["Items"]),
   FALSE,
   "font-weight: bold;",
   "text-align: right;");

  file://print fees
  reset($total);
  while(list($key) = each($total))
  {
   if(($key != "Items") AND ($key != "Grand"))
   {
    printTableRow($key,
     formatMoney($total[$key]),
     FALSE,
     "font-weight: bold;",
     "text-align: right;");
   }
  }

  file://print grand total
  printTableRow("", "<hr style=\"color: black;\">", FALSE);
  printTableRow("� betale",
   formatMoney($total["Grand"]),
   FALSE,
   "font-weight: bold;",
   "text-align: right;");

  return(TRUE);
 }
----- Original Message -----
From: "Bjarne Hansen" <[EMAIL PROTECTED]>
To: "FreeTrade" <[EMAIL PROTECTED]>
Sent: Saturday, September 09, 2000 7:26 PM
Subject: [FreeTrade] function showTotals


Hi!
I have a  problem with this function. There are no lanuage refrenses in
this, so it is english on my pages.


May I ask for some help here? Where would I put Norwegian words. I expect
this will break?

function showTotals($total)
{
file://sort the array by fee name
ksort($total);
file://print items total
printTableRow("Items",
formatMoney($total["Items"]),
FALSE,
"font-weight: bold;",
"text-align: right;");
file://print fees
reset($total);
while(list($key) = each($total))
{
if(($key != "Items") AND ($key != "Grand"))
{
printTableRow($key,
formatMoney($total[$key]),
FALSE,
"font-weight: bold;",
"text-align: right;");
}
}
file://print grand total
printTableRow("", "<hr style=\"color: black;\">", FALSE);
printTableRow("Grand Total",
formatMoney($total["Grand"]),
FALSE,
"font-weight: bold;",
"text-align: right;");
return(TRUE);
}



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]




------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to