How can i set different translation for different doctypes ?
The issue:
English Word “Plant”
a) Can be a “a young tree, vine, shrub, or herb planted or suitable for planting”
b) Can be a “factory or workshop for the manufacture of a particular product”
The meanings of b) is used as field name in frappe doctype address and lead
The meaining of a) is needed in my custom app also as a field name
How can
add a translation for my custom app?
make sure the translation is used in my custom app?
1- open translation doctype and add the translation .
2- open hooks.py in your app and add : fixtures=[{"dt":"Translation"}]
3- run bench export-fixtures
translations will be saved into your app and will be loaded every time you install it.
This add’s the translation for every occurance of the term “Plant”, also in other doctypes.
How can be ensured, that the translation is only used for certain doctypes and not in general?
I need the meaning of term Plant => “a young tree, vine, shrub, or herb planted or suitable for planting” in some custom app doctypes and remain Plant => “factory or workshop for the manufacture of a particular product” for all non custom app doctypes