Skip to content

Instantly share code, notes, and snippets.

@zbraniecki
Last active October 5, 2017 20:05
Show Gist options
  • Save zbraniecki/1a273839a8babbfb0d938070d85cacfc to your computer and use it in GitHub Desktop.
Save zbraniecki/1a273839a8babbfb0d938070d85cacfc to your computer and use it in GitHub Desktop.
FTL ∞
key = Value
.attr = Attribute
.attr2 = Attribute 2
key.attr = Attribute
key.attr2 = Attribute 2
key
.attr = Attribute
.attr2 = Attribute 2
key =
Multiline
Value
key
.attr = Attribute
.attr2 = Attribute 2
# File wide comment
key = Value
key =
Value
# Message comment
key =
Multiline
value
# Because multiline values must start with a blank line
# and multiline values cannot be followed by attributes
# there is no problem with `.` sign at the beginning of a multiline
key =
This is a message with a
. at the beginning of the line
or a
# sign and it all works
because they're not significant.
same with
[ sign and the closing ] for example.
which are just part of a message.
The only significant sign it \{ and \n\r\t\l stuff
# key = Value
key = """ Leading and trailing space are meaningful here """
key = """
All white spaces around this message
Are actually meaningful
"""
key = This is a { $placeable }
key =
A placeable in
{ $foo } multiline
works just fine
key.attr = Placeable in { $foo } attribute works
key = { $var ->
[one] Variant 1
*[other] Variant 2
}
key =
{ $ var ->
[one] Variant 1
*[other] Variant 2
}
key = { $var ->
[one] Multiline
message can work
*[other] Inside
a variant
}
# Super complex example!
key = { $var ->
[one] Let's try { $var2 ->
[masculine] Mascline
*[feminie] Feminine
} example
*[other] Multiline message
with some placeable { $var2 ->
[masculine] Also
*[feminine] works
} quite well.
}
key
.attr = Attribute
.attr2 = Attribute 2
# flattened nested
key = { $var, $var2 ->
[one, masculine] Masculine
[one, feminine] Feminine
*[other] And this is for other
}
-private-message = Value
key = { -private-message }
key2 = { -private-message -> {
*[one] Foo
}
## This is a section
key = value
## Another section
## This is a section comment.
##
## Sections are used for grouping messages,
## assigning comments to the whole group,
## and aiding CAT tools in presenting groups
## of messages together.
key = Value 2
key2 = Value 3
# @gender: masculine
brand-name = {
*[nominative] Firefox
[declarative] Firefoksa
}
key = Używam { brand-name[@gender] ->
[masculine] go
[feminine] jej
*[other] { $brand-name[declarative] }
}
key = {
[one] Variant 1
*[other] Variant 2
}
key.attr = {
[one] Variant 1
*[other] Variant 2
}
key = Value
.attr = {
[one] Variant 1
*[other] Variant 2
}
.attr2 = {
*[one] Variant 1
[other] Variant 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment