cryptris
cryptris copied to clipboard
Multi language support
We should here discuss how to integrate multi language support in Cryptris.
With my poor programming skills I see two options. Opinions or other suggestions welcomed !
Solution 1: Replace all literal text by a call to a function translate with the same text (in French) as an argument. The function translate access a table with corresponding translation.
Solution 2: Replace all literal text by a variable that are defined in a single file, and modify the value of those variable depending on the language.