I would like to change the value of parameter “NotePublic” into different values depending on the modules. For instance, for Purchase Order module from “NotePublic=Note (public)” into “NotePublic=Order Instruction”.
I tried to add that into langs/en_US/orders.lang but the one from langs/en_US/main.lang is always being taken, which is “NotePublic=Note (public)”. If I changed the value on langs/en_US/main.lang, it of course affects all other modules.
Is there a way to give priority of which language file should be taken?
In the example above, I would like langs/en_US/orders.lang to have higher priority than langs/en_US/main.lang for Purchase Order module.
I had a look on core/class/translate.class.php. I can set a global parameter MAIN_FORCELANGDIR, which will make the language file mymodule/langs/en_US (for example) has higher priority than langs/en_US/main.lang.
For me, this is another hacking of the core code then
This time I cannibalised core/class/html.form.class.php to set the value of NotePublic based on $object->element == 'order_supplier'.