Fix type of parameter
This commit is contained in:
parent
f3ca69522e
commit
7e547f3f16
@ -171,7 +171,7 @@ class Translate
|
||||
* @param int $forcelangdir To force a different lang directory
|
||||
* @param int $loadfromfileonly 1=Do not load overwritten translation from file or old conf.
|
||||
* @return int <0 if KO, 0 if already loaded or loading not required, >0 if OK
|
||||
* @see loadLangs
|
||||
* @see loadLangs()
|
||||
*/
|
||||
public function load($domain, $alt = 0, $stopafterdirection = 0, $forcelangdir = '', $loadfromfileonly = 0)
|
||||
{
|
||||
@ -831,12 +831,12 @@ class Translate
|
||||
* same number (this module is not provided by default as it use non GPL source code).
|
||||
*
|
||||
* @param int $number Number to encode in full text
|
||||
* @param int $isamount 1=It's an amount, 0=it's just a number
|
||||
* @param string $isamount ''=it's just a number, '1'=It's an amount (default currency), 'currencycode'=It's an amount (foreign currency)
|
||||
* @return string Label translated in UTF8 (but without entities)
|
||||
* 10 if setDefaultLang was en_US => ten
|
||||
* 123 if setDefaultLang was fr_FR => cent vingt trois
|
||||
*/
|
||||
public function getLabelFromNumber($number, $isamount = 0)
|
||||
public function getLabelFromNumber($number, $isamount = '')
|
||||
{
|
||||
global $conf;
|
||||
|
||||
@ -877,7 +877,7 @@ class Translate
|
||||
* @param string $keyforselect Use another value than the translation key for the where into select
|
||||
* @param int $filteronentity Use a filter on entity
|
||||
* @return string Label in UTF8 (but without entities)
|
||||
* @see dol_getIdFromCode
|
||||
* @see dol_getIdFromCode()
|
||||
*/
|
||||
public function getLabelFromKey($db, $key, $tablename, $fieldkey, $fieldlabel, $keyforselect = '', $filteronentity = 0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user