Fixing style errors.
This commit is contained in:
parent
fbf7375fe5
commit
7409642636
@ -408,7 +408,7 @@ class Setup extends DolibarrApi
|
|||||||
* @param object $object Object with label to translate
|
* @param object $object Object with label to translate
|
||||||
* @param string $lang Code of the language the name of the object must be translated to
|
* @param string $lang Code of the language the name of the object must be translated to
|
||||||
* @param string $modprefix Prefix for translation
|
* @param string $modprefix Prefix for translation
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private function translateLabel($object, $lang, $prefix)
|
private function translateLabel($object, $lang, $prefix)
|
||||||
@ -423,7 +423,7 @@ class Setup extends DolibarrApi
|
|||||||
}
|
}
|
||||||
if ($object->code) {
|
if ($object->code) {
|
||||||
$key = $prefix.$object->code;
|
$key = $prefix.$object->code;
|
||||||
|
|
||||||
$translation = $this->translations->trans($key);
|
$translation = $this->translations->trans($key);
|
||||||
if ($translation != $key) {
|
if ($translation != $key) {
|
||||||
$object->label = html_entity_decode($translation);
|
$object->label = html_entity_decode($translation);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user