mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Translate entities
This commit is contained in:
parent
49eb2b63df
commit
9e7375a127
@ -204,4 +204,9 @@ class BaseModel extends Model
|
||||
return $formatted_number;
|
||||
}
|
||||
|
||||
public function translate_entity()
|
||||
{
|
||||
return ctrans('texts.item');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -271,4 +271,8 @@ class PurchaseOrder extends BaseModel
|
||||
return $purchase_order_calc->build();
|
||||
}
|
||||
|
||||
public function translate_entity()
|
||||
{
|
||||
return ctrans('texts.purchase_order');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user