4 ms·
Most of these should be in a separate file for i18n, not directly in the source code.
by jdavis703 5y ago
Most of these should be in a separate file for i18n, not directly in the source code.
- Const-me 5y agoInternationalization is not limited to putting strings into a table in resource. It also needs non-trivial amount of code. Printing numbers into strings is code not data. Yet if you want the numbers to look good, like "600 μm" or "6×10⁻⁴ meters", you gonna have Unicode in code, not the resources. Another thing, not every software needs i18n. Depends on the market. I'm yet to see a C++ compiler which would localize their output messages.
- kzrdude 5y agoGCC supports localization, that's one C++ compiler. Intel C++ compiler seems to have a Japanese version (not tried).
- jdavis703 5y ago“Meters” is an English word, and a string like “600 μm” should still probably be extracted from the code as “%d μm.”
- Const-me 5y agoStill, there’re also string like “6·10⁻⁴”