diff options
author | BrickPi <ajmach6@gmail.com> | 2024-01-19 22:52:24 +0100 |
---|---|---|
committer | BrickPi <ajmach6@gmail.com> | 2024-01-21 16:25:06 +0100 |
commit | 2940411cb33a64cd41c2d39ddf98aab54edc9f69 (patch) | |
tree | 8cefa44e20d3fd26f7ba083454ffdcbb43c1d05f /game/assets/localisation/README.md | |
parent | fb2561bd998f211d2099f811a6b6b25a57118160 (diff) |
Reorganise Asset File Structure
Diffstat (limited to 'game/assets/localisation/README.md')
-rw-r--r-- | game/assets/localisation/README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/game/assets/localisation/README.md b/game/assets/localisation/README.md new file mode 100644 index 0000000..909e380 --- /dev/null +++ b/game/assets/localisation/README.md @@ -0,0 +1,16 @@ +# Localisation + +This folder contains localisations for in-game text. Each sub-folder must be named with a standard locale code, e.g. `en_GB`, to which the localisations contained within it shall apply (Godot's supported locale codes are listed [here](https://docs.godotengine.org/en/latest/tutorials/i18n/locales.html)). These folders contain `.csv` files where each line is interpreted as a semicolon-separated key-value pair. Empty lines allow for spacing out/separating sections, and any further entries beyond the first two on a line are ignored, which can be used to add comments at the end of lines. Lines with their key and value empty are skipped, allowing free-standing comments with no preceeding localisation, but lines with only one of their key or value empty, while not loaded as a localisation, will still result in warnings about incomplete entries. + +``` +;; Example Localisation Comment +EXAMPLE_KEY;Example Value +ANOTHER_EXAMPLE;Another Example; This is a comment + +;; Entries with empty keys/values are skipped but can still produce warnings +THIS;; produces a warning! +;As; does this! +;; This doesn't! +BUT_THIS_DOES +AND_THIS; +``` |