11

At the moment I can think of three cases:

  • assemblies that don't contain any resources
  • control libraries that only contain images (ie. ToolBoxBitmaps) within their resource files
  • libraries that contain only text used for throwing exceptions (we don't want the user to see those anyway, do we? ;-) )

Am I right with these cases or not, and are there others I don't see right now?

starblue
  • 55,348
  • 14
  • 97
  • 151
takrl
  • 6,356
  • 3
  • 60
  • 69

1 Answers1

3

Just because the a library contains only non-text resources does not mean that it doesn't need to be localized. Images may need to be localized too, either because they contain text, or because they are significantly influenced by cultural biases (granted, I know of no major applications that currently localize images for only that reason). There may also be language/culture-specific sound files.

Also, just because the only text in the library is exception text also does not mean that the library does not need to be localized. Even though you may not want the user to ever see your exception text, your developers will still see it; and not all developers speak the same language. All exception text in the BCL is localized for this reason.

I don't really see any advantage to ever using the invariant culture as the neutral language for an assembly. If you have resources in the assembly, you should use the native culture for those resources. If you don't, it doesn't really matter, so you might as well use the native culture in which the assembly is developed (or most likely to be used), so you don't have to change anything if you add resources in the future.

David Nelson
  • 3,666
  • 1
  • 21
  • 24
  • +1, even though you didn't answer the question ("What are more reasons that I can use to justify what I'm doing?"). :-) – Jeffrey L Whitledge Jun 24 '11 at 16:08
  • +1, Thanks David, some really good points in there I didn't think of. – takrl Jun 24 '11 at 18:20
  • @Jeffrey :-) I never thought of phrasing the question this way, but now as you mention it, it's actually more along the lines of "I've never made much use of this, but maybe I should?" – takrl Jun 24 '11 at 18:40
  • @Jeffrey lol yes I obviously failed to understand the question being asked :) – David Nelson Jun 24 '11 at 18:52