Fix: Translation of menu entries must not be into admin lang file (We
don't want to load this file for common pages).
This commit is contained in:
parent
18f90520cf
commit
96e7985266
@ -114,7 +114,7 @@ class modBarcode extends DolibarrModules
|
|||||||
'type'=>'left', // This is a Left menu entry
|
'type'=>'left', // This is a Left menu entry
|
||||||
'titre'=>'MassBarcodeInit',
|
'titre'=>'MassBarcodeInit',
|
||||||
'url'=>'/barcode/codeinit.php?mainmenu=home&leftmenu=modulesadmintools',
|
'url'=>'/barcode/codeinit.php?mainmenu=home&leftmenu=modulesadmintools',
|
||||||
'langs'=>'barcode', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
'langs'=>'products', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
||||||
'position'=>300,
|
'position'=>300,
|
||||||
'enabled'=>'$conf->barcode->enabled && $leftmenu=="modulesadmintools"', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
|
'enabled'=>'$conf->barcode->enabled && $leftmenu=="modulesadmintools"', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
|
||||||
'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
|
'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
|
||||||
|
|||||||
@ -135,7 +135,7 @@ class modProduct extends DolibarrModules
|
|||||||
'type'=>'left', // This is a Left menu entry
|
'type'=>'left', // This is a Left menu entry
|
||||||
'titre'=>'ProductVatMassChange',
|
'titre'=>'ProductVatMassChange',
|
||||||
'url'=>'/product/admin/product_tools.php?mainmenu=home&leftmenu=modulesadmintools',
|
'url'=>'/product/admin/product_tools.php?mainmenu=home&leftmenu=modulesadmintools',
|
||||||
'langs'=>'admin', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
'langs'=>'products', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
||||||
'position'=>300,
|
'position'=>300,
|
||||||
'enabled'=>'$conf->product->enabled && $leftmenu=="modulesadmintools"', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
|
'enabled'=>'$conf->product->enabled && $leftmenu=="modulesadmintools"', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
|
||||||
'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
|
'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
|
||||||
|
|||||||
@ -120,7 +120,7 @@ class modService extends DolibarrModules
|
|||||||
'type'=>'left', // This is a Left menu entry
|
'type'=>'left', // This is a Left menu entry
|
||||||
'titre'=>'ProductVatMassChange',
|
'titre'=>'ProductVatMassChange',
|
||||||
'url'=>'/product/admin/product_tools.php?mainmenu=home&leftmenu=modulesadmintools',
|
'url'=>'/product/admin/product_tools.php?mainmenu=home&leftmenu=modulesadmintools',
|
||||||
'langs'=>'admin', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
'langs'=>'products', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
||||||
'position'=>300,
|
'position'=>300,
|
||||||
'enabled'=>'$conf->product->enabled && $leftmenu=="modulesadmintools"', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
|
'enabled'=>'$conf->product->enabled && $leftmenu=="modulesadmintools"', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
|
||||||
'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
|
'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
|
||||||
|
|||||||
@ -345,10 +345,6 @@ SecurityTokenIsUnique=Use a unique securekey parameter for each URL
|
|||||||
EnterRefToBuildUrl=Enter reference for object %s
|
EnterRefToBuildUrl=Enter reference for object %s
|
||||||
GetSecuredUrl=Get calculated URL
|
GetSecuredUrl=Get calculated URL
|
||||||
ButtonHideUnauthorized=Hide buttons for unauthorized actions instead of showing disabled buttons
|
ButtonHideUnauthorized=Hide buttons for unauthorized actions instead of showing disabled buttons
|
||||||
ProductVatMassChange=Mass VAT change
|
|
||||||
ProductVatMassChangeDesc=This page can be used to modify a VAT rate defined on products or services from a value to another. Warning, this change is done on all database.
|
|
||||||
MassBarcodeInit=Mass barcode init
|
|
||||||
MassBarcodeInitDesc=This page can be used to initialize a barcode on objects that does not have barcode defined. Check before that setup of module barcode is complete.
|
|
||||||
OldVATRates=Old VAT rate
|
OldVATRates=Old VAT rate
|
||||||
NewVATRates=New VAT rate
|
NewVATRates=New VAT rate
|
||||||
PriceBaseTypeToChange=Modify on prices with base reference value defined on
|
PriceBaseTypeToChange=Modify on prices with base reference value defined on
|
||||||
|
|||||||
@ -13,6 +13,10 @@ NewProduct=New product
|
|||||||
NewService=New service
|
NewService=New service
|
||||||
ProductCode=Product code
|
ProductCode=Product code
|
||||||
ServiceCode=Service code
|
ServiceCode=Service code
|
||||||
|
ProductVatMassChange=Mass VAT change
|
||||||
|
ProductVatMassChangeDesc=This page can be used to modify a VAT rate defined on products or services from a value to another. Warning, this change is done on all database.
|
||||||
|
MassBarcodeInit=Mass barcode init
|
||||||
|
MassBarcodeInitDesc=This page can be used to initialize a barcode on objects that does not have barcode defined. Check before that setup of module barcode is complete.
|
||||||
ProductAccountancyBuyCode=Accountancy code (buy)
|
ProductAccountancyBuyCode=Accountancy code (buy)
|
||||||
ProductAccountancySellCode=Accountancy code (sell)
|
ProductAccountancySellCode=Accountancy code (sell)
|
||||||
ProductOrService=Product or Service
|
ProductOrService=Product or Service
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user