Merge pull request #24012 from frederic34/patch-18

doc
This commit is contained in:
Laurent Destailleur 2023-02-23 09:26:32 +01:00 committed by GitHub
commit f3f9cbcd15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,9 @@ class Translate
public $cache_labels = array(); // Cache for labels return by getLabelFromKey method public $cache_labels = array(); // Cache for labels return by getLabelFromKey method
public $cache_currencies = array(); // Cache to store currency symbols public $cache_currencies = array(); // Cache to store currency symbols
private $cache_currencies_all_loaded = false; private $cache_currencies_all_loaded = false;
public $origlang;
public $error;
public $errors = array();
/** /**
@ -416,7 +419,7 @@ class Translate
* *
* Value for hash are: 1:Loaded from disk, 2:Not found, 3:Loaded from cache * Value for hash are: 1:Loaded from disk, 2:Not found, 3:Loaded from cache
* *
* @param Database $db Database handler * @param DoliDB $db Database handler
* @return int <0 if KO, 0 if already loaded or loading not required, >0 if OK * @return int <0 if KO, 0 if already loaded or loading not required, >0 if OK
*/ */
public function loadFromDatabase($db) public function loadFromDatabase($db)