Fix translation keys for taxes
This commit is contained in:
parent
6470b62f56
commit
9e6666e511
@ -25,7 +25,7 @@ $path=dirname(__FILE__).'/';
|
|||||||
$web=0;
|
$web=0;
|
||||||
|
|
||||||
// Test if batch mode
|
// Test if batch mode
|
||||||
if (substr($sapi_type, 0, 3) == 'cgi')
|
if (substr($sapi_type, 0, 3) == 'cgi')
|
||||||
{
|
{
|
||||||
$web=1;
|
$web=1;
|
||||||
}
|
}
|
||||||
@ -35,9 +35,9 @@ if ($web)
|
|||||||
{
|
{
|
||||||
echo "<html>";
|
echo "<html>";
|
||||||
echo "<head>";
|
echo "<head>";
|
||||||
|
|
||||||
echo "<STYLE type=\"text/css\">
|
echo "<STYLE type=\"text/css\">
|
||||||
|
|
||||||
table {
|
table {
|
||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
@ -48,7 +48,7 @@ if ($web)
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
width: 800px;
|
width: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
background-color: #777;
|
background-color: #777;
|
||||||
border-left: 1px solid #555;
|
border-left: 1px solid #555;
|
||||||
@ -61,7 +61,7 @@ if ($web)
|
|||||||
position: relative;
|
position: relative;
|
||||||
text-shadow: 0 1px 0 #000;
|
text-shadow: 0 1px 0 #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
border-right: 1px solid #fff;
|
border-right: 1px solid #fff;
|
||||||
border-left: 1px solid #e8e8e8;
|
border-left: 1px solid #e8e8e8;
|
||||||
@ -70,19 +70,19 @@ if ($web)
|
|||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
background-color: #f1f1f1;
|
background-color: #f1f1f1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tr:nth-child(odd) td {
|
tr:nth-child(odd) td {
|
||||||
background-color: #f1f1f1;
|
background-color: #f1f1f1;
|
||||||
}
|
}
|
||||||
|
|
||||||
</STYLE>";
|
</STYLE>";
|
||||||
|
|
||||||
echo "<body>";
|
echo "<body>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,9 +142,9 @@ foreach ($files AS $file) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($langstrings_3d AS $filename => $file)
|
foreach ($langstrings_3d AS $filename => $file)
|
||||||
{
|
{
|
||||||
foreach ($file AS $linenum => $value)
|
foreach ($file AS $linenum => $value)
|
||||||
{
|
{
|
||||||
$keys = array_keys($langstrings_full, $value);
|
$keys = array_keys($langstrings_full, $value);
|
||||||
if (count($keys)>1)
|
if (count($keys)>1)
|
||||||
@ -173,11 +173,11 @@ $sininstallandadmin='';
|
|||||||
$sother='';
|
$sother='';
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach ($dups as $string => $pages)
|
foreach ($dups as $string => $pages)
|
||||||
{
|
{
|
||||||
$count++;
|
$count++;
|
||||||
$s='';
|
$s='';
|
||||||
|
|
||||||
// Keyword $string
|
// Keyword $string
|
||||||
if ($web) $s.="<tr>";
|
if ($web) $s.="<tr>";
|
||||||
if ($web) $s.="<td align=\"center\">";
|
if ($web) $s.="<td align=\"center\">";
|
||||||
@ -188,32 +188,32 @@ foreach ($dups as $string => $pages)
|
|||||||
if ($web) $s.="</td>";
|
if ($web) $s.="</td>";
|
||||||
if ($web) $s.="<td>";
|
if ($web) $s.="<td>";
|
||||||
if (! $web) $s.= ' : ';
|
if (! $web) $s.= ' : ';
|
||||||
|
|
||||||
// Loop on each files keyword was found
|
// Loop on each files keyword was found
|
||||||
$duplicateinsamefile=0;
|
$duplicateinsamefile=0;
|
||||||
$inmain=0;
|
$inmain=0;
|
||||||
$inadmin=0;
|
$inadmin=0;
|
||||||
foreach ($pages AS $file => $lines)
|
foreach ($pages AS $file => $lines)
|
||||||
{
|
{
|
||||||
if ($file == 'main.lang') { $inmain=1; $inadmin=0; }
|
if ($file == 'main.lang') { $inmain=1; $inadmin=0; }
|
||||||
if ($file == 'admin.lang' && ! $inmain) { $inadmin=1; }
|
if ($file == 'admin.lang' && ! $inmain) { $inadmin=1; }
|
||||||
|
|
||||||
$s.=$file." ";
|
$s.=$file." ";
|
||||||
|
|
||||||
// Loop on each line keword was found into file.
|
// Loop on each line keword was found into file.
|
||||||
$listoffilesforthisentry=array();
|
$listoffilesforthisentry=array();
|
||||||
foreach ($lines as $line => $translatedvalue)
|
foreach ($lines as $line => $translatedvalue)
|
||||||
{
|
{
|
||||||
if (! empty($listoffilesforthisentry[$file])) $duplicateinsamefile=1;
|
if (! empty($listoffilesforthisentry[$file])) $duplicateinsamefile=1;
|
||||||
$listoffilesforthisentry[$file]=1;
|
$listoffilesforthisentry[$file]=1;
|
||||||
|
|
||||||
$s.= "(".$line." - ".htmlentities($translatedvalue).") ";
|
$s.= "(".$line." - ".htmlentities($translatedvalue).") ";
|
||||||
}
|
}
|
||||||
if ($web) $s.="<br>";
|
if ($web) $s.="<br>";
|
||||||
}
|
}
|
||||||
if ($web) $s.="</td></tr>";
|
if ($web) $s.="</td></tr>";
|
||||||
$s.="\n";
|
$s.="\n";
|
||||||
|
|
||||||
if ($duplicateinsamefile) $sduplicateinsamefile .= $s;
|
if ($duplicateinsamefile) $sduplicateinsamefile .= $s;
|
||||||
else if ($inmain) $sinmainandother .= $s;
|
else if ($inmain) $sinmainandother .= $s;
|
||||||
else if ($inadmin) $sininstallandadmin .= $s;
|
else if ($inadmin) $sininstallandadmin .= $s;
|
||||||
@ -252,7 +252,7 @@ if ($web)
|
|||||||
if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($argv[1]) && $argv[1]=='unused=true'))
|
if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($argv[1]) && $argv[1]=='unused=true'))
|
||||||
{
|
{
|
||||||
print "***** Strings in en_US that are never used:\n";
|
print "***** Strings in en_US that are never used:\n";
|
||||||
|
|
||||||
$unused=array();
|
$unused=array();
|
||||||
foreach ($langstrings_dist AS $value => $line)
|
foreach ($langstrings_dist AS $value => $line)
|
||||||
{
|
{
|
||||||
@ -288,7 +288,7 @@ if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($a
|
|||||||
if (preg_match('/^JuridicalStatus/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^JuridicalStatus/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^CalcMode/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^CalcMode/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^newLT/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^newLT/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^LT\d/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^LT[0-9]/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^TypeContact_contrat_/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^TypeContact_contrat_/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^ErrorPriceExpression/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^ErrorPriceExpression/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^Language_/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^Language_/', $value)) $qualifiedforclean=0;
|
||||||
@ -315,7 +315,7 @@ if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($a
|
|||||||
// orders
|
// orders
|
||||||
if (preg_match('/^OrderSource/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^OrderSource/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^TypeContact_/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^TypeContact_/', $value)) $qualifiedforclean=0;
|
||||||
// other.lang
|
// other.lang
|
||||||
if (preg_match('/^Notify_/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^Notify_/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^PredefinedMail/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^PredefinedMail/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/^DemoCompany/', $value)) $qualifiedforclean=0;
|
if (preg_match('/^DemoCompany/', $value)) $qualifiedforclean=0;
|
||||||
@ -336,17 +336,17 @@ if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($a
|
|||||||
if (preg_match('/OppStatus/', $value)) $qualifiedforclean=0;
|
if (preg_match('/OppStatus/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/AvailabilityType/', $value)) $qualifiedforclean=0;
|
if (preg_match('/AvailabilityType/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/CardProduct/', $value)) $qualifiedforclean=0;
|
if (preg_match('/CardProduct/', $value)) $qualifiedforclean=0;
|
||||||
|
|
||||||
if (preg_match('/sms/i', $value)) $qualifiedforclean=0;
|
if (preg_match('/sms/i', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/TF_/i', $value)) $qualifiedforclean=0;
|
if (preg_match('/TF_/i', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/WithBankUsing/i', $value)) $qualifiedforclean=0;
|
if (preg_match('/WithBankUsing/i', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/descWORKFLOW_/i', $value)) $qualifiedforclean=0;
|
if (preg_match('/descWORKFLOW_/i', $value)) $qualifiedforclean=0;
|
||||||
|
|
||||||
if (! $qualifiedforclean)
|
if (! $qualifiedforclean)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//$search = '\'trans("'.$value.'")\'';
|
//$search = '\'trans("'.$value.'")\'';
|
||||||
$search = '-e "\''.$value.'\'" -e \'"'.$value.'"\' -e "('.$value.')" -e "('.$value.',"';
|
$search = '-e "\''.$value.'\'" -e \'"'.$value.'"\' -e "('.$value.')" -e "('.$value.',"';
|
||||||
$string = 'grep -R -m 1 -F --exclude=includes/* --include=*.php '.$search.' '.$htdocs.'* '.$scripts.'*';
|
$string = 'grep -R -m 1 -F --exclude=includes/* --include=*.php '.$search.' '.$htdocs.'* '.$scripts.'*';
|
||||||
@ -356,7 +356,7 @@ if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($a
|
|||||||
$unused[$value] = $line;
|
$unused[$value] = $line;
|
||||||
echo $line; // $trad contains the \n
|
echo $line; // $trad contains the \n
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
unset($output);
|
unset($output);
|
||||||
//print 'X'.$output.'Y';
|
//print 'X'.$output.'Y';
|
||||||
@ -364,7 +364,7 @@ if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($a
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($unused)) print "No string not used found.\n";
|
if (empty($unused)) print "No string not used found.\n";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$filetosave='/tmp/'.($argv[2]?$argv[2]:"").'notused.lang';
|
$filetosave='/tmp/'.($argv[2]?$argv[2]:"").'notused.lang';
|
||||||
print "Strings in en_US that are never used are saved into file ".$filetosave.":\n";
|
print "Strings in en_US that are never used are saved into file ".$filetosave.":\n";
|
||||||
|
|||||||
@ -117,7 +117,7 @@ $textprevyear="<a href=\"index.php?year=" . ($year_current-1) . "\">".img_previo
|
|||||||
$textnextyear=" <a href=\"index.php?year=" . ($year_current+1) . "\">".img_next($langs->trans("Next"), 'class="valignbottom"')."</a>";
|
$textnextyear=" <a href=\"index.php?year=" . ($year_current+1) . "\">".img_next($langs->trans("Next"), 'class="valignbottom"')."</a>";
|
||||||
|
|
||||||
print $conf->dol_optimize_smallscreen;
|
print $conf->dol_optimize_smallscreen;
|
||||||
print load_fiche_titre($langs->trans("VAT"), $textprevyear." ".$langs->trans("Year")." ".$year_start." ".$textnextyear, 'title_accountancy.png');
|
print load_fiche_titre($langs->transcountry("VAT", $mysoc->country_code), $textprevyear." ".$langs->trans("Year")." ".$year_start." ".$textnextyear, 'title_accountancy.png');
|
||||||
|
|
||||||
print $langs->trans("VATReportBuildWithOptionDefinedInModule").'<br>';
|
print $langs->trans("VATReportBuildWithOptionDefinedInModule").'<br>';
|
||||||
print '('.$langs->trans("TaxModuleSetupToModifyRules",DOL_URL_ROOT.'/admin/taxes.php').')<br>';
|
print '('.$langs->trans("TaxModuleSetupToModifyRules",DOL_URL_ROOT.'/admin/taxes.php').')<br>';
|
||||||
|
|||||||
@ -871,7 +871,7 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu
|
|||||||
// VAT
|
// VAT
|
||||||
if (empty($conf->global->TAX_DISABLE_VAT_MENUS))
|
if (empty($conf->global->TAX_DISABLE_VAT_MENUS))
|
||||||
{
|
{
|
||||||
$newmenu->add("/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy",$langs->trans("VAT"),1,$user->rights->tax->charges->lire, '', $mainmenu, 'tax_vat');
|
$newmenu->add("/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy",$langs->transcountry("VAT", $mysoc->country_code),1,$user->rights->tax->charges->lire, '', $mainmenu, 'tax_vat');
|
||||||
if ($usemenuhider || empty($leftmenu) || preg_match('/^tax_vat/i',$leftmenu)) $newmenu->add("/compta/tva/card.php?leftmenu=tax_vat&action=create",$langs->trans("New"),2,$user->rights->tax->charges->creer);
|
if ($usemenuhider || empty($leftmenu) || preg_match('/^tax_vat/i',$leftmenu)) $newmenu->add("/compta/tva/card.php?leftmenu=tax_vat&action=create",$langs->trans("New"),2,$user->rights->tax->charges->creer);
|
||||||
if ($usemenuhider || empty($leftmenu) || preg_match('/^tax_vat/i',$leftmenu)) $newmenu->add("/compta/tva/reglement.php?leftmenu=tax_vat",$langs->trans("List"),2,$user->rights->tax->charges->lire);
|
if ($usemenuhider || empty($leftmenu) || preg_match('/^tax_vat/i',$leftmenu)) $newmenu->add("/compta/tva/reglement.php?leftmenu=tax_vat",$langs->trans("List"),2,$user->rights->tax->charges->lire);
|
||||||
if ($usemenuhider || empty($leftmenu) || preg_match('/^tax_vat/i',$leftmenu)) $newmenu->add("/compta/tva/clients.php?leftmenu=tax_vat", $langs->trans("ReportByCustomers"), 2, $user->rights->tax->charges->lire);
|
if ($usemenuhider || empty($leftmenu) || preg_match('/^tax_vat/i',$leftmenu)) $newmenu->add("/compta/tva/clients.php?leftmenu=tax_vat", $langs->trans("ReportByCustomers"), 2, $user->rights->tax->charges->lire);
|
||||||
|
|||||||
@ -30,18 +30,34 @@ Piece=Accounting Doc.
|
|||||||
AmountHTVATRealReceived=Net collected
|
AmountHTVATRealReceived=Net collected
|
||||||
AmountHTVATRealPaid=Net paid
|
AmountHTVATRealPaid=Net paid
|
||||||
VATToPay=VAT sells
|
VATToPay=VAT sells
|
||||||
VATReceived=VAT received
|
VATReceived=Tax received
|
||||||
VATToCollect=VAT purchases
|
VATToCollect=Tax purchases
|
||||||
VATSummary=VAT Balance
|
VATSummary=Tax Balance
|
||||||
LT2SummaryES=IRPF Balance
|
VATPaid=Tax paid
|
||||||
|
LT1Summary=Tax 2 summary
|
||||||
|
LT2Summary=Tax 3 summary
|
||||||
LT1SummaryES=RE Balance
|
LT1SummaryES=RE Balance
|
||||||
VATPaid=VAT paid
|
LT2SummaryES=IRPF Balance
|
||||||
LT2PaidES=IRPF Paid
|
LT1SummaryIN=CGST Balance
|
||||||
|
LT2SummaryIN=SGST Balance
|
||||||
|
LT1Paid=Tax 2 paid
|
||||||
|
LT2Paid=Tax 3 paid
|
||||||
LT1PaidES=RE Paid
|
LT1PaidES=RE Paid
|
||||||
LT2CustomerES=IRPF sales
|
LT2PaidES=IRPF Paid
|
||||||
LT2SupplierES=IRPF purchases
|
LT1PaidIN=CGST Paid
|
||||||
|
LT2PaidIN=SGST Paid
|
||||||
|
LT1Customer=Tax 2 sales
|
||||||
|
LT1Supplier=Tax 2 purchases
|
||||||
LT1CustomerES=RE sales
|
LT1CustomerES=RE sales
|
||||||
LT1SupplierES=RE purchases
|
LT1SupplierES=RE purchases
|
||||||
|
LT1CustomerIN=CGST sales
|
||||||
|
LT1SupplierIN=CGST purchases
|
||||||
|
LT2Customer=Tax 3 sales
|
||||||
|
LT2Supplier=Tax 3 purchases
|
||||||
|
LT2CustomerES=IRPF sales
|
||||||
|
LT2SupplierES=IRPF purchases
|
||||||
|
LT2CustomerIN=SGST sales
|
||||||
|
LT2SupplierIN=SGST purchases
|
||||||
VATCollected=VAT collected
|
VATCollected=VAT collected
|
||||||
ToPay=To pay
|
ToPay=To pay
|
||||||
SpecialExpensesArea=Area for all special payments
|
SpecialExpensesArea=Area for all special payments
|
||||||
|
|||||||
@ -356,17 +356,26 @@ Totalforthispage=Total for this page
|
|||||||
TotalTTC=Total (inc. tax)
|
TotalTTC=Total (inc. tax)
|
||||||
TotalTTCToYourCredit=Total (inc. tax) to your credit
|
TotalTTCToYourCredit=Total (inc. tax) to your credit
|
||||||
TotalVAT=Total tax
|
TotalVAT=Total tax
|
||||||
|
TotalVATIN=Total IGST
|
||||||
TotalLT1=Total tax 2
|
TotalLT1=Total tax 2
|
||||||
TotalLT2=Total tax 3
|
TotalLT2=Total tax 3
|
||||||
TotalLT1ES=Total RE
|
TotalLT1ES=Total RE
|
||||||
TotalLT2ES=Total IRPF
|
TotalLT2ES=Total IRPF
|
||||||
|
TotalLT1IN=Total CGST
|
||||||
|
TotalLT2IN=Total SGST
|
||||||
HT=Net of tax
|
HT=Net of tax
|
||||||
TTC=Inc. tax
|
TTC=Inc. tax
|
||||||
INCT=Inc. all taxes
|
INCT=Inc. all taxes
|
||||||
VAT=Sales tax
|
VAT=Sales tax
|
||||||
|
VATIN=IGST
|
||||||
VATs=Sales taxes
|
VATs=Sales taxes
|
||||||
|
VATINs=IGST taxes
|
||||||
|
LT1=Sales tax 2
|
||||||
|
LT2=Sales tax 3
|
||||||
LT1ES=RE
|
LT1ES=RE
|
||||||
LT2ES=IRPF
|
LT2ES=IRPF
|
||||||
|
LT1IN=CGST
|
||||||
|
LT2IN=SGST
|
||||||
VATRate=Tax Rate
|
VATRate=Tax Rate
|
||||||
Average=Average
|
Average=Average
|
||||||
Sum=Sum
|
Sum=Sum
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user