Skip to content

Commit 17a48e5

Browse files
committed
Add note about using %s in CONTRIBUTING.md
1 parent b7735bd commit 17a48e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ You may see old code that doesn't adhere to these guidelines, but all new code m
6060
### Miscellaneous
6161
* Any message the player may receive should be translated
6262
* Except for debugging (log messages, debug HUD)
63+
* Any substitutions should use `%s`, or the positioned `%1$s`, `%2$s` etc. format specifiers, and not
64+
other format specifiers such as `%d` and `%f`. If any special formatting is required, this should be
65+
done in code.
66+
* This is because Mojang doesn't always handle format specifiers properly, so we stick to a few
67+
ones which are known to work. This is what Mojang themselves do in their own translation files.
6368
* Don't use Java features only available in Java versions newer than the one Minecraft uses, if applicable
6469
* All files should have a newline at the end of the file
6570
* Do not use AWT at all

0 commit comments

Comments
 (0)