It's not strictly ObjectARX, but perhaps you can help me...
Can strings (like the help string) in the CUI file be automatically localised?
I mean instead of having (say) an English CUI file and a French CUI file, can I have a resource ID for the string and have that pulled from the DLL I create to hold my CUI images?
Solved! Go to Solution.
Solved by Kyudos. Go to Solution.
Solved by tbrammer. Go to Solution.
As far as I know this is not possible directly. We have been looking for something like that in the past year.
(I would be lucky if somebody would tell me I'm wrong and there is a way to do this)
We found two possible solutions. Both use a "language independend" CUIX file that contains message numbers instead of real messages.
1) Use CUI API functions to translate the language independend CUIX into different language versions and ship the appropriate language version.
2) Ship the language independend CUIX only and translate the ribbons at runtime.
As there don't appear to be any official tools for this, I put together the attached Excel 2016 macro workbook to help me. I cribbed a lot of code from around the internet, so thanks to all people who silently contributed to this tool 🙂
It roughly does the following:
I hope this is useful to others. In the spirit of sharing, feel free to post and improvements here 🙂
I extended my original spreadsheet a little. In version 2 we have an extra function:
This moves everything else (w.r.t. v1) down a row, but hopefully that is obvious.
Can't find what you're looking for? Ask the community or share your knowledge.