I've created a DLL which has functional uses, but it also has resources inside of it, which it uses itself, but it needs to be translated for different languages. The translation itself is not the issue, rather how these translations can be implemented.
I've had a look around, and the two main options I could find for DLL translation practices is:
- Provide a different DLL for each language, then in the main project use the correct DLL for the current culture.
Have translations inside the DLL where the DLL detects the current culture through the line below (haven't tested if that line works yet), and then it uses the translations inside itself to provide the correct translated output.
Assembly.GetExecutingAssembly().AssemblyName.CultureInfo
So my questions are which method of those is the best practice (if any!), and do you have and pointers on how best to do translations inside the DLL itself?