Hi all, Another possibly impossible task.. I need ...
# general
b
Hi all, Another possibly impossible task.. I need to have the units of measure ( units ) appear in a different language on one of our custom pdf forms. Has anyone done this before? As you can't add custom fields to the Units record, I was thinking a custom record linked to this with the language option on the custom record. Is this the wrong approach? Thanks,
n
if it's just one different language, you could have a custom record that maps the UOM to the word(s) you need. Then on the line level script that populates a column holding the foreign language word(s). Pick up the custom column in your PDF. Alternatively, if there's not many UOM and you're not going to keep adding new ones, you could just bake a hashtable in to the PDF template something like: {1: litre 2: gramme } etc and based on that switch it out using the id of the UOM. (presumes the internalid of the UOM is present in the item line)
b
There are about 20 UOMs, and I only need 1 different language.
n
ever going to add new ones you think?
@BullgillRunner DM'd you.
b
Adding Translated Content in Advanced Printouts is what you would use if you didn't want a customization or a lookup on your template.
n
oooh yeah! 🤭 There's me always quick to code things 🤦🏻‍♂️
b
The use of Adding Translated Content in Advanced Printouts appears to need to use a language that NetSuite already supports - is that correct? We will have users in their preferences one of two possible language set, so I need the output to use the translation I set for the units regardless of what language the user sets. Also, as hinted above, I am using a language that is not currently supported by NetSuite.
b
there is an example of setting the locale and there is actually no requirement that you choose a translation that actually matches the language