From ae6d93e07025034836a398bb6506a1bb5ab978f3 Mon Sep 17 00:00:00 2001 From: AlexisL61 Date: Tue, 18 Jun 2024 23:01:15 +0200 Subject: [PATCH] feat: Add english translations for the tall tales --- api/activities.json | 12 ++-- api/translations/en.json | 66 ++++++++++++++++++- .../discord/rich_presence_service.dart | 9 +-- 3 files changed, 76 insertions(+), 11 deletions(-) diff --git a/api/activities.json b/api/activities.json index 8a6f8d7..c7fae7e 100644 --- a/api/activities.json +++ b/api/activities.json @@ -740,7 +740,7 @@ { "id": "the_lair_of_lechuck", "name": "_the_lair_of_lechuck", - "image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/The_Lair_of_LeChuck.webp", + "image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/The_Lair_of_LeChuck.png", "length": 5, "description": "_the_lair_of_lechuck_description", "rpc": "_the_lair_of_lechuck_rpc" @@ -802,7 +802,7 @@ { "id": "the_seabound_soul", "name": "_the_seabound_soul", - "image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/The_Seabound_Soul.jpg", + "image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/Seabound_Soul.jpg", "length": 5, "description": "_the_seabound_soul_description", "rpc": "_the_seabound_soul_rpc" @@ -887,12 +887,12 @@ "rpc": "_revenge_of_the_morningstar_rpc" }, { - "id": "shores_of_gold", - "name": "_shores_of_gold", + "id": "shores_of_gold_tall_tale", + "name": "_shores_of_gold_tall_tale", "image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/Shores_of_Gold.webp", "length": 5, - "description": "_shores_of_gold_description", - "rpc": "_shores_of_gold_rpc" + "description": "_shores_of_gold_tall_tale_description", + "rpc": "_shores_of_gold_tall_tale_rpc" } ] } diff --git a/api/translations/en.json b/api/translations/en.json index 12f45a8..593c1bc 100644 --- a/api/translations/en.json +++ b/api/translations/en.json @@ -203,5 +203,69 @@ "_fishing_category": "Fishing", "_a_fishing_voyage": "Fishing", "_a_fishing_voyage_description": "Catch fish and deliver them to the Hunter's Call.", - "_a_fishing_voyage_rpc": "Catching fish" + "_a_fishing_voyage_rpc": "Catching fish", + + "_tall_tales": "Tall Tales", + "_the_legend_of_monkey_island": "The Legend of Monkey Island", + "_the_journey_to_melee_island": "The Journey to Melee Island", + "_the_journey_to_melee_island_description": "Embark on a legendary voyage to Melee.", + "_the_journey_to_melee_island_rpc": "In a tall tale : The Journey to Melee Island", + "_the_quest_for_guybrush": "The Quest for Guybrush", + "_the_quest_for_guybrush_description": "Embark on a mission to wake up Guybrush.", + "_the_quest_for_guybrush_rpc": "In a tall tale : The Quest for Guybrush", + "_the_lair_of_lechuck": "The Lair of LeChuck", + "_the_lair_of_lechuck_description": "Embark on a mission to defeat LeChuck.", + "_the_lair_of_lechuck_rpc": "In a tall tale : The Lair of LeChuck", + "_a_pirates_life": "A Pirate's Life", + "_a_pirates_life_tall_tale": "A Pirate's Life", + "_a_pirates_life_tall_tale_description": "Embark on a legendary voyage to find the Captain Jack Sparrow.", + "_a_pirates_life_tall_tale_rpc": "In a tall tale : A Pirate's Life", + "_the_sunken_pearl": "The Sunken Pearl", + "_the_sunken_pearl_description": "Embark on a mission to find the Sunken Pearl.", + "_the_sunken_pearl_rpc": "In a tall tale : The Sunken Pearl", + "_captain_of_the_damned": "Captain of the Damned", + "_captain_of_the_damned_description": "Embark on a mission to (finally) find Captain Jack Sparrow.", + "_captain_of_the_damned_rpc": "In a tall tale : Captain of the Damned", + "_dark_brethern": "Dark Brethern", + "_dark_brethern_description": "Embark on a mission to uncover the truth behind the sirens.", + "_dark_brethern_rpc": "In a tall tale : Dark Brethern", + "_lords_of_the_sea": "Lords of the Sea", + "_lords_of_the_sea_description": "Embark on a mission to defeat the dark brethern.", + "_lords_of_the_sea_rpc": "In a tall tale : Loards of the Sea", + "_ashen_age": "Ashen Age", + "_the_seabound_soul": "The Seabound Soul", + "_the_seabound_soul_description": "Help pendragon in his quest", + "_the_seabound_soul_rpc": "In a tall tale : The Seabound Soul", + "_heart_of_fire": "Heart of Fire", + "_heart_of_fire_description": "Embark on a mission to find the crew of pendragon.", + "_heart_of_fire_rpc": "In a tall tale : Heart of Fire", + "_shores_of_gold": "Shores of Gold", + "_the_shroudbreaker": "The Shroudbreaker", + "_the_shroudbreaker_description": "Embark on a mission to find the shroudbreaker.", + "_the_shroudbreaker_rpc": "In a tall tale : The Shroudbreaker", + "_the_cursed_rogue": "The Cursed Rogue", + "_the_cursed_rogue_description": "Embark on a mission to defeat the cursed rogue.", + "_the_cursed_rogue_rpc": "In a tall tale : The Cursed Rogue", + "_the_legendary_storyteller": "The Legendary Storyteller", + "_the_legendary_storyteller_description": "Embark on a mission to solve the tales of captain Briggsy.", + "_the_legendary_storyteller_rpc": "In a tall tale : The Legendary Storyteller", + "_stars_of_a_thief": "Stars of a Thief", + "_stars_of_a_thief_description": "Embark on a mission to uncover an hidden Shroudbreaker gem.", + "_stars_of_a_thief_rpc": "In a tall tale : Stars of a Thief", + "_wild_rose": "Wild Rose", + "_wild_rose_description": "Embark on a mission to find the love of George and Rose.", + "_wild_rose_rpc": "In a tall tale : Wild Rose", + "_the_art_of_the_trickster": "The Art of the Trickster", + "_the_art_of_the_trickster_description": "Embark on a mission to find the hidden Shroudbreaker gem.", + "_the_art_of_the_trickster_rpc": "In a tall tale : The Art of the Trickster", + "_the_fate_of_the_morningstar": "The Fate of the Morningstar", + "_the_fate_of_the_morningstar_description": "Embark on a mission to learn the story behind the morning star.", + "_the_fate_of_the_morningstar_rpc": "In a tall tale : The Fate of the Morningstar", + "_the_revenge_of_the_morningstar": "The Revenge of the Morningstar", + "_the_revenge_of_the_morningstar_description": "Embark on a mission to defeat the morning star.", + "_the_revenge_of_the_morningstar_rpc": "In a tall tale : The Revenge of the Morningstar", + "_the_shores_of_gold_tall_tale": "The Shores of Gold", + "_the_shores_of_gold_tall_tale_description": "Embark on a mission to find the shores of gold.", + "_the_shores_of_gold_tall_tale_rpc": "In a tall tale : The Shores of Gold" + } \ No newline at end of file diff --git a/sot_richpresence/lib/services/discord/rich_presence_service.dart b/sot_richpresence/lib/services/discord/rich_presence_service.dart index 9c0a61a..a54aa02 100644 --- a/sot_richpresence/lib/services/discord/rich_presence_service.dart +++ b/sot_richpresence/lib/services/discord/rich_presence_service.dart @@ -1,5 +1,6 @@ import 'package:dart_discord_rpc/dart_discord_rpc.dart'; import 'package:easy_localization/easy_localization.dart'; +import 'package:sot_richpresence/models/ship/ship_type.dart'; import 'package:sot_richpresence/models/user_data/user_data.dart'; import 'package:sot_richpresence/services/translations/translations_service.dart'; @@ -21,7 +22,7 @@ class RichPresenceService { "players": UserData().drivenShip!.players.toString(), "max_players": UserData().drivenShip!.maxPlayers.toString() }), - smallImageKey: UserData().drivenShip!.name, + smallImageKey: UserData().drivenShip!.type.image, smallImageText: tr("_${UserData().drivenShip!.name}_name"), startTimeStamp: DateTime.now().millisecondsSinceEpoch, )); @@ -35,9 +36,9 @@ class RichPresenceService { "players": UserData().drivenShip!.players.toString(), "max_players": UserData().drivenShip!.maxPlayers.toString(), }), - smallImageKey: UserData().drivenShip!.name, + smallImageKey: UserData().drivenShip!.type.image, smallImageText: tr("_${UserData().drivenShip!.name}_name"), - largeImageKey: UserData().activity!.id, + largeImageKey: UserData().activity!.image, largeImageText: onlineTr(UserData().activity!.name), startTimeStamp: DateTime.now().millisecondsSinceEpoch, )); @@ -46,7 +47,7 @@ class RichPresenceService { static void rpcForActivityOnly() { _discordRPC.updatePresence(DiscordPresence( details: onlineTr(UserData().activity!.rpc), - largeImageKey: UserData().activity!.id, + largeImageKey: UserData().activity!.image, largeImageText: onlineTr(UserData().activity!.name), startTimeStamp: DateTime.now().millisecondsSinceEpoch, ));