Deadrik/TFCraft — pull request #583 by ProgrammerHero (2014-08-12 11:46:52+00:00)
Title: [0.79] Improve localization support (take 2)

[Updated from #577]

There were a couple of broken localization strings for beds (tile.bed.nosleep.name, and tile.bed.notsafe.name). I fixed them (removed the .name) and decided to fully implement localization support for all ChatMessages. Most of these messages end up being exactly the same only passed through localization, there are only a couple of cases where the localization had to change.

Most notably the ProPick was always formatted as
translate(Found message)+translate(orename) which is not translatable.
I changed the localization strings to use macros that are converted to the orename at runtime:
translate(Found message with macro).replace(macro, orename)
so the specific .lang file can place the macro ($ORE for the propick) wherever in the message is required.

Debug messages are not included in this PR as per request.

CommandTime is included, and it supports a macro $CURRTIME - if you put this macro in your translation line it will be replaced with the current world time in chat. You can safely ignore this macro in your translation if you choose.