I'm using LaTeX in my company to write formal reports to customers. This class contain a lot of preset for my company including texts (like different standard intro and some label about the right to share the doc).
You can see an example of it here https://github.com/ygini/LaTeXForITDocumentation/tree/master/sample
Now I need to work on the multilingual version of the class (for now, french and english but soon hopefully more).
What would be the best option to handle this and keep the final tex file as simple as possible?
Some texts are created insides commands, so the langage selection must applied at class loading.
Ideally I would like a scenario where french is used as default unless another option is set during the class load.
I've tried a lot of option with options, kvoptions, custom translation file like this one https://github.com/ygini/curriculum/blob/master/translation.sty
Nothing works correctly from the class. I endup with dates translated but not commands, or dates translated but commands show all languages on a raw.
What would be the best solution here to create a class with the following specs: - exact same design (I don't want one class per langage since only the text will chance) - support localization for headers present on all pages - support localization for big intro texts - can be triggered via a class load argument - if possible, support one default value
I've spent hours on this without any viable solution…
Question isn't broad, it's a really specific one with the whole context provided so you can understand what I'm trying to achieve and eventually reroute me.
Same question with less words:
I need to write a class, not a document, that will display some standards text in headers, and this class need to support multiple languages. So, I want to know how am I supposed to implement a class that will accept language options that will be used by babel and by my headers.