787 | | |
788 | | |
789 | | |
| 787 | == Globalization == |
| 788 | |
| 789 | === .NET === |
| 790 | |
| 791 | All strings which need to be localized must be placed into resx resource files. |
| 792 | |
| 793 | === C++ === |
| 794 | |
| 795 | All strings which need to be localized must be placed into res resource files. |
| 796 | |
| 797 | === General === |
| 798 | |
| 799 | Strings which do not need to be localized can remain in the code. However, you should indicate the string is non-localizable by adding a NOXLATE comment, e.g. |
| 800 | {{{ |
| 801 | #!cpp |
| 802 | if (filename.EndsWith(".txt")) // NOXLATE |
| 803 | { |
| 804 | ... |
| 805 | } |
| 806 | }}} |
| 807 | |
| 808 | The comment indicates that the author of the code explicitly wants to exclude the string from being localized. |
| 809 | |
| 810 | Exception string messages should be globalized if possible. |
| 811 | |
| 812 | == Special Comments == |
| 813 | |
| 814 | Use BOGUS in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO when something needs to be completed but working. Code that is not implemented or not tested should raise an exception. For every instance add necessary comment to further explain the situation. |
| 815 | |