From d40054a18e6018b7c384625674797863bfe3bfc4 Mon Sep 17 00:00:00 2001 From: Sebastian Ludwig Date: Sat, 5 Dec 2015 17:34:35 +0100 Subject: [PATCH] Added short paragraph about placeholders to README. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 274da40..a50458a 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,10 @@ Twine stores all of its strings in a single file. The format of this file is a s Each grouping section contains N string definitions. These string definitions start with the string key placed within a single pair of square brackets. This string definition then contains a number of key-value pairs, including a comment, a comma-separated list of tags (which are used by Twine to select a subset of strings), and all of the translations. +### Placeholders + +Twine supports [`printf` style placeholders](https://en.wikipedia.org/wiki/Printf_format_string) with one peculiarity: `@` is used for strings instead of `s`. + ### Tags Tags are used by Twine as a way to only work with a subset of your strings at any given point in time. Each string can be assigned zero or more tags which are separated by commas. Tags are optional, though highly recommended. You can get a list of all strings currently missing tags by executing the `validate-strings-file` command.