From 855423a125e0fd011082062671f47cc6bbf7ea3a Mon Sep 17 00:00:00 2001 From: Gareth Latty Date: Sat, 30 May 2020 01:44:17 +0100 Subject: [PATCH] Add references to status/updates twitter. --- README.md | 5 ++++- client/src/elm/MassiveDecks/Error/Overlay.elm | 1 + client/src/elm/MassiveDecks/Strings.elm | 2 ++ client/src/elm/MassiveDecks/Strings/Languages/En.elm | 6 ++++++ client/src/elm/MassiveDecks/Strings/Languages/It.elm | 8 ++++++++ .../src/elm/MassiveDecks/Strings/Languages/PtBR.elm | 11 ++++++++++- client/src/elm/MassiveDecks/Strings/Render.elm | 4 ++++ 7 files changed, 35 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a207786..a8b8f31 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://img.shields.io/github/workflow/status/Lattyware/massivedecks/Build%20and%20publish%20docker%20images.)](https://github.com/Lattyware/massivedecks/actions) [![License](https://img.shields.io/github/license/Lattyware/massivedecks)](LICENSE) +[![Follow on Twitter for Status & Updates](https://img.shields.io/twitter/follow/Massive_Decks?label=Status%20%26%20Updates&style=social)][twitter] Massive Decks is a free, open source comedy party game based on [Cards against Humanity][cah]. Play with friends! @@ -9,11 +10,12 @@ Massive Decks is a free, open source comedy party game based on [Cards against H [hosted]: https://md.rereadgames.com/ [cah]: https://cardsagainsthumanity.com/ +[twitter]: https://twitter.com/Massive_Decks ## Features - Play together in the same room or online. - - Use any device (Mobile phone, PC, Chromecast, anything with a web browser). + - Use any device (Phone, PC, Chromecast, anything with a web browser). - You can set up a central screen, but you don't need to (no need to stream anything for other players online). - Custom decks (via [Many Decks][many-decks]). - Customise the rules: @@ -23,6 +25,7 @@ Massive Decks is a free, open source comedy party game based on [Cards against H - Custom time limits if you want them. - Spectators. - Keeps your game private by default, you can also set a game password if needed. + - Community translations. [many-decks]: https://decks.rereadgames.com/ diff --git a/client/src/elm/MassiveDecks/Error/Overlay.elm b/client/src/elm/MassiveDecks/Error/Overlay.elm index 4c2ad89..bebd46b 100644 --- a/client/src/elm/MassiveDecks/Error/Overlay.elm +++ b/client/src/elm/MassiveDecks/Error/Overlay.elm @@ -42,6 +42,7 @@ view shared route model = , Card.view [ HtmlA.class "help" ] [ Html.h3 [] [ Lang.html shared Strings.ErrorHelpTitle ] , Html.p [] [ Lang.html shared Strings.ErrorHelp ] + , Html.p [] [ Lang.html shared Strings.ErrorCheckOutOfBand ] ] , Html.div [ HtmlA.class "errors" ] (List.map (Error.view shared route) model.errors) ] diff --git a/client/src/elm/MassiveDecks/Strings.elm b/client/src/elm/MassiveDecks/Strings.elm index c3ace60..5a54bbb 100644 --- a/client/src/elm/MassiveDecks/Strings.elm +++ b/client/src/elm/MassiveDecks/Strings.elm @@ -309,6 +309,8 @@ type MdString | Error -- A title for a generic error (something having gone wrong). | ErrorHelp -- A message telling the user that an error has occurred and what to do. | ErrorHelpTitle -- A title saying something went wrong. + | ErrorCheckOutOfBand -- A message to check the twitter account for more information on the service's status. + | TwitterHandle -- A description of the twitter account. | ReportError -- The action to report an error with the application to a developer. | ReportErrorDescription -- A description of the action of reporting an error to a developer. | ReportErrorBody -- An explanation of how to report an error to the developer. diff --git a/client/src/elm/MassiveDecks/Strings/Languages/En.elm b/client/src/elm/MassiveDecks/Strings/Languages/En.elm index 9c4c5df..a894126 100644 --- a/client/src/elm/MassiveDecks/Strings/Languages/En.elm +++ b/client/src/elm/MassiveDecks/Strings/Languages/En.elm @@ -1070,6 +1070,12 @@ translate mdString = ErrorHelpTitle -> [ Text "Sorry, something went wrong." ] + ErrorCheckOutOfBand -> + [ Text "Please check ", Ref TwitterHandle, Text " for updates and service status. The game server will go down for a short time when a new version is released, so if you see a recent update, try again in a few minutes." ] + + TwitterHandle -> + [ Text "@Massive_Decks" ] + ReportError -> [ Text "Report Bug" ] diff --git a/client/src/elm/MassiveDecks/Strings/Languages/It.elm b/client/src/elm/MassiveDecks/Strings/Languages/It.elm index 90e751d..e87beab 100644 --- a/client/src/elm/MassiveDecks/Strings/Languages/It.elm +++ b/client/src/elm/MassiveDecks/Strings/Languages/It.elm @@ -1105,6 +1105,14 @@ translate mdString = ErrorHelpTitle -> [ Text "Spiacenti, qualcosa è andato storto." ] + -- TODO: Translate + ErrorCheckOutOfBand -> + [ Missing ] + + -- TODO: Translate + TwitterHandle -> + [ Missing ] + ReportError -> [ Text "Segnala bug" ] diff --git a/client/src/elm/MassiveDecks/Strings/Languages/PtBR.elm b/client/src/elm/MassiveDecks/Strings/Languages/PtBR.elm index daabc5e..4b6e640 100644 --- a/client/src/elm/MassiveDecks/Strings/Languages/PtBR.elm +++ b/client/src/elm/MassiveDecks/Strings/Languages/PtBR.elm @@ -313,7 +313,8 @@ translate mdString = HouseRuleNeverHaveIEverDescription -> [ Text "A qualquer momento, um jogador pode descartar as cartas que ele não entende, porém, ele deve confessar sua " - , Text "ignorância: a carta é compartilhada publicamente." ] + , Text "ignorância: a carta é compartilhada publicamente." + ] MustBeMoreThanOrEqualValidationError { min } -> [ Text "O valor deve ser ao menos ", Text (String.fromInt min), Text "." ] @@ -1084,6 +1085,14 @@ translate mdString = ErrorHelpTitle -> [ Text "Desculpe, algo de errado não está certo." ] + -- TODO: Translate + ErrorCheckOutOfBand -> + [ Missing ] + + -- TODO: Translate + TwitterHandle -> + [ Missing ] + ReportError -> [ Text "Reportar Bug" ] diff --git a/client/src/elm/MassiveDecks/Strings/Render.elm b/client/src/elm/MassiveDecks/Strings/Render.elm index a3872de..e1f92ee 100644 --- a/client/src/elm/MassiveDecks/Strings/Render.elm +++ b/client/src/elm/MassiveDecks/Strings/Render.elm @@ -1,5 +1,6 @@ module MassiveDecks.Strings.Render exposing (asHtml, asString) +import FontAwesome.Brands as Icon import FontAwesome.Icon as Icon exposing (Icon) import FontAwesome.Solid as Icon import Html as Html exposing (Html) @@ -221,6 +222,9 @@ enhanceHtml context mdString unenhanced = TranslationBeg -> [ Html.blankA [ HtmlA.href "https://github.com/Lattyware/massivedecks/wiki/Translation" ] unenhanced ] + TwitterHandle -> + [ Html.blankA [ HtmlA.href "https://twitter.com/Massive_Decks" ] (suffixed unenhanced Icon.twitter) ] + Error -> prefixed unenhanced Icon.exclamationTriangle