diff options
author | Joris | 2016-08-21 14:30:40 +0200 |
---|---|---|
committer | Joris | 2016-08-21 14:30:40 +0200 |
commit | 75804df1cb231033f94183e41cdf79d36d8f6710 (patch) | |
tree | 48b7932285091fdbdaba6d77586859c1e1750ce0 /src/client/elm/View/Plural.elm | |
parent | 3889d21ab58fbbc0134854b95013196a82e8d510 (diff) |
Show a message if there is an error during a server request
Diffstat (limited to 'src/client/elm/View/Plural.elm')
-rw-r--r-- | src/client/elm/View/Plural.elm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/elm/View/Plural.elm b/src/client/elm/View/Plural.elm index ab91f06..c36eaca 100644 --- a/src/client/elm/View/Plural.elm +++ b/src/client/elm/View/Plural.elm @@ -6,6 +6,6 @@ import Model.Translations exposing (Translations, getMessage) plural : Translations -> Int -> String -> String -> String plural translations n single multiple = - let singleMessage = getMessage single translations - multipleMessage = getMessage multiple translations + let singleMessage = getMessage translations single + multipleMessage = getMessage translations multiple in (toString n) ++ " " ++ if n <= 1 then singleMessage else multipleMessage |