From ffd26ebe9d5dfc398c9143dbdf1e54068a3bca22 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 7 Nov 2024 14:09:31 +0100 Subject: [PATCH 01/41] Added translation using Weblate (Spanish) Co-authored-by: RappyTV --- core/src/main/resources/assets/globaltags/i18n/es_es.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 core/src/main/resources/assets/globaltags/i18n/es_es.json diff --git a/core/src/main/resources/assets/globaltags/i18n/es_es.json b/core/src/main/resources/assets/globaltags/i18n/es_es.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/core/src/main/resources/assets/globaltags/i18n/es_es.json @@ -0,0 +1 @@ +{} From 7683052e556a81eb4d4f73aec0753ffbf8def839 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 7 Nov 2024 14:09:36 +0100 Subject: [PATCH 02/41] Translated using Weblate (Spanish) Currently translated at 0.0% (0 of 113 strings) Co-authored-by: Prefill add-on Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/es/ Translation: GlobalTags/LabyAddon --- .../assets/globaltags/i18n/es_es.json | 200 +++++++++++++++++- 1 file changed, 199 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/es_es.json b/core/src/main/resources/assets/globaltags/i18n/es_es.json index 0967ef4..218fd9f 100644 --- a/core/src/main/resources/assets/globaltags/i18n/es_es.json +++ b/core/src/main/resources/assets/globaltags/i18n/es_es.json @@ -1 +1,199 @@ -{} +{ + "globaltags": { + "settings": { + "tags": { + "position": { + "name": "Global position", + "entries": { + "left": "Left to name", + "below": "Below name", + "right": "Right to name", + "above": "Above name" + }, + "description": "Your tag is visible in this position to everyone." + }, + "globalIcon": { + "entries": { + "statsfm": "StatsFM", + "x": "x", + "epicgames": "Epic Games", + "apple": "Apple", + "ebio": "e.bio", + "discord": "Discord", + "kick": "Kick", + "star": "Star", + "android": "Android", + "snapchat": "Snapchat", + "telegram": "Telegram", + "crown": "Crown", + "twitch": "Twitch", + "soundcloud": "Soundcloud", + "custom": "Custom", + "steam": "Steam", + "none": "None", + "labynet": "laby.net", + "xbox": "Xbox", + "reddit": "Reddit", + "pinterest": "Pinterest", + "paypal": "PayPal", + "heart": "Heart", + "gamescom": "Gamescom", + "threads": "Threads", + "tiktok": "TikTok", + "duolingo": "Luodingo", + "github": "GitHub", + "gitlab": "GitLab", + "instagram": "Instagram", + "spotify": "Spotify", + "bereal": "BeReal.", + "playstation": "Playstation", + "youtube": "YouTube" + }, + "description": "This icon will be displayed left to your tag globally.", + "name": "Global icon" + }, + "resetTag": { + "text": "Delete", + "name": "Delete global tag" + }, + "tagPreview": { + "appeal": { + "popup": { + "label": "Why should we unban you?", + "placeholder": "Please enter a reason...", + "button": "Send appeal" + }, + "description": "⚠ This button will only be clickable if your suspension is appealable.", + "name": "Appeal" + }, + "name": "Tag Preview", + "emptyReason": "No reason provided", + "noInfo": "Couldn't fetch account info!", + "labyConnect": "You're not connected to LabyConnect!", + "empty": "", + "banned": "Your account is suspended!\nReason: %s" + }, + "tag": { + "name": "Global tag" + }, + "updateSettings": { + "result": "Tag: %s\nPosition: %s\nIcon: %s", + "text": "Update", + "unchanged": "Unchanged", + "name": "Publish settings" + }, + "name": "Global tag settings", + "staged": { + "title": "Staged changes.", + "description": "Click on the \"Publish settings\" button to publish changes!" + } + }, + "clearCache": { + "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", + "name": "Clear cache", + "text": "Clear" + }, + "localizedResponses": { + "name": "Localize API responses", + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + }, + "joinDiscord": { + "text": "Join", + "name": "Discord Server" + }, + "showBackground": { + "name": "Show background", + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + }, + "header": { + "tags": { + "name": "Tag settings" + }, + "display": { + "name": "Display settings" + } + }, + "tagSize": { + "name": "Tag size" + }, + "name": "Global Tags", + "showOwnTag": { + "name": "Show own tag" + }, + "enabled": { + "name": "Enabled" + } + }, + "context": { + "ban": { + "send": "Ban", + "title": "Ban %s", + "name": "Ban GlobalTag player" + }, + "editBan": { + "appealable": "Appealable", + "name": "Edit GlobalTag ban", + "send": "Submit changes", + "title": "Edit %s's ban" + }, + "report": { + "send": "Send report", + "name": "Report GlobalTag", + "title": "Report %s" + }, + "reason": "Reason", + "changeTag": { + "placeholder": "Enter the updated GlobalTag...", + "name": "Change GlobalTag", + "label": "New GlobalTag", + "send": "Update Tag", + "title": "Change %s's Tag" + }, + "unban": { + "title": "Unban %s", + "name": "Unban GlobalTag player", + "send": "Unban" + }, + "clearTag": { + "name": "Clear GlobalTag" + }, + "referral": { + "name": "This player invited me to GlobalTags" + }, + "placeholder": "Please enter a reason..." + }, + "commands": { + "link": { + "email": { + "verify": "Verify email", + "hover": "Click to enter verification code" + }, + "discord": { + "copied": "The code was copied to your clipboard!" + } + }, + "base": { + "clear_cache": { + "label": "Clear cache", + "hover": "Click here to clear the tag cache!" + }, + "version": "Addon Version: %s", + "api": { + "offline": "Connection failed!", + "version": "API Version: %s" + } + }, + "usage": "Usage: %s", + "clear_cache": { + "success": "The cache was cleared!" + }, + "renew_cache": { + "success": "The cache was renewed!" + } + }, + "general": { + "error": "An error ocurred", + "success": "Success!" + } + } +} From dcabfaa568d747129dd02122a0de6518877dc267 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 7 Nov 2024 15:45:17 +0100 Subject: [PATCH 03/41] Added translation using Weblate (German (Austria)) Added translation using Weblate (Bavarian) Co-authored-by: Languages add-on Co-authored-by: Weblate --- core/src/main/resources/assets/globaltags/i18n/bar.json | 1 + core/src/main/resources/assets/globaltags/i18n/de_at.json | 1 + 2 files changed, 2 insertions(+) create mode 100644 core/src/main/resources/assets/globaltags/i18n/bar.json create mode 100644 core/src/main/resources/assets/globaltags/i18n/de_at.json diff --git a/core/src/main/resources/assets/globaltags/i18n/bar.json b/core/src/main/resources/assets/globaltags/i18n/bar.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/core/src/main/resources/assets/globaltags/i18n/bar.json @@ -0,0 +1 @@ +{} diff --git a/core/src/main/resources/assets/globaltags/i18n/de_at.json b/core/src/main/resources/assets/globaltags/i18n/de_at.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/core/src/main/resources/assets/globaltags/i18n/de_at.json @@ -0,0 +1 @@ +{} From fc799ff72cd469e442068774f2a2d74676ac4fc2 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 7 Nov 2024 15:45:22 +0100 Subject: [PATCH 04/41] Added translation using Weblate (Icelandic) Co-authored-by: Languages add-on --- core/src/main/resources/assets/globaltags/i18n/is_is.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 core/src/main/resources/assets/globaltags/i18n/is_is.json diff --git a/core/src/main/resources/assets/globaltags/i18n/is_is.json b/core/src/main/resources/assets/globaltags/i18n/is_is.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/core/src/main/resources/assets/globaltags/i18n/is_is.json @@ -0,0 +1 @@ +{} From 503c093cfdb7a61d7437d773c1c49c71e523abb7 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 7 Nov 2024 15:45:28 +0100 Subject: [PATCH 05/41] =?UTF-8?q?Added=20translation=20using=20Weblate=20(?= =?UTF-8?q?Norwegian=20Bokm=C3=A5l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Languages add-on --- core/src/main/resources/assets/globaltags/i18n/no_no.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 core/src/main/resources/assets/globaltags/i18n/no_no.json diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -0,0 +1 @@ +{} From 29d4a95187b325dc9b98feed588abd97a3a6fcef Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 7 Nov 2024 15:45:34 +0100 Subject: [PATCH 06/41] Added translation using Weblate (Polish) Co-authored-by: Languages add-on --- core/src/main/resources/assets/globaltags/i18n/pl_pl.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 core/src/main/resources/assets/globaltags/i18n/pl_pl.json diff --git a/core/src/main/resources/assets/globaltags/i18n/pl_pl.json b/core/src/main/resources/assets/globaltags/i18n/pl_pl.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/core/src/main/resources/assets/globaltags/i18n/pl_pl.json @@ -0,0 +1 @@ +{} From 0450020b738244631be7b61f018145f9d3ba4336 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 7 Nov 2024 15:45:52 +0100 Subject: [PATCH 07/41] =?UTF-8?q?Translated=20using=20Weblate=20(Norwegian?= =?UTF-8?q?=20Bokm=C3=A5l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (Polish) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (German (Austria)) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (Icelandic) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (Bavarian) Currently translated at 0.0% (0 of 113 strings) Co-authored-by: Prefill add-on Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/bar/ Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/de_AT/ Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/is/ Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/nb_NO/ Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/pl/ Translation: GlobalTags/LabyAddon --- .../resources/assets/globaltags/i18n/bar.json | 200 +++++++++++++++++- .../assets/globaltags/i18n/de_at.json | 200 +++++++++++++++++- .../assets/globaltags/i18n/is_is.json | 200 +++++++++++++++++- .../assets/globaltags/i18n/no_no.json | 200 +++++++++++++++++- .../assets/globaltags/i18n/pl_pl.json | 200 +++++++++++++++++- 5 files changed, 995 insertions(+), 5 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/bar.json b/core/src/main/resources/assets/globaltags/i18n/bar.json index 0967ef4..866d1e0 100644 --- a/core/src/main/resources/assets/globaltags/i18n/bar.json +++ b/core/src/main/resources/assets/globaltags/i18n/bar.json @@ -1 +1,199 @@ -{} +{ + "globaltags": { + "context": { + "ban": { + "send": "Ban", + "title": "Ban %s", + "name": "Ban GlobalTag player" + }, + "editBan": { + "appealable": "Appealable", + "name": "Edit GlobalTag ban", + "send": "Submit changes", + "title": "Edit %s's ban" + }, + "report": { + "send": "Send report", + "name": "Report GlobalTag", + "title": "Report %s" + }, + "reason": "Reason", + "changeTag": { + "placeholder": "Enter the updated GlobalTag...", + "name": "Change GlobalTag", + "label": "New GlobalTag", + "send": "Update Tag", + "title": "Change %s's Tag" + }, + "unban": { + "title": "Unban %s", + "name": "Unban GlobalTag player", + "send": "Unban" + }, + "clearTag": { + "name": "Clear GlobalTag" + }, + "referral": { + "name": "This player invited me to GlobalTags" + }, + "placeholder": "Please enter a reason..." + }, + "settings": { + "tags": { + "globalIcon": { + "entries": { + "statsfm": "StatsFM", + "x": "x", + "epicgames": "Epic Games", + "apple": "Apple", + "ebio": "e.bio", + "discord": "Discord", + "kick": "Kick", + "star": "Star", + "android": "Android", + "snapchat": "Snapchat", + "telegram": "Telegram", + "crown": "Crown", + "twitch": "Twitch", + "soundcloud": "Soundcloud", + "custom": "Custom", + "steam": "Steam", + "none": "None", + "labynet": "laby.net", + "xbox": "Xbox", + "reddit": "Reddit", + "pinterest": "Pinterest", + "paypal": "PayPal", + "heart": "Heart", + "gamescom": "Gamescom", + "threads": "Threads", + "tiktok": "TikTok", + "duolingo": "Luodingo", + "github": "GitHub", + "gitlab": "GitLab", + "instagram": "Instagram", + "spotify": "Spotify", + "bereal": "BeReal.", + "playstation": "Playstation", + "youtube": "YouTube" + }, + "description": "This icon will be displayed left to your tag globally.", + "name": "Global icon" + }, + "position": { + "entries": { + "left": "Left to name", + "below": "Below name", + "right": "Right to name", + "above": "Above name" + }, + "description": "Your tag is visible in this position to everyone.", + "name": "Global position" + }, + "tagPreview": { + "appeal": { + "popup": { + "label": "Why should we unban you?", + "placeholder": "Please enter a reason...", + "button": "Send appeal" + }, + "description": "⚠ This button will only be clickable if your suspension is appealable.", + "name": "Appeal" + }, + "name": "Tag Preview", + "emptyReason": "No reason provided", + "noInfo": "Couldn't fetch account info!", + "labyConnect": "You're not connected to LabyConnect!", + "empty": "", + "banned": "Your account is suspended!\nReason: %s" + }, + "resetTag": { + "name": "Delete global tag", + "text": "Delete" + }, + "tag": { + "name": "Global tag" + }, + "updateSettings": { + "result": "Tag: %s\nPosition: %s\nIcon: %s", + "text": "Update", + "unchanged": "Unchanged", + "name": "Publish settings" + }, + "name": "Global tag settings", + "staged": { + "title": "Staged changes.", + "description": "Click on the \"Publish settings\" button to publish changes!" + } + }, + "clearCache": { + "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", + "name": "Clear cache", + "text": "Clear" + }, + "localizedResponses": { + "name": "Localize API responses", + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + }, + "joinDiscord": { + "text": "Join", + "name": "Discord Server" + }, + "showBackground": { + "name": "Show background", + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + }, + "header": { + "tags": { + "name": "Tag settings" + }, + "display": { + "name": "Display settings" + } + }, + "tagSize": { + "name": "Tag size" + }, + "name": "Global Tags", + "showOwnTag": { + "name": "Show own tag" + }, + "enabled": { + "name": "Enabled" + } + }, + "commands": { + "link": { + "email": { + "verify": "Verify email", + "hover": "Click to enter verification code" + }, + "discord": { + "copied": "The code was copied to your clipboard!" + } + }, + "base": { + "clear_cache": { + "label": "Clear cache", + "hover": "Click here to clear the tag cache!" + }, + "version": "Addon Version: %s", + "api": { + "offline": "Connection failed!", + "version": "API Version: %s" + } + }, + "usage": "Usage: %s", + "clear_cache": { + "success": "The cache was cleared!" + }, + "renew_cache": { + "success": "The cache was renewed!" + } + }, + "general": { + "error": "An error ocurred", + "success": "Success!" + } + } +} diff --git a/core/src/main/resources/assets/globaltags/i18n/de_at.json b/core/src/main/resources/assets/globaltags/i18n/de_at.json index 0967ef4..45c4206 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_at.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_at.json @@ -1 +1,199 @@ -{} +{ + "globaltags": { + "settings": { + "tags": { + "globalIcon": { + "entries": { + "statsfm": "StatsFM", + "x": "x", + "epicgames": "Epic Games", + "apple": "Apple", + "ebio": "e.bio", + "discord": "Discord", + "kick": "Kick", + "star": "Star", + "android": "Android", + "snapchat": "Snapchat", + "telegram": "Telegram", + "crown": "Crown", + "twitch": "Twitch", + "soundcloud": "Soundcloud", + "custom": "Custom", + "steam": "Steam", + "none": "None", + "labynet": "laby.net", + "xbox": "Xbox", + "reddit": "Reddit", + "pinterest": "Pinterest", + "paypal": "PayPal", + "heart": "Heart", + "gamescom": "Gamescom", + "threads": "Threads", + "tiktok": "TikTok", + "duolingo": "Luodingo", + "github": "GitHub", + "gitlab": "GitLab", + "instagram": "Instagram", + "spotify": "Spotify", + "bereal": "BeReal.", + "playstation": "Playstation", + "youtube": "YouTube" + }, + "description": "This icon will be displayed left to your tag globally.", + "name": "Global icon" + }, + "position": { + "entries": { + "left": "Left to name", + "below": "Below name", + "right": "Right to name", + "above": "Above name" + }, + "description": "Your tag is visible in this position to everyone.", + "name": "Global position" + }, + "tagPreview": { + "appeal": { + "popup": { + "label": "Why should we unban you?", + "placeholder": "Please enter a reason...", + "button": "Send appeal" + }, + "description": "⚠ This button will only be clickable if your suspension is appealable.", + "name": "Appeal" + }, + "name": "Tag Preview", + "emptyReason": "No reason provided", + "noInfo": "Couldn't fetch account info!", + "labyConnect": "You're not connected to LabyConnect!", + "empty": "", + "banned": "Your account is suspended!\nReason: %s" + }, + "resetTag": { + "name": "Delete global tag", + "text": "Delete" + }, + "tag": { + "name": "Global tag" + }, + "updateSettings": { + "result": "Tag: %s\nPosition: %s\nIcon: %s", + "text": "Update", + "unchanged": "Unchanged", + "name": "Publish settings" + }, + "name": "Global tag settings", + "staged": { + "title": "Staged changes.", + "description": "Click on the \"Publish settings\" button to publish changes!" + } + }, + "clearCache": { + "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", + "name": "Clear cache", + "text": "Clear" + }, + "localizedResponses": { + "name": "Localize API responses", + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + }, + "joinDiscord": { + "text": "Join", + "name": "Discord Server" + }, + "showBackground": { + "name": "Show background", + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + }, + "header": { + "tags": { + "name": "Tag settings" + }, + "display": { + "name": "Display settings" + } + }, + "tagSize": { + "name": "Tag size" + }, + "name": "Global Tags", + "showOwnTag": { + "name": "Show own tag" + }, + "enabled": { + "name": "Enabled" + } + }, + "context": { + "ban": { + "send": "Ban", + "title": "Ban %s", + "name": "Ban GlobalTag player" + }, + "editBan": { + "appealable": "Appealable", + "name": "Edit GlobalTag ban", + "send": "Submit changes", + "title": "Edit %s's ban" + }, + "report": { + "send": "Send report", + "name": "Report GlobalTag", + "title": "Report %s" + }, + "reason": "Reason", + "changeTag": { + "placeholder": "Enter the updated GlobalTag...", + "name": "Change GlobalTag", + "label": "New GlobalTag", + "send": "Update Tag", + "title": "Change %s's Tag" + }, + "unban": { + "title": "Unban %s", + "name": "Unban GlobalTag player", + "send": "Unban" + }, + "clearTag": { + "name": "Clear GlobalTag" + }, + "referral": { + "name": "This player invited me to GlobalTags" + }, + "placeholder": "Please enter a reason..." + }, + "commands": { + "link": { + "email": { + "verify": "Verify email", + "hover": "Click to enter verification code" + }, + "discord": { + "copied": "The code was copied to your clipboard!" + } + }, + "base": { + "clear_cache": { + "label": "Clear cache", + "hover": "Click here to clear the tag cache!" + }, + "version": "Addon Version: %s", + "api": { + "offline": "Connection failed!", + "version": "API Version: %s" + } + }, + "usage": "Usage: %s", + "clear_cache": { + "success": "The cache was cleared!" + }, + "renew_cache": { + "success": "The cache was renewed!" + } + }, + "general": { + "error": "An error ocurred", + "success": "Success!" + } + } +} diff --git a/core/src/main/resources/assets/globaltags/i18n/is_is.json b/core/src/main/resources/assets/globaltags/i18n/is_is.json index 0967ef4..45c4206 100644 --- a/core/src/main/resources/assets/globaltags/i18n/is_is.json +++ b/core/src/main/resources/assets/globaltags/i18n/is_is.json @@ -1 +1,199 @@ -{} +{ + "globaltags": { + "settings": { + "tags": { + "globalIcon": { + "entries": { + "statsfm": "StatsFM", + "x": "x", + "epicgames": "Epic Games", + "apple": "Apple", + "ebio": "e.bio", + "discord": "Discord", + "kick": "Kick", + "star": "Star", + "android": "Android", + "snapchat": "Snapchat", + "telegram": "Telegram", + "crown": "Crown", + "twitch": "Twitch", + "soundcloud": "Soundcloud", + "custom": "Custom", + "steam": "Steam", + "none": "None", + "labynet": "laby.net", + "xbox": "Xbox", + "reddit": "Reddit", + "pinterest": "Pinterest", + "paypal": "PayPal", + "heart": "Heart", + "gamescom": "Gamescom", + "threads": "Threads", + "tiktok": "TikTok", + "duolingo": "Luodingo", + "github": "GitHub", + "gitlab": "GitLab", + "instagram": "Instagram", + "spotify": "Spotify", + "bereal": "BeReal.", + "playstation": "Playstation", + "youtube": "YouTube" + }, + "description": "This icon will be displayed left to your tag globally.", + "name": "Global icon" + }, + "position": { + "entries": { + "left": "Left to name", + "below": "Below name", + "right": "Right to name", + "above": "Above name" + }, + "description": "Your tag is visible in this position to everyone.", + "name": "Global position" + }, + "tagPreview": { + "appeal": { + "popup": { + "label": "Why should we unban you?", + "placeholder": "Please enter a reason...", + "button": "Send appeal" + }, + "description": "⚠ This button will only be clickable if your suspension is appealable.", + "name": "Appeal" + }, + "name": "Tag Preview", + "emptyReason": "No reason provided", + "noInfo": "Couldn't fetch account info!", + "labyConnect": "You're not connected to LabyConnect!", + "empty": "", + "banned": "Your account is suspended!\nReason: %s" + }, + "resetTag": { + "name": "Delete global tag", + "text": "Delete" + }, + "tag": { + "name": "Global tag" + }, + "updateSettings": { + "result": "Tag: %s\nPosition: %s\nIcon: %s", + "text": "Update", + "unchanged": "Unchanged", + "name": "Publish settings" + }, + "name": "Global tag settings", + "staged": { + "title": "Staged changes.", + "description": "Click on the \"Publish settings\" button to publish changes!" + } + }, + "clearCache": { + "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", + "name": "Clear cache", + "text": "Clear" + }, + "localizedResponses": { + "name": "Localize API responses", + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + }, + "joinDiscord": { + "text": "Join", + "name": "Discord Server" + }, + "showBackground": { + "name": "Show background", + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + }, + "header": { + "tags": { + "name": "Tag settings" + }, + "display": { + "name": "Display settings" + } + }, + "tagSize": { + "name": "Tag size" + }, + "name": "Global Tags", + "showOwnTag": { + "name": "Show own tag" + }, + "enabled": { + "name": "Enabled" + } + }, + "context": { + "ban": { + "send": "Ban", + "title": "Ban %s", + "name": "Ban GlobalTag player" + }, + "editBan": { + "appealable": "Appealable", + "name": "Edit GlobalTag ban", + "send": "Submit changes", + "title": "Edit %s's ban" + }, + "report": { + "send": "Send report", + "name": "Report GlobalTag", + "title": "Report %s" + }, + "reason": "Reason", + "changeTag": { + "placeholder": "Enter the updated GlobalTag...", + "name": "Change GlobalTag", + "label": "New GlobalTag", + "send": "Update Tag", + "title": "Change %s's Tag" + }, + "unban": { + "title": "Unban %s", + "name": "Unban GlobalTag player", + "send": "Unban" + }, + "clearTag": { + "name": "Clear GlobalTag" + }, + "referral": { + "name": "This player invited me to GlobalTags" + }, + "placeholder": "Please enter a reason..." + }, + "commands": { + "link": { + "email": { + "verify": "Verify email", + "hover": "Click to enter verification code" + }, + "discord": { + "copied": "The code was copied to your clipboard!" + } + }, + "base": { + "clear_cache": { + "label": "Clear cache", + "hover": "Click here to clear the tag cache!" + }, + "version": "Addon Version: %s", + "api": { + "offline": "Connection failed!", + "version": "API Version: %s" + } + }, + "usage": "Usage: %s", + "clear_cache": { + "success": "The cache was cleared!" + }, + "renew_cache": { + "success": "The cache was renewed!" + } + }, + "general": { + "error": "An error ocurred", + "success": "Success!" + } + } +} diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json index 0967ef4..45c4206 100644 --- a/core/src/main/resources/assets/globaltags/i18n/no_no.json +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -1 +1,199 @@ -{} +{ + "globaltags": { + "settings": { + "tags": { + "globalIcon": { + "entries": { + "statsfm": "StatsFM", + "x": "x", + "epicgames": "Epic Games", + "apple": "Apple", + "ebio": "e.bio", + "discord": "Discord", + "kick": "Kick", + "star": "Star", + "android": "Android", + "snapchat": "Snapchat", + "telegram": "Telegram", + "crown": "Crown", + "twitch": "Twitch", + "soundcloud": "Soundcloud", + "custom": "Custom", + "steam": "Steam", + "none": "None", + "labynet": "laby.net", + "xbox": "Xbox", + "reddit": "Reddit", + "pinterest": "Pinterest", + "paypal": "PayPal", + "heart": "Heart", + "gamescom": "Gamescom", + "threads": "Threads", + "tiktok": "TikTok", + "duolingo": "Luodingo", + "github": "GitHub", + "gitlab": "GitLab", + "instagram": "Instagram", + "spotify": "Spotify", + "bereal": "BeReal.", + "playstation": "Playstation", + "youtube": "YouTube" + }, + "description": "This icon will be displayed left to your tag globally.", + "name": "Global icon" + }, + "position": { + "entries": { + "left": "Left to name", + "below": "Below name", + "right": "Right to name", + "above": "Above name" + }, + "description": "Your tag is visible in this position to everyone.", + "name": "Global position" + }, + "tagPreview": { + "appeal": { + "popup": { + "label": "Why should we unban you?", + "placeholder": "Please enter a reason...", + "button": "Send appeal" + }, + "description": "⚠ This button will only be clickable if your suspension is appealable.", + "name": "Appeal" + }, + "name": "Tag Preview", + "emptyReason": "No reason provided", + "noInfo": "Couldn't fetch account info!", + "labyConnect": "You're not connected to LabyConnect!", + "empty": "", + "banned": "Your account is suspended!\nReason: %s" + }, + "resetTag": { + "name": "Delete global tag", + "text": "Delete" + }, + "tag": { + "name": "Global tag" + }, + "updateSettings": { + "result": "Tag: %s\nPosition: %s\nIcon: %s", + "text": "Update", + "unchanged": "Unchanged", + "name": "Publish settings" + }, + "name": "Global tag settings", + "staged": { + "title": "Staged changes.", + "description": "Click on the \"Publish settings\" button to publish changes!" + } + }, + "clearCache": { + "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", + "name": "Clear cache", + "text": "Clear" + }, + "localizedResponses": { + "name": "Localize API responses", + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + }, + "joinDiscord": { + "text": "Join", + "name": "Discord Server" + }, + "showBackground": { + "name": "Show background", + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + }, + "header": { + "tags": { + "name": "Tag settings" + }, + "display": { + "name": "Display settings" + } + }, + "tagSize": { + "name": "Tag size" + }, + "name": "Global Tags", + "showOwnTag": { + "name": "Show own tag" + }, + "enabled": { + "name": "Enabled" + } + }, + "context": { + "ban": { + "send": "Ban", + "title": "Ban %s", + "name": "Ban GlobalTag player" + }, + "editBan": { + "appealable": "Appealable", + "name": "Edit GlobalTag ban", + "send": "Submit changes", + "title": "Edit %s's ban" + }, + "report": { + "send": "Send report", + "name": "Report GlobalTag", + "title": "Report %s" + }, + "reason": "Reason", + "changeTag": { + "placeholder": "Enter the updated GlobalTag...", + "name": "Change GlobalTag", + "label": "New GlobalTag", + "send": "Update Tag", + "title": "Change %s's Tag" + }, + "unban": { + "title": "Unban %s", + "name": "Unban GlobalTag player", + "send": "Unban" + }, + "clearTag": { + "name": "Clear GlobalTag" + }, + "referral": { + "name": "This player invited me to GlobalTags" + }, + "placeholder": "Please enter a reason..." + }, + "commands": { + "link": { + "email": { + "verify": "Verify email", + "hover": "Click to enter verification code" + }, + "discord": { + "copied": "The code was copied to your clipboard!" + } + }, + "base": { + "clear_cache": { + "label": "Clear cache", + "hover": "Click here to clear the tag cache!" + }, + "version": "Addon Version: %s", + "api": { + "offline": "Connection failed!", + "version": "API Version: %s" + } + }, + "usage": "Usage: %s", + "clear_cache": { + "success": "The cache was cleared!" + }, + "renew_cache": { + "success": "The cache was renewed!" + } + }, + "general": { + "error": "An error ocurred", + "success": "Success!" + } + } +} diff --git a/core/src/main/resources/assets/globaltags/i18n/pl_pl.json b/core/src/main/resources/assets/globaltags/i18n/pl_pl.json index 0967ef4..45c4206 100644 --- a/core/src/main/resources/assets/globaltags/i18n/pl_pl.json +++ b/core/src/main/resources/assets/globaltags/i18n/pl_pl.json @@ -1 +1,199 @@ -{} +{ + "globaltags": { + "settings": { + "tags": { + "globalIcon": { + "entries": { + "statsfm": "StatsFM", + "x": "x", + "epicgames": "Epic Games", + "apple": "Apple", + "ebio": "e.bio", + "discord": "Discord", + "kick": "Kick", + "star": "Star", + "android": "Android", + "snapchat": "Snapchat", + "telegram": "Telegram", + "crown": "Crown", + "twitch": "Twitch", + "soundcloud": "Soundcloud", + "custom": "Custom", + "steam": "Steam", + "none": "None", + "labynet": "laby.net", + "xbox": "Xbox", + "reddit": "Reddit", + "pinterest": "Pinterest", + "paypal": "PayPal", + "heart": "Heart", + "gamescom": "Gamescom", + "threads": "Threads", + "tiktok": "TikTok", + "duolingo": "Luodingo", + "github": "GitHub", + "gitlab": "GitLab", + "instagram": "Instagram", + "spotify": "Spotify", + "bereal": "BeReal.", + "playstation": "Playstation", + "youtube": "YouTube" + }, + "description": "This icon will be displayed left to your tag globally.", + "name": "Global icon" + }, + "position": { + "entries": { + "left": "Left to name", + "below": "Below name", + "right": "Right to name", + "above": "Above name" + }, + "description": "Your tag is visible in this position to everyone.", + "name": "Global position" + }, + "tagPreview": { + "appeal": { + "popup": { + "label": "Why should we unban you?", + "placeholder": "Please enter a reason...", + "button": "Send appeal" + }, + "description": "⚠ This button will only be clickable if your suspension is appealable.", + "name": "Appeal" + }, + "name": "Tag Preview", + "emptyReason": "No reason provided", + "noInfo": "Couldn't fetch account info!", + "labyConnect": "You're not connected to LabyConnect!", + "empty": "", + "banned": "Your account is suspended!\nReason: %s" + }, + "resetTag": { + "name": "Delete global tag", + "text": "Delete" + }, + "tag": { + "name": "Global tag" + }, + "updateSettings": { + "result": "Tag: %s\nPosition: %s\nIcon: %s", + "text": "Update", + "unchanged": "Unchanged", + "name": "Publish settings" + }, + "name": "Global tag settings", + "staged": { + "title": "Staged changes.", + "description": "Click on the \"Publish settings\" button to publish changes!" + } + }, + "clearCache": { + "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", + "name": "Clear cache", + "text": "Clear" + }, + "localizedResponses": { + "name": "Localize API responses", + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + }, + "joinDiscord": { + "text": "Join", + "name": "Discord Server" + }, + "showBackground": { + "name": "Show background", + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + }, + "header": { + "tags": { + "name": "Tag settings" + }, + "display": { + "name": "Display settings" + } + }, + "tagSize": { + "name": "Tag size" + }, + "name": "Global Tags", + "showOwnTag": { + "name": "Show own tag" + }, + "enabled": { + "name": "Enabled" + } + }, + "context": { + "ban": { + "send": "Ban", + "title": "Ban %s", + "name": "Ban GlobalTag player" + }, + "editBan": { + "appealable": "Appealable", + "name": "Edit GlobalTag ban", + "send": "Submit changes", + "title": "Edit %s's ban" + }, + "report": { + "send": "Send report", + "name": "Report GlobalTag", + "title": "Report %s" + }, + "reason": "Reason", + "changeTag": { + "placeholder": "Enter the updated GlobalTag...", + "name": "Change GlobalTag", + "label": "New GlobalTag", + "send": "Update Tag", + "title": "Change %s's Tag" + }, + "unban": { + "title": "Unban %s", + "name": "Unban GlobalTag player", + "send": "Unban" + }, + "clearTag": { + "name": "Clear GlobalTag" + }, + "referral": { + "name": "This player invited me to GlobalTags" + }, + "placeholder": "Please enter a reason..." + }, + "commands": { + "link": { + "email": { + "verify": "Verify email", + "hover": "Click to enter verification code" + }, + "discord": { + "copied": "The code was copied to your clipboard!" + } + }, + "base": { + "clear_cache": { + "label": "Clear cache", + "hover": "Click here to clear the tag cache!" + }, + "version": "Addon Version: %s", + "api": { + "offline": "Connection failed!", + "version": "API Version: %s" + } + }, + "usage": "Usage: %s", + "clear_cache": { + "success": "The cache was cleared!" + }, + "renew_cache": { + "success": "The cache was renewed!" + } + }, + "general": { + "error": "An error ocurred", + "success": "Success!" + } + } +} From bf6daa37e97aaa601ef0692c16ec1a420a2a5ef3 Mon Sep 17 00:00:00 2001 From: Weblate Date: Sat, 9 Nov 2024 23:24:59 +0100 Subject: [PATCH 08/41] Added translation using Weblate (Russian) Co-authored-by: RappyTV --- core/src/main/resources/assets/globaltags/i18n/ru_ru.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 core/src/main/resources/assets/globaltags/i18n/ru_ru.json diff --git a/core/src/main/resources/assets/globaltags/i18n/ru_ru.json b/core/src/main/resources/assets/globaltags/i18n/ru_ru.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/core/src/main/resources/assets/globaltags/i18n/ru_ru.json @@ -0,0 +1 @@ +{} From 460d6913e74e0680b9928ecc0956dc4f88b7ee17 Mon Sep 17 00:00:00 2001 From: Prefill add-on Date: Sat, 9 Nov 2024 22:25:01 +0000 Subject: [PATCH 09/41] Translated using Weblate (Russian) Currently translated at 0.0% (0 of 113 strings) Translation: GlobalTags/LabyAddon Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/ru/ --- .../assets/globaltags/i18n/ru_ru.json | 200 +++++++++++++++++- 1 file changed, 199 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/ru_ru.json b/core/src/main/resources/assets/globaltags/i18n/ru_ru.json index 0967ef4..45c4206 100644 --- a/core/src/main/resources/assets/globaltags/i18n/ru_ru.json +++ b/core/src/main/resources/assets/globaltags/i18n/ru_ru.json @@ -1 +1,199 @@ -{} +{ + "globaltags": { + "settings": { + "tags": { + "globalIcon": { + "entries": { + "statsfm": "StatsFM", + "x": "x", + "epicgames": "Epic Games", + "apple": "Apple", + "ebio": "e.bio", + "discord": "Discord", + "kick": "Kick", + "star": "Star", + "android": "Android", + "snapchat": "Snapchat", + "telegram": "Telegram", + "crown": "Crown", + "twitch": "Twitch", + "soundcloud": "Soundcloud", + "custom": "Custom", + "steam": "Steam", + "none": "None", + "labynet": "laby.net", + "xbox": "Xbox", + "reddit": "Reddit", + "pinterest": "Pinterest", + "paypal": "PayPal", + "heart": "Heart", + "gamescom": "Gamescom", + "threads": "Threads", + "tiktok": "TikTok", + "duolingo": "Luodingo", + "github": "GitHub", + "gitlab": "GitLab", + "instagram": "Instagram", + "spotify": "Spotify", + "bereal": "BeReal.", + "playstation": "Playstation", + "youtube": "YouTube" + }, + "description": "This icon will be displayed left to your tag globally.", + "name": "Global icon" + }, + "position": { + "entries": { + "left": "Left to name", + "below": "Below name", + "right": "Right to name", + "above": "Above name" + }, + "description": "Your tag is visible in this position to everyone.", + "name": "Global position" + }, + "tagPreview": { + "appeal": { + "popup": { + "label": "Why should we unban you?", + "placeholder": "Please enter a reason...", + "button": "Send appeal" + }, + "description": "⚠ This button will only be clickable if your suspension is appealable.", + "name": "Appeal" + }, + "name": "Tag Preview", + "emptyReason": "No reason provided", + "noInfo": "Couldn't fetch account info!", + "labyConnect": "You're not connected to LabyConnect!", + "empty": "", + "banned": "Your account is suspended!\nReason: %s" + }, + "resetTag": { + "name": "Delete global tag", + "text": "Delete" + }, + "tag": { + "name": "Global tag" + }, + "updateSettings": { + "result": "Tag: %s\nPosition: %s\nIcon: %s", + "text": "Update", + "unchanged": "Unchanged", + "name": "Publish settings" + }, + "name": "Global tag settings", + "staged": { + "title": "Staged changes.", + "description": "Click on the \"Publish settings\" button to publish changes!" + } + }, + "clearCache": { + "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", + "name": "Clear cache", + "text": "Clear" + }, + "localizedResponses": { + "name": "Localize API responses", + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + }, + "joinDiscord": { + "text": "Join", + "name": "Discord Server" + }, + "showBackground": { + "name": "Show background", + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + }, + "header": { + "tags": { + "name": "Tag settings" + }, + "display": { + "name": "Display settings" + } + }, + "tagSize": { + "name": "Tag size" + }, + "name": "Global Tags", + "showOwnTag": { + "name": "Show own tag" + }, + "enabled": { + "name": "Enabled" + } + }, + "context": { + "ban": { + "send": "Ban", + "title": "Ban %s", + "name": "Ban GlobalTag player" + }, + "editBan": { + "appealable": "Appealable", + "name": "Edit GlobalTag ban", + "send": "Submit changes", + "title": "Edit %s's ban" + }, + "report": { + "send": "Send report", + "name": "Report GlobalTag", + "title": "Report %s" + }, + "reason": "Reason", + "changeTag": { + "placeholder": "Enter the updated GlobalTag...", + "name": "Change GlobalTag", + "label": "New GlobalTag", + "send": "Update Tag", + "title": "Change %s's Tag" + }, + "unban": { + "title": "Unban %s", + "name": "Unban GlobalTag player", + "send": "Unban" + }, + "clearTag": { + "name": "Clear GlobalTag" + }, + "referral": { + "name": "This player invited me to GlobalTags" + }, + "placeholder": "Please enter a reason..." + }, + "commands": { + "link": { + "email": { + "verify": "Verify email", + "hover": "Click to enter verification code" + }, + "discord": { + "copied": "The code was copied to your clipboard!" + } + }, + "base": { + "clear_cache": { + "label": "Clear cache", + "hover": "Click here to clear the tag cache!" + }, + "version": "Addon Version: %s", + "api": { + "offline": "Connection failed!", + "version": "API Version: %s" + } + }, + "usage": "Usage: %s", + "clear_cache": { + "success": "The cache was cleared!" + }, + "renew_cache": { + "success": "The cache was renewed!" + } + }, + "general": { + "error": "An error ocurred", + "success": "Success!" + } + } +} From d9f6e78d25aecf3aec296370f20391d31202edc2 Mon Sep 17 00:00:00 2001 From: Weblate Date: Mon, 11 Nov 2024 00:00:01 +0100 Subject: [PATCH 10/41] Translated using Weblate (German) Currently translated at 99.1% (112 of 113 strings) Translated using Weblate (English) Currently translated at 100.0% (113 of 113 strings) Co-authored-by: RappyTV Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/de/ Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/en/ Translation: GlobalTags/LabyAddon --- .../main/resources/assets/globaltags/i18n/de_de.json | 8 ++++---- .../main/resources/assets/globaltags/i18n/en_us.json | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/de_de.json b/core/src/main/resources/assets/globaltags/i18n/de_de.json index 974940f..b8d672d 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_de.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_de.json @@ -49,7 +49,7 @@ "description": "⚠️ Dieser Button ist nur klickbar, wenn du Entbannungsanträge stellen darfst.", "popup": { "label": "Warum sollten wir dich entbannen?", - "placeholder": "Bitte gebe einen Grund an...", + "placeholder": "Bitte gebe einen Grund an…", "button": "Antrag senden" } } @@ -134,7 +134,7 @@ "version": "Addon Version: %s", "api": { "version": "API Version: %s", - "offline": "Verbindung Fehlgeschlagen!" + "offline": "Verbindung fehlgeschlagen!" }, "clear_cache": { "label": "Cache leeren", @@ -159,7 +159,7 @@ }, "context": { "reason": "Grund", - "placeholder": "Bitte gib einen Grund an...", + "placeholder": "Bitte gib einen Grund an…", "referral": { "name": "Dieser Spieler hat mich zu GlobalTags eingeladen" }, @@ -188,7 +188,7 @@ "name": "GlobalTag ändern", "title": "Ändere den Tag von %s", "label": "Neuer GlobalTag", - "placeholder": "Gib den aktualisierten GlobalTag ein...", + "placeholder": "Gib den aktualisierten GlobalTag ein…", "send": "Tag aktualisieren" }, "clearTag": { diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index 9939ba7..fb39cae 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -34,7 +34,7 @@ "tags": { "name": "Global tag settings", "staged": { - "title": "Staged changes.", + "title": "Staged changes", "description": "Click on the \"Publish settings\" button to publish changes!" }, "tagPreview": { @@ -49,7 +49,7 @@ "description": "⚠ This button will only be clickable if your suspension is appealable.", "popup": { "label": "Why should we unban you?", - "placeholder": "Please enter a reason...", + "placeholder": "Please enter a reason…", "button": "Send appeal" } } @@ -159,7 +159,7 @@ }, "context": { "reason": "Reason", - "placeholder": "Please enter a reason...", + "placeholder": "Please enter a reason…", "referral": { "name": "This player invited me to GlobalTags" }, @@ -188,7 +188,7 @@ "name": "Change GlobalTag", "title": "Change %s's Tag", "label": "New GlobalTag", - "placeholder": "Enter the updated GlobalTag...", + "placeholder": "Enter the updated GlobalTag…", "send": "Update Tag" }, "clearTag": { @@ -196,4 +196,4 @@ } } } -} \ No newline at end of file +} From 2ba54e160bcc5e10e3af237247b91bae870054b5 Mon Sep 17 00:00:00 2001 From: Weblate Date: Tue, 12 Nov 2024 23:23:57 +0100 Subject: [PATCH 11/41] Translated using Weblate (Dutch) Currently translated at 0.0% (0 of 113 strings) Added translation using Weblate (Dutch) Co-authored-by: Prefill add-on Co-authored-by: RappyTV Co-authored-by: Weblate Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/nl/ Translation: GlobalTags/LabyAddon --- .../assets/globaltags/i18n/nl_nl.json | 199 ++++++++++++++++++ 1 file changed, 199 insertions(+) create mode 100644 core/src/main/resources/assets/globaltags/i18n/nl_nl.json diff --git a/core/src/main/resources/assets/globaltags/i18n/nl_nl.json b/core/src/main/resources/assets/globaltags/i18n/nl_nl.json new file mode 100644 index 0000000..b39a4ee --- /dev/null +++ b/core/src/main/resources/assets/globaltags/i18n/nl_nl.json @@ -0,0 +1,199 @@ +{ + "globaltags": { + "settings": { + "tags": { + "globalIcon": { + "entries": { + "statsfm": "StatsFM", + "x": "x", + "epicgames": "Epic Games", + "apple": "Apple", + "ebio": "e.bio", + "discord": "Discord", + "kick": "Kick", + "star": "Star", + "android": "Android", + "snapchat": "Snapchat", + "telegram": "Telegram", + "crown": "Crown", + "twitch": "Twitch", + "soundcloud": "Soundcloud", + "custom": "Custom", + "steam": "Steam", + "none": "None", + "labynet": "laby.net", + "xbox": "Xbox", + "reddit": "Reddit", + "pinterest": "Pinterest", + "paypal": "PayPal", + "heart": "Heart", + "gamescom": "Gamescom", + "threads": "Threads", + "tiktok": "TikTok", + "duolingo": "Luodingo", + "github": "GitHub", + "gitlab": "GitLab", + "instagram": "Instagram", + "spotify": "Spotify", + "bereal": "BeReal.", + "playstation": "Playstation", + "youtube": "YouTube" + }, + "description": "This icon will be displayed left to your tag globally.", + "name": "Global icon" + }, + "position": { + "entries": { + "left": "Left to name", + "below": "Below name", + "right": "Right to name", + "above": "Above name" + }, + "description": "Your tag is visible in this position to everyone.", + "name": "Global position" + }, + "tagPreview": { + "appeal": { + "popup": { + "label": "Why should we unban you?", + "placeholder": "Please enter a reason…", + "button": "Send appeal" + }, + "description": "⚠ This button will only be clickable if your suspension is appealable.", + "name": "Appeal" + }, + "name": "Tag Preview", + "emptyReason": "No reason provided", + "noInfo": "Couldn't fetch account info!", + "labyConnect": "You're not connected to LabyConnect!", + "empty": "", + "banned": "Your account is suspended!\nReason: %s" + }, + "resetTag": { + "name": "Delete global tag", + "text": "Delete" + }, + "tag": { + "name": "Global tag" + }, + "updateSettings": { + "result": "Tag: %s\nPosition: %s\nIcon: %s", + "text": "Update", + "unchanged": "Unchanged", + "name": "Publish settings" + }, + "name": "Global tag settings", + "staged": { + "title": "Staged changes", + "description": "Click on the \"Publish settings\" button to publish changes!" + } + }, + "clearCache": { + "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", + "name": "Clear cache", + "text": "Clear" + }, + "localizedResponses": { + "name": "Localize API responses", + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + }, + "joinDiscord": { + "text": "Join", + "name": "Discord Server" + }, + "showBackground": { + "name": "Show background", + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + }, + "header": { + "tags": { + "name": "Tag settings" + }, + "display": { + "name": "Display settings" + } + }, + "tagSize": { + "name": "Tag size" + }, + "name": "Global Tags", + "showOwnTag": { + "name": "Show own tag" + }, + "enabled": { + "name": "Enabled" + } + }, + "context": { + "ban": { + "send": "Ban", + "title": "Ban %s", + "name": "Ban GlobalTag player" + }, + "editBan": { + "appealable": "Appealable", + "name": "Edit GlobalTag ban", + "send": "Submit changes", + "title": "Edit %s's ban" + }, + "report": { + "send": "Send report", + "name": "Report GlobalTag", + "title": "Report %s" + }, + "reason": "Reason", + "changeTag": { + "placeholder": "Enter the updated GlobalTag…", + "name": "Change GlobalTag", + "label": "New GlobalTag", + "send": "Update Tag", + "title": "Change %s's Tag" + }, + "unban": { + "title": "Unban %s", + "name": "Unban GlobalTag player", + "send": "Unban" + }, + "clearTag": { + "name": "Clear GlobalTag" + }, + "referral": { + "name": "This player invited me to GlobalTags" + }, + "placeholder": "Please enter a reason…" + }, + "commands": { + "link": { + "email": { + "verify": "Verify email", + "hover": "Click to enter verification code" + }, + "discord": { + "copied": "The code was copied to your clipboard!" + } + }, + "base": { + "clear_cache": { + "label": "Clear cache", + "hover": "Click here to clear the tag cache!" + }, + "version": "Addon Version: %s", + "api": { + "offline": "Connection failed!", + "version": "API Version: %s" + } + }, + "usage": "Usage: %s", + "clear_cache": { + "success": "The cache was cleared!" + }, + "renew_cache": { + "success": "The cache was renewed!" + } + }, + "general": { + "error": "An error ocurred", + "success": "Success!" + } + } +} From 5c0e28c71eca173d4e69c2c5cbddf066b882d27c Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 14 Nov 2024 00:00:03 +0100 Subject: [PATCH 12/41] =?UTF-8?q?Translated=20using=20Weblate=20(Norwegian?= =?UTF-8?q?=20Bokm=C3=A5l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 9.7% (11 of 113 strings) Co-authored-by: Kubii Translate-URL: http://translator.rappytv.com/projects/globaltags/labyaddon/nb_NO/ Translation: GlobalTags/LabyAddon --- .../assets/globaltags/i18n/no_no.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json index 45c4206..5bc430f 100644 --- a/core/src/main/resources/assets/globaltags/i18n/no_no.json +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -102,26 +102,26 @@ "name": "Discord Server" }, "showBackground": { - "name": "Show background", + "name": "Vis bakgrunn", "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." }, "header": { "tags": { - "name": "Tag settings" + "name": "Taginnstillinger" }, "display": { - "name": "Display settings" + "name": "Visningsinnstillinger" } }, "tagSize": { - "name": "Tag size" + "name": "Tagstørrelse" }, "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, "enabled": { - "name": "Enabled" + "name": "Aktivert" } }, "context": { @@ -165,8 +165,8 @@ "commands": { "link": { "email": { - "verify": "Verify email", - "hover": "Click to enter verification code" + "verify": "Bekreft e-post", + "hover": "Klikk for å skrive inn bekreftelsekode" }, "discord": { "copied": "The code was copied to your clipboard!" @@ -179,11 +179,11 @@ }, "version": "Addon Version: %s", "api": { - "offline": "Connection failed!", - "version": "API Version: %s" + "offline": "Koblingsfeil!", + "version": "API Versjon: %s" } }, - "usage": "Usage: %s", + "usage": "Bruk: %s", "clear_cache": { "success": "The cache was cleared!" }, From 12f6bba9433ccf9ecf903d388572b68bcbb59f2e Mon Sep 17 00:00:00 2001 From: Weblate Date: Sun, 17 Nov 2024 14:29:24 +0100 Subject: [PATCH 13/41] Translated using Weblate (English) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 100.0% (113 of 113 strings) Translated using Weblate (Dutch) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (Russian) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (Spanish) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (Bavarian) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 9.7% (11 of 113 strings) Translated using Weblate (German) Currently translated at 100.0% (113 of 113 strings) Translated using Weblate (Polish) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (German (Austria)) Currently translated at 0.0% (0 of 113 strings) Translated using Weblate (Icelandic) Currently translated at 0.0% (0 of 113 strings) Co-authored-by: RappyTV Co-authored-by: Weblate Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/bar/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/de/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/de_AT/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/en/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/es/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/is/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/nb_NO/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/nl/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/pl/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/ru/ Translation: GlobalTags/LabyAddon --- core/src/main/resources/assets/globaltags/i18n/bar.json | 1 - core/src/main/resources/assets/globaltags/i18n/de_at.json | 1 - core/src/main/resources/assets/globaltags/i18n/de_de.json | 1 - core/src/main/resources/assets/globaltags/i18n/en_us.json | 1 - core/src/main/resources/assets/globaltags/i18n/es_es.json | 1 - core/src/main/resources/assets/globaltags/i18n/is_is.json | 1 - core/src/main/resources/assets/globaltags/i18n/nl_nl.json | 1 - core/src/main/resources/assets/globaltags/i18n/no_no.json | 1 - core/src/main/resources/assets/globaltags/i18n/pl_pl.json | 1 - core/src/main/resources/assets/globaltags/i18n/ru_ru.json | 1 - 10 files changed, 10 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/bar.json b/core/src/main/resources/assets/globaltags/i18n/bar.json index 866d1e0..4d89768 100644 --- a/core/src/main/resources/assets/globaltags/i18n/bar.json +++ b/core/src/main/resources/assets/globaltags/i18n/bar.json @@ -154,7 +154,6 @@ "tagSize": { "name": "Tag size" }, - "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, diff --git a/core/src/main/resources/assets/globaltags/i18n/de_at.json b/core/src/main/resources/assets/globaltags/i18n/de_at.json index 45c4206..b8576bc 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_at.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_at.json @@ -116,7 +116,6 @@ "tagSize": { "name": "Tag size" }, - "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, diff --git a/core/src/main/resources/assets/globaltags/i18n/de_de.json b/core/src/main/resources/assets/globaltags/i18n/de_de.json index b8d672d..4211fdd 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_de.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_de.json @@ -1,7 +1,6 @@ { "globaltags": { "settings": { - "name": "Global Tags", "header": { "display": { "name": "Anzeigeeinstellungen" diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index fb39cae..b826b8b 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -1,7 +1,6 @@ { "globaltags": { "settings": { - "name": "Global Tags", "header": { "display": { "name": "Display settings" diff --git a/core/src/main/resources/assets/globaltags/i18n/es_es.json b/core/src/main/resources/assets/globaltags/i18n/es_es.json index 218fd9f..b2f5bb2 100644 --- a/core/src/main/resources/assets/globaltags/i18n/es_es.json +++ b/core/src/main/resources/assets/globaltags/i18n/es_es.json @@ -116,7 +116,6 @@ "tagSize": { "name": "Tag size" }, - "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, diff --git a/core/src/main/resources/assets/globaltags/i18n/is_is.json b/core/src/main/resources/assets/globaltags/i18n/is_is.json index 45c4206..b8576bc 100644 --- a/core/src/main/resources/assets/globaltags/i18n/is_is.json +++ b/core/src/main/resources/assets/globaltags/i18n/is_is.json @@ -116,7 +116,6 @@ "tagSize": { "name": "Tag size" }, - "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, diff --git a/core/src/main/resources/assets/globaltags/i18n/nl_nl.json b/core/src/main/resources/assets/globaltags/i18n/nl_nl.json index b39a4ee..07052a5 100644 --- a/core/src/main/resources/assets/globaltags/i18n/nl_nl.json +++ b/core/src/main/resources/assets/globaltags/i18n/nl_nl.json @@ -116,7 +116,6 @@ "tagSize": { "name": "Tag size" }, - "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json index 5bc430f..e7b5e09 100644 --- a/core/src/main/resources/assets/globaltags/i18n/no_no.json +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -116,7 +116,6 @@ "tagSize": { "name": "Tagstørrelse" }, - "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, diff --git a/core/src/main/resources/assets/globaltags/i18n/pl_pl.json b/core/src/main/resources/assets/globaltags/i18n/pl_pl.json index 45c4206..b8576bc 100644 --- a/core/src/main/resources/assets/globaltags/i18n/pl_pl.json +++ b/core/src/main/resources/assets/globaltags/i18n/pl_pl.json @@ -116,7 +116,6 @@ "tagSize": { "name": "Tag size" }, - "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, diff --git a/core/src/main/resources/assets/globaltags/i18n/ru_ru.json b/core/src/main/resources/assets/globaltags/i18n/ru_ru.json index 45c4206..b8576bc 100644 --- a/core/src/main/resources/assets/globaltags/i18n/ru_ru.json +++ b/core/src/main/resources/assets/globaltags/i18n/ru_ru.json @@ -116,7 +116,6 @@ "tagSize": { "name": "Tag size" }, - "name": "Global Tags", "showOwnTag": { "name": "Show own tag" }, From 4636f3ac39bfa44f8b13d3b81253c0b1954ec020 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Mon, 18 Nov 2024 00:02:56 +0100 Subject: [PATCH 14/41] Add custom wrapper maven repository --- build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 6683471..978ebdb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -32,6 +32,11 @@ labyMod { subprojects { plugins.apply("net.labymod.labygradle") plugins.apply("net.labymod.labygradle.addon") + group = rootProject.group version = rootProject.version + + repositories { + maven("https://repo.rappytv.com/public/") + } } \ No newline at end of file From 75e60f97c44c86958696257b535c91a06616f85b Mon Sep 17 00:00:00 2001 From: RappyTV Date: Mon, 18 Nov 2024 00:03:13 +0100 Subject: [PATCH 15/41] Bump GlobalTagsJava --- api/build.gradle.kts | 2 +- core/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/build.gradle.kts b/api/build.gradle.kts index 80821e8..5add4c5 100644 --- a/api/build.gradle.kts +++ b/api/build.gradle.kts @@ -3,7 +3,7 @@ import net.labymod.labygradle.common.extension.LabyModAnnotationProcessorExtensi dependencies { labyProcessor() labyApi("api") - addonMavenDependency("com.rappytv.globaltags:GlobalTagsJava:1.1.8") + addonMavenDependency("com.rappytv.globaltags:GlobalTagsJava:1.1.9") } labyModAnnotationProcessor { diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 8d58253..4a18570 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -3,7 +3,7 @@ import net.labymod.labygradle.common.extension.LabyModAnnotationProcessorExtensi dependencies { labyProcessor() api(project(":api")) - addonMavenDependency("com.rappytv.globaltags:GlobalTagsJava:1.1.8") + addonMavenDependency("com.rappytv.globaltags:GlobalTagsJava:1.1.9") } labyModAnnotationProcessor { From 7b4d6a15424abd4550c867b8ba929807b7d4a293 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Mon, 18 Nov 2024 00:06:49 +0100 Subject: [PATCH 16/41] Update version display request --- .../com/rappytv/globaltags/command/GlobalTagCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/rappytv/globaltags/command/GlobalTagCommand.java b/core/src/main/java/com/rappytv/globaltags/command/GlobalTagCommand.java index 93577e1..dd6b0a5 100644 --- a/core/src/main/java/com/rappytv/globaltags/command/GlobalTagCommand.java +++ b/core/src/main/java/com/rappytv/globaltags/command/GlobalTagCommand.java @@ -34,7 +34,7 @@ public GlobalTagCommand(GlobalTagAddon addon) { @Override public boolean execute(String prefix, String[] arguments) { - api.getApiHandler().getVersion((version) -> { + api.getApiHandler().getApiInfo((response) -> { TextComponent clearComponent = TextComponent.builder() .append(GlobalTagAddon.prefix) .append(Component.translatable( @@ -47,8 +47,8 @@ public boolean execute(String prefix, String[] arguments) { .append(Component.translatable( "globaltags.commands.base.api.version", NamedTextColor.GREEN, - version != null && version.successful() - ? Component.text(version.data(), NamedTextColor.AQUA) + response != null && response.successful() + ? Component.text(response.data(), NamedTextColor.AQUA) : Component.translatable( "globaltags.commands.base.api.offline", NamedTextColor.RED From 8b2e1bb60c6d50db01a32707bec229cbc436a29f Mon Sep 17 00:00:00 2001 From: RappyTV Date: Mon, 18 Nov 2024 00:39:09 +0100 Subject: [PATCH 17/41] Add staff note bullet point and empty activity --- .../rappytv/globaltags/GlobalTagAddon.java | 2 + .../activities/StaffNotesActivity.java | 29 +++++++++++ .../interaction/StaffNotesBulletPoint.java | 48 +++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java create mode 100644 core/src/main/java/com/rappytv/globaltags/interaction/StaffNotesBulletPoint.java diff --git a/core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java b/core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java index 1abd209..13b1c8e 100644 --- a/core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java +++ b/core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java @@ -5,6 +5,7 @@ import com.rappytv.globaltags.config.GlobalTagConfig; import com.rappytv.globaltags.interaction.EditBanInfoBulletPoint; import com.rappytv.globaltags.interaction.ReferPlayerBulletPoint; +import com.rappytv.globaltags.interaction.StaffNotesBulletPoint; import com.rappytv.globaltags.interaction.ToggleBanBulletPoint; import com.rappytv.globaltags.interaction.ChangeTagBulletPoint; import com.rappytv.globaltags.interaction.ClearTagBulletPoint; @@ -66,6 +67,7 @@ protected void enable() { labyAPI().interactionMenuRegistry().register(new EditBanInfoBulletPoint()); labyAPI().interactionMenuRegistry().register(new ReferPlayerBulletPoint()); labyAPI().interactionMenuRegistry().register(new ReportBulletPoint()); + labyAPI().interactionMenuRegistry().register(new StaffNotesBulletPoint()); labyAPI().interactionMenuRegistry().register(new ToggleBanBulletPoint()); registerCommand(new GlobalTagCommand(this)); } diff --git a/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java b/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java new file mode 100644 index 0000000..0d3dc70 --- /dev/null +++ b/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java @@ -0,0 +1,29 @@ +package com.rappytv.globaltags.activities; + +import com.rappytv.globaltags.api.GlobalTagAPI; +import net.labymod.api.client.gui.screen.Parent; +import net.labymod.api.client.gui.screen.activity.AutoActivity; +import net.labymod.api.client.gui.screen.activity.types.SimpleActivity; +import java.util.UUID; + +@AutoActivity +public class StaffNotesActivity extends SimpleActivity { + + private final GlobalTagAPI api; + private final UUID uuid; + private final String username; + + public StaffNotesActivity(GlobalTagAPI api, UUID uuid, String username) { + this.api = api; + this.uuid = uuid; + this.username = username; + } + + @Override + public void initialize(Parent parent) { + super.initialize(parent); + api.getApiHandler().getNotes(uuid, (response) -> { + // TODO: Implement activity + }); + } +} diff --git a/core/src/main/java/com/rappytv/globaltags/interaction/StaffNotesBulletPoint.java b/core/src/main/java/com/rappytv/globaltags/interaction/StaffNotesBulletPoint.java new file mode 100644 index 0000000..35d5de4 --- /dev/null +++ b/core/src/main/java/com/rappytv/globaltags/interaction/StaffNotesBulletPoint.java @@ -0,0 +1,48 @@ +package com.rappytv.globaltags.interaction; + +import com.rappytv.globaltags.GlobalTagAddon; +import com.rappytv.globaltags.activities.StaffNotesActivity; +import com.rappytv.globaltags.api.GlobalTagAPI; +import com.rappytv.globaltags.wrapper.enums.GlobalPermission; +import com.rappytv.globaltags.wrapper.model.PlayerInfo; +import net.labymod.api.Laby; +import net.labymod.api.client.component.Component; +import net.labymod.api.client.entity.player.Player; +import net.labymod.api.client.entity.player.interaction.BulletPoint; +import net.labymod.api.client.gui.icon.Icon; + +public class StaffNotesBulletPoint implements BulletPoint { + + private final GlobalTagAPI api; + + public StaffNotesBulletPoint() { + this.api = GlobalTagAddon.getAPI(); + } + + @Override + public Component getTitle() { + return Component.translatable("globaltags.context.staff_notes.name"); + } + + @Override + public Icon getIcon() { + return null; + } + + @Override + public void execute(Player player) { + Laby.labyAPI().minecraft().executeNextTick(() -> + Laby.labyAPI().minecraft().minecraftWindow().displayScreen(new StaffNotesActivity( + api, + player.getUniqueId(), + player.getName() + )) + ); + } + + @Override + public boolean isVisible(Player player) { + PlayerInfo executer = api.getCache().get(Laby.labyAPI().getUniqueId()); + return executer != null && executer.hasPermission(GlobalPermission.MANAGE_NOTES) && api.getCache().get(player.getUniqueId()) != null; + } +} From c83feedbe76f8287a668ca8083d93f46567a94c3 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Mon, 18 Nov 2024 00:39:31 +0100 Subject: [PATCH 18/41] Add translations --- core/src/main/resources/assets/globaltags/i18n/en_us.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index b826b8b..c4de583 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -192,6 +192,10 @@ }, "clearTag": { "name": "Clear GlobalTag" + }, + "staff_notes": { + "name": "Manage GlobalTags notes", + "title": "%s's notes" } } } From d23b6d2470057bb39d2ea91f03392c7c43272b1d Mon Sep 17 00:00:00 2001 From: RappyTV Date: Mon, 18 Nov 2024 19:39:42 +0100 Subject: [PATCH 19/41] Implement note list and remove button --- .../activities/StaffNotesActivity.java | 46 +++++++- .../activities/widgets/StaffNoteWidget.java | 101 ++++++++++++++++++ 2 files changed, 144 insertions(+), 3 deletions(-) create mode 100644 core/src/main/java/com/rappytv/globaltags/activities/widgets/StaffNoteWidget.java diff --git a/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java b/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java index 0d3dc70..04a2e2a 100644 --- a/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java +++ b/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java @@ -1,11 +1,27 @@ package com.rappytv.globaltags.activities; +import com.rappytv.globaltags.GlobalTagAddon; +import com.rappytv.globaltags.activities.widgets.StaffNoteWidget; import com.rappytv.globaltags.api.GlobalTagAPI; +import com.rappytv.globaltags.wrapper.model.PlayerNote; +import net.labymod.api.Laby; +import net.labymod.api.client.component.Component; +import net.labymod.api.client.component.TextComponent; +import net.labymod.api.client.component.format.NamedTextColor; +import net.labymod.api.client.gui.icon.Icon; import net.labymod.api.client.gui.screen.Parent; import net.labymod.api.client.gui.screen.activity.AutoActivity; +import net.labymod.api.client.gui.screen.activity.Link; import net.labymod.api.client.gui.screen.activity.types.SimpleActivity; +import net.labymod.api.client.gui.screen.widget.widgets.ComponentWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.FlexibleContentWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.ScrollWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.list.HorizontalListWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.list.VerticalListWidget; +import net.labymod.api.client.gui.screen.widget.widgets.renderer.IconWidget; import java.util.UUID; +@Link("list.lss") @AutoActivity public class StaffNotesActivity extends SimpleActivity { @@ -22,8 +38,32 @@ public StaffNotesActivity(GlobalTagAPI api, UUID uuid, String username) { @Override public void initialize(Parent parent) { super.initialize(parent); - api.getApiHandler().getNotes(uuid, (response) -> { - // TODO: Implement activity - }); + api.getApiHandler().getNotes(uuid, (response) -> Laby.labyAPI().minecraft().executeOnRenderThread(() -> { + if(document.getChild("window") != null) return; + if(!response.successful()) { + Laby.references().chatExecutor().displayClientMessage( + TextComponent.builder() + .append(GlobalTagAddon.prefix) + .append(Component.text(response.error(), NamedTextColor.RED)) + .build() + ); + return; + } + FlexibleContentWidget windowWidget = new FlexibleContentWidget().addId("window"); + HorizontalListWidget profileWrapper = new HorizontalListWidget().addId("header"); + IconWidget headWidget = new IconWidget(Icon.head(this.uuid)).addId("head"); + ComponentWidget titleWidget = ComponentWidget.i18n("globaltags.context.staff_notes.title", this.username).addId("username"); + VerticalListWidget notes = new VerticalListWidget<>().addId("note-list"); + for (PlayerNote note : response.data()) { + notes.addChild(new StaffNoteWidget(uuid, api, note)); + } + + profileWrapper.addEntryInitialized(headWidget); + profileWrapper.addEntryInitialized(titleWidget); + + windowWidget.addContentInitialized(profileWrapper); + windowWidget.addContentInitialized(new ScrollWidget(notes)); + this.document.addChildInitialized(windowWidget); + })); } } diff --git a/core/src/main/java/com/rappytv/globaltags/activities/widgets/StaffNoteWidget.java b/core/src/main/java/com/rappytv/globaltags/activities/widgets/StaffNoteWidget.java new file mode 100644 index 0000000..7675ae6 --- /dev/null +++ b/core/src/main/java/com/rappytv/globaltags/activities/widgets/StaffNoteWidget.java @@ -0,0 +1,101 @@ +package com.rappytv.globaltags.activities.widgets; + +import com.rappytv.globaltags.GlobalTagAddon; +import com.rappytv.globaltags.api.GlobalTagAPI; +import com.rappytv.globaltags.wrapper.model.PlayerNote; +import net.labymod.api.Laby; +import net.labymod.api.client.component.Component; +import net.labymod.api.client.component.TextComponent; +import net.labymod.api.client.component.format.NamedTextColor; +import net.labymod.api.client.gui.icon.Icon; +import net.labymod.api.client.gui.lss.property.annotation.AutoWidget; +import net.labymod.api.client.gui.screen.Parent; +import net.labymod.api.client.gui.screen.widget.SimpleWidget; +import net.labymod.api.client.gui.screen.widget.widgets.ComponentWidget; +import net.labymod.api.client.gui.screen.widget.widgets.input.ButtonWidget; +import net.labymod.api.client.gui.screen.widget.widgets.renderer.IconWidget; +import net.labymod.api.util.I18n; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.UUID; + +@AutoWidget +public class StaffNoteWidget extends SimpleWidget { + + private static final SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy"); + private final UUID holder; + private final GlobalTagAPI api; + private final PlayerNote note; + private ButtonWidget deleteButton; + + public StaffNoteWidget(UUID holder, GlobalTagAPI api, PlayerNote note) { + this.holder = holder; + this.api = api; + this.note = note; + } + + @Override + public void initialize(Parent parent) { + if(isInitialized()) return; + super.initialize(parent); + + IconWidget headWidget = new IconWidget(Icon.head(note.getAuthor())) + .addId("author-head"); + + ComponentWidget text = ComponentWidget + .text(note.getText()) + .addId("text-component"); + text.setHoverComponent(Component.text(note.getText())); + + ComponentWidget description = ComponentWidget + .text( + I18n.translate( + "globaltags.context.staff_notes.description", + formatDate(note.getCreatedAt()), + note.getId() + ), + NamedTextColor.DARK_GRAY + ) + .addId("description-component"); + + deleteButton = ButtonWidget + .component(Component.text("✗", NamedTextColor.RED), this::delete) + .addId("delete-button"); + deleteButton.setHoverComponent(Component.translatable( + "globaltags.context.staff_notes.hover.delete", + NamedTextColor.RED + )); + + this.addChild(headWidget); + this.addChild(text); + this.addChild(description); + this.addChild(deleteButton); + } + + private String formatDate(Date date) { + return dateFormat.format(date); + } + + private void delete() { + deleteButton.setEnabled(false); + api.getApiHandler().deleteNote(holder, note.getId(), (response) -> { + if(!response.successful()) { + Laby.references().chatExecutor().displayClientMessage( + TextComponent.builder() + .append(GlobalTagAddon.prefix) + .append(Component.text(response.error(), NamedTextColor.RED)) + .build() + ); + deleteButton.setEnabled(true); + return; + } + Laby.labyAPI().minecraft().executeOnRenderThread(() -> { + deleteButton.updateComponent(Component.text("✓", NamedTextColor.GREEN)); + deleteButton.setHoverComponent(Component.translatable( + "globaltags.context.staff_notes.hover.deleted", + NamedTextColor.GREEN + )); + }); + }); + } +} From fc0752df34b98420a0d8f484ecd9f270efe71261 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Mon, 18 Nov 2024 19:40:31 +0100 Subject: [PATCH 20/41] Add style --- .../globaltags/themes/vanilla/lss/list.lss | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss diff --git a/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss b/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss new file mode 100644 index 0000000..a529c34 --- /dev/null +++ b/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss @@ -0,0 +1,100 @@ +.window { + left: 50%; + top: 50%; + width: 300; + height: 200; + alignment-x: center; + alignment-y: center; + background-color: rgba(20, 20, 20, 0.9); + border: 1 dark_gray; + + .header { + left: 50%; + width: 100%; + height: 20; + padding: 0 2 0 2; + space-between-entries: 2; + background-color: rgba(10, 10, 10, 0.4); + + .head { + width: 16; + height: width; + alignment: center; + } + + .username { + alignment: center; + } + } + + Scroll { + width: 100%; + height: 90%; + alignment-x: center; + alignment-y: center; + overwrite-width: false; + + .note-list { + left: 0; + top: 0; + height: fit-content; + space-between-entries: 2; + selectable: true; + } + + Scrollbar { + left: 0; + top: 0; + width: 5; + height: 100%; + margin-left: 5; + } + } +} + +StaffNote { + width: 100%; + height: 24; + padding: 1; + + .author-head { + left: 3; + top: 2; + width: 16; + height: width; + + margin-top: 2; + } + + .text-component { + max-width: 80%; + scale-to-fit: true; + max-lines: 1; + left: 22; + top: 2; + } + + .description-component { + max-width: 80%; + scale-to-fit: true; + max-lines: 1; + left: 22; + top: 13; + } + + .delete-button { + right: 5; + top: 0; + width: 20; + height: width; + padding: 0; + + margin-top: 2; + } + + &:selected { + padding: 0; + border: 1 gray; + background-color: black; + } +} \ No newline at end of file From c7ed5f2e8b7d0f5173c103639736d91145372129 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Mon, 18 Nov 2024 19:40:38 +0100 Subject: [PATCH 21/41] Add translations --- core/src/main/resources/assets/globaltags/i18n/en_us.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index c4de583..cb5256b 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -195,7 +195,12 @@ }, "staff_notes": { "name": "Manage GlobalTags notes", - "title": "%s's notes" + "title": "%s's notes", + "description": "created at %s (#%s)", + "hover": { + "delete": "Click to delete", + "deleted": "Successfully deleted!" + } } } } From e18b667bba79662171470fda4a635e06af9fa76f Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 00:53:46 +0100 Subject: [PATCH 22/41] Implement activity to create staff note --- .../activities/CreateNoteActivity.java | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 core/src/main/java/com/rappytv/globaltags/activities/CreateNoteActivity.java diff --git a/core/src/main/java/com/rappytv/globaltags/activities/CreateNoteActivity.java b/core/src/main/java/com/rappytv/globaltags/activities/CreateNoteActivity.java new file mode 100644 index 0000000..180c4a9 --- /dev/null +++ b/core/src/main/java/com/rappytv/globaltags/activities/CreateNoteActivity.java @@ -0,0 +1,78 @@ +package com.rappytv.globaltags.activities; + +import com.rappytv.globaltags.GlobalTagAddon; +import com.rappytv.globaltags.api.GlobalTagAPI; +import com.rappytv.globaltags.api.Util; +import java.util.UUID; +import net.labymod.api.Laby; +import net.labymod.api.client.component.Component; +import net.labymod.api.client.component.format.NamedTextColor; +import net.labymod.api.client.gui.icon.Icon; +import net.labymod.api.client.gui.screen.Parent; +import net.labymod.api.client.gui.screen.ScreenInstance; +import net.labymod.api.client.gui.screen.activity.AutoActivity; +import net.labymod.api.client.gui.screen.activity.Link; +import net.labymod.api.client.gui.screen.activity.types.SimpleActivity; +import net.labymod.api.client.gui.screen.widget.Widget; +import net.labymod.api.client.gui.screen.widget.widgets.ComponentWidget; +import net.labymod.api.client.gui.screen.widget.widgets.input.ButtonWidget; +import net.labymod.api.client.gui.screen.widget.widgets.input.TextFieldWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.FlexibleContentWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.list.HorizontalListWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.list.VerticalListWidget; +import net.labymod.api.client.gui.screen.widget.widgets.renderer.IconWidget; + +@Link("input.lss") +@AutoActivity +public class CreateNoteActivity extends SimpleActivity { + + private final GlobalTagAPI api; + private final UUID uuid; + private final String username; + + public CreateNoteActivity(GlobalTagAPI api, UUID uuid, String username) { + this.api = api; + this.uuid = uuid; + this.username = username; + } + + @Override + public void initialize(Parent parent) { + super.initialize(parent); + FlexibleContentWidget windowWidget = new FlexibleContentWidget().addId("window"); + HorizontalListWidget profileWrapper = new HorizontalListWidget().addId("header"); + IconWidget headWidget = new IconWidget(Icon.head(this.uuid)).addId("head"); + ComponentWidget titleWidget = ComponentWidget.i18n("globaltags.context.staff_notes.create.title", this.username).addId("username"); + VerticalListWidget content = new VerticalListWidget<>().addId("content"); + ComponentWidget labelWidget = ComponentWidget.i18n("globaltags.context.staff_notes.create.label").addId("label"); + TextFieldWidget inputWidget = new TextFieldWidget() + .placeholder(Component.translatable("globaltags.context.staff_notes.create.placeholder", NamedTextColor.DARK_GRAY)) + .addId("input"); + ButtonWidget sendButton = new ButtonWidget() + .updateComponent(Component.translatable("globaltags.context.staff_notes.create.send", NamedTextColor.AQUA)) + .addId("send-button"); + sendButton.setEnabled(false); + sendButton.setActionListener(() -> api.getApiHandler().createNote(uuid, inputWidget.getText(), (response) -> { + Laby.references().chatExecutor().displayClientMessage( + Component.empty() + .append(GlobalTagAddon.prefix) + .append(Util.getResponseComponent(response)) + ); + Laby.labyAPI().minecraft().executeOnRenderThread(() -> + Laby.labyAPI().minecraft().minecraftWindow().displayScreen((ScreenInstance) null) + ); + })); + inputWidget.updateListener((text) -> sendButton.setEnabled(!text.isBlank())); + + profileWrapper.addEntry(headWidget); + profileWrapper.addEntry(titleWidget); + + content.addChild(labelWidget); + content.addChild(inputWidget); + content.addChild(sendButton); + + windowWidget.addContent(profileWrapper); + windowWidget.addContent(content); + this.document.addChild(windowWidget); + } +} From 9c0a3135733bf0bdd52b731d0765e24cbe66c506 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 00:54:16 +0100 Subject: [PATCH 23/41] Improve input.lss bounds --- .../resources/assets/globaltags/themes/vanilla/lss/input.lss | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/themes/vanilla/lss/input.lss b/core/src/main/resources/assets/globaltags/themes/vanilla/lss/input.lss index d70ab1e..180a807 100644 --- a/core/src/main/resources/assets/globaltags/themes/vanilla/lss/input.lss +++ b/core/src/main/resources/assets/globaltags/themes/vanilla/lss/input.lss @@ -5,8 +5,6 @@ height: 180; alignment-x: center; alignment-y: center; - # background-color: rgba(20, 20, 20, 0.9); - # border: 1 dark_gray; .header { left: 50%; @@ -14,7 +12,6 @@ height: 20; padding: 0 2 0 2; space-between-entries: 2; - # background-color: rgba(10, 10, 10, 0.4); .head { width: 16; @@ -29,7 +26,7 @@ .content { width: 100%; - height: 100%; + height: 160; alignment-x: center; alignment-y: center; overwrite-width: false; From 4bb2389307a4ecf93b793af2032f7560beed4e86 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 01:03:35 +0100 Subject: [PATCH 24/41] Always display response message when deleting a note --- .../activities/widgets/StaffNoteWidget.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/rappytv/globaltags/activities/widgets/StaffNoteWidget.java b/core/src/main/java/com/rappytv/globaltags/activities/widgets/StaffNoteWidget.java index 7675ae6..d094790 100644 --- a/core/src/main/java/com/rappytv/globaltags/activities/widgets/StaffNoteWidget.java +++ b/core/src/main/java/com/rappytv/globaltags/activities/widgets/StaffNoteWidget.java @@ -2,6 +2,7 @@ import com.rappytv.globaltags.GlobalTagAddon; import com.rappytv.globaltags.api.GlobalTagAPI; +import com.rappytv.globaltags.api.Util; import com.rappytv.globaltags.wrapper.model.PlayerNote; import net.labymod.api.Laby; import net.labymod.api.client.component.Component; @@ -79,13 +80,13 @@ private String formatDate(Date date) { private void delete() { deleteButton.setEnabled(false); api.getApiHandler().deleteNote(holder, note.getId(), (response) -> { + Laby.references().chatExecutor().displayClientMessage( + TextComponent.builder() + .append(GlobalTagAddon.prefix) + .append(Util.getResponseComponent(response)) + .build() + ); if(!response.successful()) { - Laby.references().chatExecutor().displayClientMessage( - TextComponent.builder() - .append(GlobalTagAddon.prefix) - .append(Component.text(response.error(), NamedTextColor.RED)) - .build() - ); deleteButton.setEnabled(true); return; } From 79b72b728e1c55c855aebcf000e787ff93e9c012 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 01:32:58 +0100 Subject: [PATCH 25/41] Implement tag history activity, widget and bullet point --- .../activities/TagHistoryActivity.java | 72 +++++++++++++++++++ .../widgets/TagHistoryEntryWidget.java | 59 +++++++++++++++ .../interaction/TagHistoryBulletPoint.java | 49 +++++++++++++ 3 files changed, 180 insertions(+) create mode 100644 core/src/main/java/com/rappytv/globaltags/activities/TagHistoryActivity.java create mode 100644 core/src/main/java/com/rappytv/globaltags/activities/widgets/TagHistoryEntryWidget.java create mode 100644 core/src/main/java/com/rappytv/globaltags/interaction/TagHistoryBulletPoint.java diff --git a/core/src/main/java/com/rappytv/globaltags/activities/TagHistoryActivity.java b/core/src/main/java/com/rappytv/globaltags/activities/TagHistoryActivity.java new file mode 100644 index 0000000..d5a3eec --- /dev/null +++ b/core/src/main/java/com/rappytv/globaltags/activities/TagHistoryActivity.java @@ -0,0 +1,72 @@ +package com.rappytv.globaltags.activities; + +import com.rappytv.globaltags.GlobalTagAddon; +import com.rappytv.globaltags.activities.widgets.TagHistoryEntryWidget; +import com.rappytv.globaltags.api.GlobalTagAPI; +import net.labymod.api.Laby; +import net.labymod.api.client.component.Component; +import net.labymod.api.client.component.TextComponent; +import net.labymod.api.client.component.format.NamedTextColor; +import net.labymod.api.client.gui.icon.Icon; +import net.labymod.api.client.gui.screen.Parent; +import net.labymod.api.client.gui.screen.ScreenInstance; +import net.labymod.api.client.gui.screen.activity.AutoActivity; +import net.labymod.api.client.gui.screen.activity.Link; +import net.labymod.api.client.gui.screen.activity.types.SimpleActivity; +import net.labymod.api.client.gui.screen.widget.widgets.ComponentWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.FlexibleContentWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.ScrollWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.list.HorizontalListWidget; +import net.labymod.api.client.gui.screen.widget.widgets.layout.list.VerticalListWidget; +import net.labymod.api.client.gui.screen.widget.widgets.renderer.IconWidget; + +import java.util.UUID; + +@Link("list.lss") +@AutoActivity +public class TagHistoryActivity extends SimpleActivity { + + private final GlobalTagAPI api; + private final UUID uuid; + private final String username; + + public TagHistoryActivity(GlobalTagAPI api, UUID uuid, String username) { + this.api = api; + this.uuid = uuid; + this.username = username; + } + + @Override + public void initialize(Parent parent) { + super.initialize(parent); + api.getApiHandler().getTagHistory(uuid, (response) -> Laby.labyAPI().minecraft().executeOnRenderThread(() -> { + if(document.getChild("window") != null) return; + System.out.println(response.data()); + if(!response.successful()) { + Laby.references().chatExecutor().displayClientMessage( + TextComponent.builder() + .append(GlobalTagAddon.prefix) + .append(Component.text(response.error(), NamedTextColor.RED)) + .build() + ); + Laby.labyAPI().minecraft().minecraftWindow().displayScreen((ScreenInstance) null); + return; + } + FlexibleContentWidget windowWidget = new FlexibleContentWidget().addId("window"); + HorizontalListWidget profileWrapper = new HorizontalListWidget().addId("header"); + IconWidget headWidget = new IconWidget(Icon.head(this.uuid)).addId("head"); + ComponentWidget titleWidget = ComponentWidget.i18n("globaltags.context.tag_history.title", this.username).addId("username"); + VerticalListWidget notes = new VerticalListWidget<>().addId("item-list"); + for(int i = 0; i < response.data().size(); i++) { + notes.addChild(new TagHistoryEntryWidget(i + 1, api, response.data().get(i))); + } + + profileWrapper.addEntryInitialized(headWidget); + profileWrapper.addEntryInitialized(titleWidget); + + windowWidget.addContentInitialized(profileWrapper); + windowWidget.addContentInitialized(new ScrollWidget(notes)); + this.document.addChildInitialized(windowWidget); + })); + } +} diff --git a/core/src/main/java/com/rappytv/globaltags/activities/widgets/TagHistoryEntryWidget.java b/core/src/main/java/com/rappytv/globaltags/activities/widgets/TagHistoryEntryWidget.java new file mode 100644 index 0000000..f34e7b8 --- /dev/null +++ b/core/src/main/java/com/rappytv/globaltags/activities/widgets/TagHistoryEntryWidget.java @@ -0,0 +1,59 @@ +package com.rappytv.globaltags.activities.widgets; + +import com.rappytv.globaltags.api.GlobalTagAPI; +import com.rappytv.globaltags.wrapper.model.TagHistoryEntry; +import net.labymod.api.client.component.Component; +import net.labymod.api.client.component.format.NamedTextColor; +import net.labymod.api.client.gui.lss.property.annotation.AutoWidget; +import net.labymod.api.client.gui.screen.Parent; +import net.labymod.api.client.gui.screen.widget.SimpleWidget; +import net.labymod.api.client.gui.screen.widget.widgets.ComponentWidget; + +@AutoWidget +public class TagHistoryEntryWidget extends SimpleWidget { + + private final int number; + private final GlobalTagAPI api; + private final TagHistoryEntry entry; + + public TagHistoryEntryWidget(int number, GlobalTagAPI api, TagHistoryEntry entry) { + this.number = number; + this.api = api; + this.entry = entry; + } + + @Override + public void initialize(Parent parent) { + if(isInitialized()) return; + super.initialize(parent); + + ComponentWidget text = ComponentWidget + .component( + Component + .text(number + ". ", NamedTextColor.AQUA) + .append(api.translateColorCodes(entry.tag())) + ) + .addId("text-component"); + + this.addChild(text); + if(!entry.flaggedWords().isEmpty()) { + Component hoverComponent = Component.translatable( + "globaltags.context.tag_history.flagged_words", + NamedTextColor.GOLD + ); + for(String word : entry.flaggedWords()) { + hoverComponent + .append(Component.newline()) + .append(Component.text( + "- " + word, + NamedTextColor.GOLD + )); + } + ComponentWidget flaggedWords = ComponentWidget + .text("⚠", NamedTextColor.GOLD) + .addId("flagged-words"); + flaggedWords.setHoverComponent(hoverComponent); + this.addChild(flaggedWords); + } + } +} diff --git a/core/src/main/java/com/rappytv/globaltags/interaction/TagHistoryBulletPoint.java b/core/src/main/java/com/rappytv/globaltags/interaction/TagHistoryBulletPoint.java new file mode 100644 index 0000000..fba5886 --- /dev/null +++ b/core/src/main/java/com/rappytv/globaltags/interaction/TagHistoryBulletPoint.java @@ -0,0 +1,49 @@ +package com.rappytv.globaltags.interaction; + +import com.rappytv.globaltags.GlobalTagAddon; +import com.rappytv.globaltags.activities.StaffNotesActivity; +import com.rappytv.globaltags.activities.TagHistoryActivity; +import com.rappytv.globaltags.api.GlobalTagAPI; +import com.rappytv.globaltags.wrapper.enums.GlobalPermission; +import com.rappytv.globaltags.wrapper.model.PlayerInfo; +import net.labymod.api.Laby; +import net.labymod.api.client.component.Component; +import net.labymod.api.client.entity.player.Player; +import net.labymod.api.client.entity.player.interaction.BulletPoint; +import net.labymod.api.client.gui.icon.Icon; + +public class TagHistoryBulletPoint implements BulletPoint { + + private final GlobalTagAPI api; + + public TagHistoryBulletPoint() { + this.api = GlobalTagAddon.getAPI(); + } + + @Override + public Component getTitle() { + return Component.translatable("globaltags.context.tag_history.name"); + } + + @Override + public Icon getIcon() { + return null; + } + + @Override + public void execute(Player player) { + Laby.labyAPI().minecraft().executeNextTick(() -> + Laby.labyAPI().minecraft().minecraftWindow().displayScreen(new TagHistoryActivity( + api, + player.getUniqueId(), + player.getName() + )) + ); + } + + @Override + public boolean isVisible(Player player) { + PlayerInfo executer = api.getCache().get(Laby.labyAPI().getUniqueId()); + return executer != null && executer.hasPermission(GlobalPermission.MANAGE_TAGS) && api.getCache().get(player.getUniqueId()) != null; + } +} From 7608ffe8c12b5b33031c135f5e12579d13a55a9a Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 01:33:40 +0100 Subject: [PATCH 26/41] Close StaffNotesActivity on error, add button to create new note --- .../globaltags/activities/StaffNotesActivity.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java b/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java index 04a2e2a..2d37bfd 100644 --- a/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java +++ b/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java @@ -10,10 +10,12 @@ import net.labymod.api.client.component.format.NamedTextColor; import net.labymod.api.client.gui.icon.Icon; import net.labymod.api.client.gui.screen.Parent; +import net.labymod.api.client.gui.screen.ScreenInstance; import net.labymod.api.client.gui.screen.activity.AutoActivity; import net.labymod.api.client.gui.screen.activity.Link; import net.labymod.api.client.gui.screen.activity.types.SimpleActivity; import net.labymod.api.client.gui.screen.widget.widgets.ComponentWidget; +import net.labymod.api.client.gui.screen.widget.widgets.input.ButtonWidget; import net.labymod.api.client.gui.screen.widget.widgets.layout.FlexibleContentWidget; import net.labymod.api.client.gui.screen.widget.widgets.layout.ScrollWidget; import net.labymod.api.client.gui.screen.widget.widgets.layout.list.HorizontalListWidget; @@ -47,16 +49,24 @@ public void initialize(Parent parent) { .append(Component.text(response.error(), NamedTextColor.RED)) .build() ); + Laby.labyAPI().minecraft().minecraftWindow().displayScreen((ScreenInstance) null); return; } FlexibleContentWidget windowWidget = new FlexibleContentWidget().addId("window"); HorizontalListWidget profileWrapper = new HorizontalListWidget().addId("header"); IconWidget headWidget = new IconWidget(Icon.head(this.uuid)).addId("head"); ComponentWidget titleWidget = ComponentWidget.i18n("globaltags.context.staff_notes.title", this.username).addId("username"); - VerticalListWidget notes = new VerticalListWidget<>().addId("note-list"); + VerticalListWidget notes = new VerticalListWidget<>().addId("item-list"); for (PlayerNote note : response.data()) { notes.addChild(new StaffNoteWidget(uuid, api, note)); } + // TODO: Actually show that button somewhere + ButtonWidget createButton = ButtonWidget + .text("+", () -> Laby.labyAPI().minecraft().minecraftWindow().displayScreen( + new CreateNoteActivity(api, uuid, username) + )) + .addId("create-button"); + createButton.setHoverComponent(Component.translatable("globaltags.context.staff_notes.hover.create")); profileWrapper.addEntryInitialized(headWidget); profileWrapper.addEntryInitialized(titleWidget); From 1df4993d6cc1ca2a6d256a5aa4d1335e32a0c478 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 01:34:05 +0100 Subject: [PATCH 27/41] Support TagHistoryEntry in list stylesheet --- .../globaltags/themes/vanilla/lss/list.lss | 42 ++++++++++++++++++- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss b/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss index a529c34..825e8fc 100644 --- a/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss +++ b/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss @@ -25,16 +25,28 @@ .username { alignment: center; } + + #.create-button { + # left: 50%; + # margin-top: 5; + # width: 20; + # height: width; + # alignment-x: center; + # alignment-y: center; + # padding: 0; + #} } Scroll { + top: calc(50% + 10); width: 100%; - height: 90%; + max-height: 90%; + height: fit-content; alignment-x: center; alignment-y: center; overwrite-width: false; - .note-list { + .item-list { left: 0; top: 0; height: fit-content; @@ -92,6 +104,32 @@ StaffNote { margin-top: 2; } + &:selected { + padding: 0; + border: 1 gray; + background-color: black; + } +} + +TagHistoryEntry { + width: 100%; + height: 15; + padding: 1; + + .text-component { + max-width: 80%; + scale-to-fit: true; + max-lines: 1; + left: 5; + #top: 2; + alignment-y: center; + } + + .flagged-words { + right: 5; + top: 3; + } + &:selected { padding: 0; border: 1 gray; From f65c7871a7c328623eb9b45be7c7719ca3a1d81d Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 01:34:35 +0100 Subject: [PATCH 28/41] Add additional translations for staff notes and tag history display --- .../main/resources/assets/globaltags/i18n/en_us.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index cb5256b..e480c4a 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -198,9 +198,21 @@ "title": "%s's notes", "description": "created at %s (#%s)", "hover": { + "create": "Add note", "delete": "Click to delete", "deleted": "Successfully deleted!" + }, + "create": { + "title": "Add note for %s", + "label": "Note", + "placeholder": "Enter a note…", + "send": "Create" } + }, + "tag_history": { + "name": "Show GlobalTag history", + "title": "%s's tag history", + "flagged_words": "Flagged words:" } } } From a416f8ab15aae71787e7165f4c8087bbe2386b6e Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 01:35:05 +0100 Subject: [PATCH 29/41] Register TagHistoryBulletPoint --- core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java b/core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java index 13b1c8e..e889bdd 100644 --- a/core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java +++ b/core/src/main/java/com/rappytv/globaltags/GlobalTagAddon.java @@ -6,6 +6,7 @@ import com.rappytv.globaltags.interaction.EditBanInfoBulletPoint; import com.rappytv.globaltags.interaction.ReferPlayerBulletPoint; import com.rappytv.globaltags.interaction.StaffNotesBulletPoint; +import com.rappytv.globaltags.interaction.TagHistoryBulletPoint; import com.rappytv.globaltags.interaction.ToggleBanBulletPoint; import com.rappytv.globaltags.interaction.ChangeTagBulletPoint; import com.rappytv.globaltags.interaction.ClearTagBulletPoint; @@ -68,6 +69,7 @@ protected void enable() { labyAPI().interactionMenuRegistry().register(new ReferPlayerBulletPoint()); labyAPI().interactionMenuRegistry().register(new ReportBulletPoint()); labyAPI().interactionMenuRegistry().register(new StaffNotesBulletPoint()); + labyAPI().interactionMenuRegistry().register(new TagHistoryBulletPoint()); labyAPI().interactionMenuRegistry().register(new ToggleBanBulletPoint()); registerCommand(new GlobalTagCommand(this)); } From de2164ff66040064bfaa2a116f9ad8bab1cdad4a Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 01:35:46 +0100 Subject: [PATCH 30/41] Optimise imports --- .../rappytv/globaltags/interaction/TagHistoryBulletPoint.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/com/rappytv/globaltags/interaction/TagHistoryBulletPoint.java b/core/src/main/java/com/rappytv/globaltags/interaction/TagHistoryBulletPoint.java index fba5886..f3e36dd 100644 --- a/core/src/main/java/com/rappytv/globaltags/interaction/TagHistoryBulletPoint.java +++ b/core/src/main/java/com/rappytv/globaltags/interaction/TagHistoryBulletPoint.java @@ -1,7 +1,6 @@ package com.rappytv.globaltags.interaction; import com.rappytv.globaltags.GlobalTagAddon; -import com.rappytv.globaltags.activities.StaffNotesActivity; import com.rappytv.globaltags.activities.TagHistoryActivity; import com.rappytv.globaltags.api.GlobalTagAPI; import com.rappytv.globaltags.wrapper.enums.GlobalPermission; From 2067974184626c6a7201b034ab3e9c36e8d69b35 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 17:07:11 +0100 Subject: [PATCH 31/41] Add create button to staff note activity --- .../activities/StaffNotesActivity.java | 14 +++++++------- .../globaltags/themes/vanilla/lss/list.lss | 17 +++++++---------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java b/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java index 2d37bfd..a4efbc0 100644 --- a/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java +++ b/core/src/main/java/com/rappytv/globaltags/activities/StaffNotesActivity.java @@ -54,22 +54,22 @@ public void initialize(Parent parent) { } FlexibleContentWidget windowWidget = new FlexibleContentWidget().addId("window"); HorizontalListWidget profileWrapper = new HorizontalListWidget().addId("header"); - IconWidget headWidget = new IconWidget(Icon.head(this.uuid)).addId("head"); - ComponentWidget titleWidget = ComponentWidget.i18n("globaltags.context.staff_notes.title", this.username).addId("username"); - VerticalListWidget notes = new VerticalListWidget<>().addId("item-list"); - for (PlayerNote note : response.data()) { - notes.addChild(new StaffNoteWidget(uuid, api, note)); - } - // TODO: Actually show that button somewhere ButtonWidget createButton = ButtonWidget .text("+", () -> Laby.labyAPI().minecraft().minecraftWindow().displayScreen( new CreateNoteActivity(api, uuid, username) )) .addId("create-button"); createButton.setHoverComponent(Component.translatable("globaltags.context.staff_notes.hover.create")); + IconWidget headWidget = new IconWidget(Icon.head(this.uuid)).addId("head"); + ComponentWidget titleWidget = ComponentWidget.i18n("globaltags.context.staff_notes.title", this.username).addId("username"); + VerticalListWidget notes = new VerticalListWidget<>().addId("item-list"); + for (PlayerNote note : response.data()) { + notes.addChild(new StaffNoteWidget(uuid, api, note)); + } profileWrapper.addEntryInitialized(headWidget); profileWrapper.addEntryInitialized(titleWidget); + profileWrapper.addEntryInitialized(createButton); windowWidget.addContentInitialized(profileWrapper); windowWidget.addContentInitialized(new ScrollWidget(notes)); diff --git a/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss b/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss index 825e8fc..2deef63 100644 --- a/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss +++ b/core/src/main/resources/assets/globaltags/themes/vanilla/lss/list.lss @@ -16,6 +16,13 @@ space-between-entries: 2; background-color: rgba(10, 10, 10, 0.4); + .create-button { + margin-left: 1; + width: 16; + height: width; + padding: 0; + } + .head { width: 16; height: width; @@ -25,16 +32,6 @@ .username { alignment: center; } - - #.create-button { - # left: 50%; - # margin-top: 5; - # width: 20; - # height: width; - # alignment-x: center; - # alignment-y: center; - # padding: 0; - #} } Scroll { From caeebac685d2ff7607d1ed6f8a823ec43ece574e Mon Sep 17 00:00:00 2001 From: RappyTV Date: Tue, 19 Nov 2024 17:47:43 +0100 Subject: [PATCH 32/41] Update workflow action versions --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4636995..0e33113 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,9 +11,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 21 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'corretto' java-version: '21' @@ -22,7 +22,7 @@ jobs: - name: Build with Gradle run: ./gradlew build --full-stacktrace - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts path: build/libs/*-release.jar \ No newline at end of file From 0dad0e37abb0830b3b042faa3df8fe123ec2f73f Mon Sep 17 00:00:00 2001 From: RappyTV Date: Thu, 21 Nov 2024 01:57:40 +0100 Subject: [PATCH 33/41] Remove all strings which were not translated --- .../resources/assets/globaltags/i18n/bar.json | 199 +----------------- .../assets/globaltags/i18n/de_at.json | 199 +----------------- .../assets/globaltags/i18n/es_es.json | 199 +----------------- .../assets/globaltags/i18n/is_is.json | 199 +----------------- .../assets/globaltags/i18n/nl_nl.json | 199 +----------------- .../assets/globaltags/i18n/no_no.json | 164 +-------------- .../assets/globaltags/i18n/pl_pl.json | 199 +----------------- .../assets/globaltags/i18n/ru_ru.json | 199 +----------------- 8 files changed, 9 insertions(+), 1548 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/bar.json b/core/src/main/resources/assets/globaltags/i18n/bar.json index 4d89768..0967ef4 100644 --- a/core/src/main/resources/assets/globaltags/i18n/bar.json +++ b/core/src/main/resources/assets/globaltags/i18n/bar.json @@ -1,198 +1 @@ -{ - "globaltags": { - "context": { - "ban": { - "send": "Ban", - "title": "Ban %s", - "name": "Ban GlobalTag player" - }, - "editBan": { - "appealable": "Appealable", - "name": "Edit GlobalTag ban", - "send": "Submit changes", - "title": "Edit %s's ban" - }, - "report": { - "send": "Send report", - "name": "Report GlobalTag", - "title": "Report %s" - }, - "reason": "Reason", - "changeTag": { - "placeholder": "Enter the updated GlobalTag...", - "name": "Change GlobalTag", - "label": "New GlobalTag", - "send": "Update Tag", - "title": "Change %s's Tag" - }, - "unban": { - "title": "Unban %s", - "name": "Unban GlobalTag player", - "send": "Unban" - }, - "clearTag": { - "name": "Clear GlobalTag" - }, - "referral": { - "name": "This player invited me to GlobalTags" - }, - "placeholder": "Please enter a reason..." - }, - "settings": { - "tags": { - "globalIcon": { - "entries": { - "statsfm": "StatsFM", - "x": "x", - "epicgames": "Epic Games", - "apple": "Apple", - "ebio": "e.bio", - "discord": "Discord", - "kick": "Kick", - "star": "Star", - "android": "Android", - "snapchat": "Snapchat", - "telegram": "Telegram", - "crown": "Crown", - "twitch": "Twitch", - "soundcloud": "Soundcloud", - "custom": "Custom", - "steam": "Steam", - "none": "None", - "labynet": "laby.net", - "xbox": "Xbox", - "reddit": "Reddit", - "pinterest": "Pinterest", - "paypal": "PayPal", - "heart": "Heart", - "gamescom": "Gamescom", - "threads": "Threads", - "tiktok": "TikTok", - "duolingo": "Luodingo", - "github": "GitHub", - "gitlab": "GitLab", - "instagram": "Instagram", - "spotify": "Spotify", - "bereal": "BeReal.", - "playstation": "Playstation", - "youtube": "YouTube" - }, - "description": "This icon will be displayed left to your tag globally.", - "name": "Global icon" - }, - "position": { - "entries": { - "left": "Left to name", - "below": "Below name", - "right": "Right to name", - "above": "Above name" - }, - "description": "Your tag is visible in this position to everyone.", - "name": "Global position" - }, - "tagPreview": { - "appeal": { - "popup": { - "label": "Why should we unban you?", - "placeholder": "Please enter a reason...", - "button": "Send appeal" - }, - "description": "⚠ This button will only be clickable if your suspension is appealable.", - "name": "Appeal" - }, - "name": "Tag Preview", - "emptyReason": "No reason provided", - "noInfo": "Couldn't fetch account info!", - "labyConnect": "You're not connected to LabyConnect!", - "empty": "", - "banned": "Your account is suspended!\nReason: %s" - }, - "resetTag": { - "name": "Delete global tag", - "text": "Delete" - }, - "tag": { - "name": "Global tag" - }, - "updateSettings": { - "result": "Tag: %s\nPosition: %s\nIcon: %s", - "text": "Update", - "unchanged": "Unchanged", - "name": "Publish settings" - }, - "name": "Global tag settings", - "staged": { - "title": "Staged changes.", - "description": "Click on the \"Publish settings\" button to publish changes!" - } - }, - "clearCache": { - "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", - "name": "Clear cache", - "text": "Clear" - }, - "localizedResponses": { - "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." - }, - "joinDiscord": { - "text": "Join", - "name": "Discord Server" - }, - "showBackground": { - "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." - }, - "header": { - "tags": { - "name": "Tag settings" - }, - "display": { - "name": "Display settings" - } - }, - "tagSize": { - "name": "Tag size" - }, - "showOwnTag": { - "name": "Show own tag" - }, - "enabled": { - "name": "Enabled" - } - }, - "commands": { - "link": { - "email": { - "verify": "Verify email", - "hover": "Click to enter verification code" - }, - "discord": { - "copied": "The code was copied to your clipboard!" - } - }, - "base": { - "clear_cache": { - "label": "Clear cache", - "hover": "Click here to clear the tag cache!" - }, - "version": "Addon Version: %s", - "api": { - "offline": "Connection failed!", - "version": "API Version: %s" - } - }, - "usage": "Usage: %s", - "clear_cache": { - "success": "The cache was cleared!" - }, - "renew_cache": { - "success": "The cache was renewed!" - } - }, - "general": { - "error": "An error ocurred", - "success": "Success!" - } - } -} +{} diff --git a/core/src/main/resources/assets/globaltags/i18n/de_at.json b/core/src/main/resources/assets/globaltags/i18n/de_at.json index b8576bc..0967ef4 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_at.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_at.json @@ -1,198 +1 @@ -{ - "globaltags": { - "settings": { - "tags": { - "globalIcon": { - "entries": { - "statsfm": "StatsFM", - "x": "x", - "epicgames": "Epic Games", - "apple": "Apple", - "ebio": "e.bio", - "discord": "Discord", - "kick": "Kick", - "star": "Star", - "android": "Android", - "snapchat": "Snapchat", - "telegram": "Telegram", - "crown": "Crown", - "twitch": "Twitch", - "soundcloud": "Soundcloud", - "custom": "Custom", - "steam": "Steam", - "none": "None", - "labynet": "laby.net", - "xbox": "Xbox", - "reddit": "Reddit", - "pinterest": "Pinterest", - "paypal": "PayPal", - "heart": "Heart", - "gamescom": "Gamescom", - "threads": "Threads", - "tiktok": "TikTok", - "duolingo": "Luodingo", - "github": "GitHub", - "gitlab": "GitLab", - "instagram": "Instagram", - "spotify": "Spotify", - "bereal": "BeReal.", - "playstation": "Playstation", - "youtube": "YouTube" - }, - "description": "This icon will be displayed left to your tag globally.", - "name": "Global icon" - }, - "position": { - "entries": { - "left": "Left to name", - "below": "Below name", - "right": "Right to name", - "above": "Above name" - }, - "description": "Your tag is visible in this position to everyone.", - "name": "Global position" - }, - "tagPreview": { - "appeal": { - "popup": { - "label": "Why should we unban you?", - "placeholder": "Please enter a reason...", - "button": "Send appeal" - }, - "description": "⚠ This button will only be clickable if your suspension is appealable.", - "name": "Appeal" - }, - "name": "Tag Preview", - "emptyReason": "No reason provided", - "noInfo": "Couldn't fetch account info!", - "labyConnect": "You're not connected to LabyConnect!", - "empty": "", - "banned": "Your account is suspended!\nReason: %s" - }, - "resetTag": { - "name": "Delete global tag", - "text": "Delete" - }, - "tag": { - "name": "Global tag" - }, - "updateSettings": { - "result": "Tag: %s\nPosition: %s\nIcon: %s", - "text": "Update", - "unchanged": "Unchanged", - "name": "Publish settings" - }, - "name": "Global tag settings", - "staged": { - "title": "Staged changes.", - "description": "Click on the \"Publish settings\" button to publish changes!" - } - }, - "clearCache": { - "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", - "name": "Clear cache", - "text": "Clear" - }, - "localizedResponses": { - "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." - }, - "joinDiscord": { - "text": "Join", - "name": "Discord Server" - }, - "showBackground": { - "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." - }, - "header": { - "tags": { - "name": "Tag settings" - }, - "display": { - "name": "Display settings" - } - }, - "tagSize": { - "name": "Tag size" - }, - "showOwnTag": { - "name": "Show own tag" - }, - "enabled": { - "name": "Enabled" - } - }, - "context": { - "ban": { - "send": "Ban", - "title": "Ban %s", - "name": "Ban GlobalTag player" - }, - "editBan": { - "appealable": "Appealable", - "name": "Edit GlobalTag ban", - "send": "Submit changes", - "title": "Edit %s's ban" - }, - "report": { - "send": "Send report", - "name": "Report GlobalTag", - "title": "Report %s" - }, - "reason": "Reason", - "changeTag": { - "placeholder": "Enter the updated GlobalTag...", - "name": "Change GlobalTag", - "label": "New GlobalTag", - "send": "Update Tag", - "title": "Change %s's Tag" - }, - "unban": { - "title": "Unban %s", - "name": "Unban GlobalTag player", - "send": "Unban" - }, - "clearTag": { - "name": "Clear GlobalTag" - }, - "referral": { - "name": "This player invited me to GlobalTags" - }, - "placeholder": "Please enter a reason..." - }, - "commands": { - "link": { - "email": { - "verify": "Verify email", - "hover": "Click to enter verification code" - }, - "discord": { - "copied": "The code was copied to your clipboard!" - } - }, - "base": { - "clear_cache": { - "label": "Clear cache", - "hover": "Click here to clear the tag cache!" - }, - "version": "Addon Version: %s", - "api": { - "offline": "Connection failed!", - "version": "API Version: %s" - } - }, - "usage": "Usage: %s", - "clear_cache": { - "success": "The cache was cleared!" - }, - "renew_cache": { - "success": "The cache was renewed!" - } - }, - "general": { - "error": "An error ocurred", - "success": "Success!" - } - } -} +{} diff --git a/core/src/main/resources/assets/globaltags/i18n/es_es.json b/core/src/main/resources/assets/globaltags/i18n/es_es.json index b2f5bb2..0967ef4 100644 --- a/core/src/main/resources/assets/globaltags/i18n/es_es.json +++ b/core/src/main/resources/assets/globaltags/i18n/es_es.json @@ -1,198 +1 @@ -{ - "globaltags": { - "settings": { - "tags": { - "position": { - "name": "Global position", - "entries": { - "left": "Left to name", - "below": "Below name", - "right": "Right to name", - "above": "Above name" - }, - "description": "Your tag is visible in this position to everyone." - }, - "globalIcon": { - "entries": { - "statsfm": "StatsFM", - "x": "x", - "epicgames": "Epic Games", - "apple": "Apple", - "ebio": "e.bio", - "discord": "Discord", - "kick": "Kick", - "star": "Star", - "android": "Android", - "snapchat": "Snapchat", - "telegram": "Telegram", - "crown": "Crown", - "twitch": "Twitch", - "soundcloud": "Soundcloud", - "custom": "Custom", - "steam": "Steam", - "none": "None", - "labynet": "laby.net", - "xbox": "Xbox", - "reddit": "Reddit", - "pinterest": "Pinterest", - "paypal": "PayPal", - "heart": "Heart", - "gamescom": "Gamescom", - "threads": "Threads", - "tiktok": "TikTok", - "duolingo": "Luodingo", - "github": "GitHub", - "gitlab": "GitLab", - "instagram": "Instagram", - "spotify": "Spotify", - "bereal": "BeReal.", - "playstation": "Playstation", - "youtube": "YouTube" - }, - "description": "This icon will be displayed left to your tag globally.", - "name": "Global icon" - }, - "resetTag": { - "text": "Delete", - "name": "Delete global tag" - }, - "tagPreview": { - "appeal": { - "popup": { - "label": "Why should we unban you?", - "placeholder": "Please enter a reason...", - "button": "Send appeal" - }, - "description": "⚠ This button will only be clickable if your suspension is appealable.", - "name": "Appeal" - }, - "name": "Tag Preview", - "emptyReason": "No reason provided", - "noInfo": "Couldn't fetch account info!", - "labyConnect": "You're not connected to LabyConnect!", - "empty": "", - "banned": "Your account is suspended!\nReason: %s" - }, - "tag": { - "name": "Global tag" - }, - "updateSettings": { - "result": "Tag: %s\nPosition: %s\nIcon: %s", - "text": "Update", - "unchanged": "Unchanged", - "name": "Publish settings" - }, - "name": "Global tag settings", - "staged": { - "title": "Staged changes.", - "description": "Click on the \"Publish settings\" button to publish changes!" - } - }, - "clearCache": { - "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", - "name": "Clear cache", - "text": "Clear" - }, - "localizedResponses": { - "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." - }, - "joinDiscord": { - "text": "Join", - "name": "Discord Server" - }, - "showBackground": { - "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." - }, - "header": { - "tags": { - "name": "Tag settings" - }, - "display": { - "name": "Display settings" - } - }, - "tagSize": { - "name": "Tag size" - }, - "showOwnTag": { - "name": "Show own tag" - }, - "enabled": { - "name": "Enabled" - } - }, - "context": { - "ban": { - "send": "Ban", - "title": "Ban %s", - "name": "Ban GlobalTag player" - }, - "editBan": { - "appealable": "Appealable", - "name": "Edit GlobalTag ban", - "send": "Submit changes", - "title": "Edit %s's ban" - }, - "report": { - "send": "Send report", - "name": "Report GlobalTag", - "title": "Report %s" - }, - "reason": "Reason", - "changeTag": { - "placeholder": "Enter the updated GlobalTag...", - "name": "Change GlobalTag", - "label": "New GlobalTag", - "send": "Update Tag", - "title": "Change %s's Tag" - }, - "unban": { - "title": "Unban %s", - "name": "Unban GlobalTag player", - "send": "Unban" - }, - "clearTag": { - "name": "Clear GlobalTag" - }, - "referral": { - "name": "This player invited me to GlobalTags" - }, - "placeholder": "Please enter a reason..." - }, - "commands": { - "link": { - "email": { - "verify": "Verify email", - "hover": "Click to enter verification code" - }, - "discord": { - "copied": "The code was copied to your clipboard!" - } - }, - "base": { - "clear_cache": { - "label": "Clear cache", - "hover": "Click here to clear the tag cache!" - }, - "version": "Addon Version: %s", - "api": { - "offline": "Connection failed!", - "version": "API Version: %s" - } - }, - "usage": "Usage: %s", - "clear_cache": { - "success": "The cache was cleared!" - }, - "renew_cache": { - "success": "The cache was renewed!" - } - }, - "general": { - "error": "An error ocurred", - "success": "Success!" - } - } -} +{} diff --git a/core/src/main/resources/assets/globaltags/i18n/is_is.json b/core/src/main/resources/assets/globaltags/i18n/is_is.json index b8576bc..0967ef4 100644 --- a/core/src/main/resources/assets/globaltags/i18n/is_is.json +++ b/core/src/main/resources/assets/globaltags/i18n/is_is.json @@ -1,198 +1 @@ -{ - "globaltags": { - "settings": { - "tags": { - "globalIcon": { - "entries": { - "statsfm": "StatsFM", - "x": "x", - "epicgames": "Epic Games", - "apple": "Apple", - "ebio": "e.bio", - "discord": "Discord", - "kick": "Kick", - "star": "Star", - "android": "Android", - "snapchat": "Snapchat", - "telegram": "Telegram", - "crown": "Crown", - "twitch": "Twitch", - "soundcloud": "Soundcloud", - "custom": "Custom", - "steam": "Steam", - "none": "None", - "labynet": "laby.net", - "xbox": "Xbox", - "reddit": "Reddit", - "pinterest": "Pinterest", - "paypal": "PayPal", - "heart": "Heart", - "gamescom": "Gamescom", - "threads": "Threads", - "tiktok": "TikTok", - "duolingo": "Luodingo", - "github": "GitHub", - "gitlab": "GitLab", - "instagram": "Instagram", - "spotify": "Spotify", - "bereal": "BeReal.", - "playstation": "Playstation", - "youtube": "YouTube" - }, - "description": "This icon will be displayed left to your tag globally.", - "name": "Global icon" - }, - "position": { - "entries": { - "left": "Left to name", - "below": "Below name", - "right": "Right to name", - "above": "Above name" - }, - "description": "Your tag is visible in this position to everyone.", - "name": "Global position" - }, - "tagPreview": { - "appeal": { - "popup": { - "label": "Why should we unban you?", - "placeholder": "Please enter a reason...", - "button": "Send appeal" - }, - "description": "⚠ This button will only be clickable if your suspension is appealable.", - "name": "Appeal" - }, - "name": "Tag Preview", - "emptyReason": "No reason provided", - "noInfo": "Couldn't fetch account info!", - "labyConnect": "You're not connected to LabyConnect!", - "empty": "", - "banned": "Your account is suspended!\nReason: %s" - }, - "resetTag": { - "name": "Delete global tag", - "text": "Delete" - }, - "tag": { - "name": "Global tag" - }, - "updateSettings": { - "result": "Tag: %s\nPosition: %s\nIcon: %s", - "text": "Update", - "unchanged": "Unchanged", - "name": "Publish settings" - }, - "name": "Global tag settings", - "staged": { - "title": "Staged changes.", - "description": "Click on the \"Publish settings\" button to publish changes!" - } - }, - "clearCache": { - "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", - "name": "Clear cache", - "text": "Clear" - }, - "localizedResponses": { - "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." - }, - "joinDiscord": { - "text": "Join", - "name": "Discord Server" - }, - "showBackground": { - "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." - }, - "header": { - "tags": { - "name": "Tag settings" - }, - "display": { - "name": "Display settings" - } - }, - "tagSize": { - "name": "Tag size" - }, - "showOwnTag": { - "name": "Show own tag" - }, - "enabled": { - "name": "Enabled" - } - }, - "context": { - "ban": { - "send": "Ban", - "title": "Ban %s", - "name": "Ban GlobalTag player" - }, - "editBan": { - "appealable": "Appealable", - "name": "Edit GlobalTag ban", - "send": "Submit changes", - "title": "Edit %s's ban" - }, - "report": { - "send": "Send report", - "name": "Report GlobalTag", - "title": "Report %s" - }, - "reason": "Reason", - "changeTag": { - "placeholder": "Enter the updated GlobalTag...", - "name": "Change GlobalTag", - "label": "New GlobalTag", - "send": "Update Tag", - "title": "Change %s's Tag" - }, - "unban": { - "title": "Unban %s", - "name": "Unban GlobalTag player", - "send": "Unban" - }, - "clearTag": { - "name": "Clear GlobalTag" - }, - "referral": { - "name": "This player invited me to GlobalTags" - }, - "placeholder": "Please enter a reason..." - }, - "commands": { - "link": { - "email": { - "verify": "Verify email", - "hover": "Click to enter verification code" - }, - "discord": { - "copied": "The code was copied to your clipboard!" - } - }, - "base": { - "clear_cache": { - "label": "Clear cache", - "hover": "Click here to clear the tag cache!" - }, - "version": "Addon Version: %s", - "api": { - "offline": "Connection failed!", - "version": "API Version: %s" - } - }, - "usage": "Usage: %s", - "clear_cache": { - "success": "The cache was cleared!" - }, - "renew_cache": { - "success": "The cache was renewed!" - } - }, - "general": { - "error": "An error ocurred", - "success": "Success!" - } - } -} +{} diff --git a/core/src/main/resources/assets/globaltags/i18n/nl_nl.json b/core/src/main/resources/assets/globaltags/i18n/nl_nl.json index 07052a5..0967ef4 100644 --- a/core/src/main/resources/assets/globaltags/i18n/nl_nl.json +++ b/core/src/main/resources/assets/globaltags/i18n/nl_nl.json @@ -1,198 +1 @@ -{ - "globaltags": { - "settings": { - "tags": { - "globalIcon": { - "entries": { - "statsfm": "StatsFM", - "x": "x", - "epicgames": "Epic Games", - "apple": "Apple", - "ebio": "e.bio", - "discord": "Discord", - "kick": "Kick", - "star": "Star", - "android": "Android", - "snapchat": "Snapchat", - "telegram": "Telegram", - "crown": "Crown", - "twitch": "Twitch", - "soundcloud": "Soundcloud", - "custom": "Custom", - "steam": "Steam", - "none": "None", - "labynet": "laby.net", - "xbox": "Xbox", - "reddit": "Reddit", - "pinterest": "Pinterest", - "paypal": "PayPal", - "heart": "Heart", - "gamescom": "Gamescom", - "threads": "Threads", - "tiktok": "TikTok", - "duolingo": "Luodingo", - "github": "GitHub", - "gitlab": "GitLab", - "instagram": "Instagram", - "spotify": "Spotify", - "bereal": "BeReal.", - "playstation": "Playstation", - "youtube": "YouTube" - }, - "description": "This icon will be displayed left to your tag globally.", - "name": "Global icon" - }, - "position": { - "entries": { - "left": "Left to name", - "below": "Below name", - "right": "Right to name", - "above": "Above name" - }, - "description": "Your tag is visible in this position to everyone.", - "name": "Global position" - }, - "tagPreview": { - "appeal": { - "popup": { - "label": "Why should we unban you?", - "placeholder": "Please enter a reason…", - "button": "Send appeal" - }, - "description": "⚠ This button will only be clickable if your suspension is appealable.", - "name": "Appeal" - }, - "name": "Tag Preview", - "emptyReason": "No reason provided", - "noInfo": "Couldn't fetch account info!", - "labyConnect": "You're not connected to LabyConnect!", - "empty": "", - "banned": "Your account is suspended!\nReason: %s" - }, - "resetTag": { - "name": "Delete global tag", - "text": "Delete" - }, - "tag": { - "name": "Global tag" - }, - "updateSettings": { - "result": "Tag: %s\nPosition: %s\nIcon: %s", - "text": "Update", - "unchanged": "Unchanged", - "name": "Publish settings" - }, - "name": "Global tag settings", - "staged": { - "title": "Staged changes", - "description": "Click on the \"Publish settings\" button to publish changes!" - } - }, - "clearCache": { - "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", - "name": "Clear cache", - "text": "Clear" - }, - "localizedResponses": { - "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." - }, - "joinDiscord": { - "text": "Join", - "name": "Discord Server" - }, - "showBackground": { - "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." - }, - "header": { - "tags": { - "name": "Tag settings" - }, - "display": { - "name": "Display settings" - } - }, - "tagSize": { - "name": "Tag size" - }, - "showOwnTag": { - "name": "Show own tag" - }, - "enabled": { - "name": "Enabled" - } - }, - "context": { - "ban": { - "send": "Ban", - "title": "Ban %s", - "name": "Ban GlobalTag player" - }, - "editBan": { - "appealable": "Appealable", - "name": "Edit GlobalTag ban", - "send": "Submit changes", - "title": "Edit %s's ban" - }, - "report": { - "send": "Send report", - "name": "Report GlobalTag", - "title": "Report %s" - }, - "reason": "Reason", - "changeTag": { - "placeholder": "Enter the updated GlobalTag…", - "name": "Change GlobalTag", - "label": "New GlobalTag", - "send": "Update Tag", - "title": "Change %s's Tag" - }, - "unban": { - "title": "Unban %s", - "name": "Unban GlobalTag player", - "send": "Unban" - }, - "clearTag": { - "name": "Clear GlobalTag" - }, - "referral": { - "name": "This player invited me to GlobalTags" - }, - "placeholder": "Please enter a reason…" - }, - "commands": { - "link": { - "email": { - "verify": "Verify email", - "hover": "Click to enter verification code" - }, - "discord": { - "copied": "The code was copied to your clipboard!" - } - }, - "base": { - "clear_cache": { - "label": "Clear cache", - "hover": "Click here to clear the tag cache!" - }, - "version": "Addon Version: %s", - "api": { - "offline": "Connection failed!", - "version": "API Version: %s" - } - }, - "usage": "Usage: %s", - "clear_cache": { - "success": "The cache was cleared!" - }, - "renew_cache": { - "success": "The cache was renewed!" - } - }, - "general": { - "error": "An error ocurred", - "success": "Success!" - } - } -} +{} diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json index e7b5e09..84b2754 100644 --- a/core/src/main/resources/assets/globaltags/i18n/no_no.json +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -1,109 +1,8 @@ { "globaltags": { "settings": { - "tags": { - "globalIcon": { - "entries": { - "statsfm": "StatsFM", - "x": "x", - "epicgames": "Epic Games", - "apple": "Apple", - "ebio": "e.bio", - "discord": "Discord", - "kick": "Kick", - "star": "Star", - "android": "Android", - "snapchat": "Snapchat", - "telegram": "Telegram", - "crown": "Crown", - "twitch": "Twitch", - "soundcloud": "Soundcloud", - "custom": "Custom", - "steam": "Steam", - "none": "None", - "labynet": "laby.net", - "xbox": "Xbox", - "reddit": "Reddit", - "pinterest": "Pinterest", - "paypal": "PayPal", - "heart": "Heart", - "gamescom": "Gamescom", - "threads": "Threads", - "tiktok": "TikTok", - "duolingo": "Luodingo", - "github": "GitHub", - "gitlab": "GitLab", - "instagram": "Instagram", - "spotify": "Spotify", - "bereal": "BeReal.", - "playstation": "Playstation", - "youtube": "YouTube" - }, - "description": "This icon will be displayed left to your tag globally.", - "name": "Global icon" - }, - "position": { - "entries": { - "left": "Left to name", - "below": "Below name", - "right": "Right to name", - "above": "Above name" - }, - "description": "Your tag is visible in this position to everyone.", - "name": "Global position" - }, - "tagPreview": { - "appeal": { - "popup": { - "label": "Why should we unban you?", - "placeholder": "Please enter a reason...", - "button": "Send appeal" - }, - "description": "⚠ This button will only be clickable if your suspension is appealable.", - "name": "Appeal" - }, - "name": "Tag Preview", - "emptyReason": "No reason provided", - "noInfo": "Couldn't fetch account info!", - "labyConnect": "You're not connected to LabyConnect!", - "empty": "", - "banned": "Your account is suspended!\nReason: %s" - }, - "resetTag": { - "name": "Delete global tag", - "text": "Delete" - }, - "tag": { - "name": "Global tag" - }, - "updateSettings": { - "result": "Tag: %s\nPosition: %s\nIcon: %s", - "text": "Update", - "unchanged": "Unchanged", - "name": "Publish settings" - }, - "name": "Global tag settings", - "staged": { - "title": "Staged changes.", - "description": "Click on the \"Publish settings\" button to publish changes!" - } - }, - "clearCache": { - "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", - "name": "Clear cache", - "text": "Clear" - }, - "localizedResponses": { - "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." - }, - "joinDiscord": { - "text": "Join", - "name": "Discord Server" - }, "showBackground": { - "name": "Vis bakgrunn", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + "name": "Vis bakgrunn" }, "header": { "tags": { @@ -116,83 +15,24 @@ "tagSize": { "name": "Tagstørrelse" }, - "showOwnTag": { - "name": "Show own tag" - }, "enabled": { "name": "Aktivert" } }, - "context": { - "ban": { - "send": "Ban", - "title": "Ban %s", - "name": "Ban GlobalTag player" - }, - "editBan": { - "appealable": "Appealable", - "name": "Edit GlobalTag ban", - "send": "Submit changes", - "title": "Edit %s's ban" - }, - "report": { - "send": "Send report", - "name": "Report GlobalTag", - "title": "Report %s" - }, - "reason": "Reason", - "changeTag": { - "placeholder": "Enter the updated GlobalTag...", - "name": "Change GlobalTag", - "label": "New GlobalTag", - "send": "Update Tag", - "title": "Change %s's Tag" - }, - "unban": { - "title": "Unban %s", - "name": "Unban GlobalTag player", - "send": "Unban" - }, - "clearTag": { - "name": "Clear GlobalTag" - }, - "referral": { - "name": "This player invited me to GlobalTags" - }, - "placeholder": "Please enter a reason..." - }, "commands": { "link": { "email": { "verify": "Bekreft e-post", "hover": "Klikk for å skrive inn bekreftelsekode" - }, - "discord": { - "copied": "The code was copied to your clipboard!" } }, "base": { - "clear_cache": { - "label": "Clear cache", - "hover": "Click here to clear the tag cache!" - }, - "version": "Addon Version: %s", "api": { "offline": "Koblingsfeil!", "version": "API Versjon: %s" } }, - "usage": "Bruk: %s", - "clear_cache": { - "success": "The cache was cleared!" - }, - "renew_cache": { - "success": "The cache was renewed!" - } - }, - "general": { - "error": "An error ocurred", - "success": "Success!" + "usage": "Bruk: %s" } } } diff --git a/core/src/main/resources/assets/globaltags/i18n/pl_pl.json b/core/src/main/resources/assets/globaltags/i18n/pl_pl.json index b8576bc..0967ef4 100644 --- a/core/src/main/resources/assets/globaltags/i18n/pl_pl.json +++ b/core/src/main/resources/assets/globaltags/i18n/pl_pl.json @@ -1,198 +1 @@ -{ - "globaltags": { - "settings": { - "tags": { - "globalIcon": { - "entries": { - "statsfm": "StatsFM", - "x": "x", - "epicgames": "Epic Games", - "apple": "Apple", - "ebio": "e.bio", - "discord": "Discord", - "kick": "Kick", - "star": "Star", - "android": "Android", - "snapchat": "Snapchat", - "telegram": "Telegram", - "crown": "Crown", - "twitch": "Twitch", - "soundcloud": "Soundcloud", - "custom": "Custom", - "steam": "Steam", - "none": "None", - "labynet": "laby.net", - "xbox": "Xbox", - "reddit": "Reddit", - "pinterest": "Pinterest", - "paypal": "PayPal", - "heart": "Heart", - "gamescom": "Gamescom", - "threads": "Threads", - "tiktok": "TikTok", - "duolingo": "Luodingo", - "github": "GitHub", - "gitlab": "GitLab", - "instagram": "Instagram", - "spotify": "Spotify", - "bereal": "BeReal.", - "playstation": "Playstation", - "youtube": "YouTube" - }, - "description": "This icon will be displayed left to your tag globally.", - "name": "Global icon" - }, - "position": { - "entries": { - "left": "Left to name", - "below": "Below name", - "right": "Right to name", - "above": "Above name" - }, - "description": "Your tag is visible in this position to everyone.", - "name": "Global position" - }, - "tagPreview": { - "appeal": { - "popup": { - "label": "Why should we unban you?", - "placeholder": "Please enter a reason...", - "button": "Send appeal" - }, - "description": "⚠ This button will only be clickable if your suspension is appealable.", - "name": "Appeal" - }, - "name": "Tag Preview", - "emptyReason": "No reason provided", - "noInfo": "Couldn't fetch account info!", - "labyConnect": "You're not connected to LabyConnect!", - "empty": "", - "banned": "Your account is suspended!\nReason: %s" - }, - "resetTag": { - "name": "Delete global tag", - "text": "Delete" - }, - "tag": { - "name": "Global tag" - }, - "updateSettings": { - "result": "Tag: %s\nPosition: %s\nIcon: %s", - "text": "Update", - "unchanged": "Unchanged", - "name": "Publish settings" - }, - "name": "Global tag settings", - "staged": { - "title": "Staged changes.", - "description": "Click on the \"Publish settings\" button to publish changes!" - } - }, - "clearCache": { - "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", - "name": "Clear cache", - "text": "Clear" - }, - "localizedResponses": { - "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." - }, - "joinDiscord": { - "text": "Join", - "name": "Discord Server" - }, - "showBackground": { - "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." - }, - "header": { - "tags": { - "name": "Tag settings" - }, - "display": { - "name": "Display settings" - } - }, - "tagSize": { - "name": "Tag size" - }, - "showOwnTag": { - "name": "Show own tag" - }, - "enabled": { - "name": "Enabled" - } - }, - "context": { - "ban": { - "send": "Ban", - "title": "Ban %s", - "name": "Ban GlobalTag player" - }, - "editBan": { - "appealable": "Appealable", - "name": "Edit GlobalTag ban", - "send": "Submit changes", - "title": "Edit %s's ban" - }, - "report": { - "send": "Send report", - "name": "Report GlobalTag", - "title": "Report %s" - }, - "reason": "Reason", - "changeTag": { - "placeholder": "Enter the updated GlobalTag...", - "name": "Change GlobalTag", - "label": "New GlobalTag", - "send": "Update Tag", - "title": "Change %s's Tag" - }, - "unban": { - "title": "Unban %s", - "name": "Unban GlobalTag player", - "send": "Unban" - }, - "clearTag": { - "name": "Clear GlobalTag" - }, - "referral": { - "name": "This player invited me to GlobalTags" - }, - "placeholder": "Please enter a reason..." - }, - "commands": { - "link": { - "email": { - "verify": "Verify email", - "hover": "Click to enter verification code" - }, - "discord": { - "copied": "The code was copied to your clipboard!" - } - }, - "base": { - "clear_cache": { - "label": "Clear cache", - "hover": "Click here to clear the tag cache!" - }, - "version": "Addon Version: %s", - "api": { - "offline": "Connection failed!", - "version": "API Version: %s" - } - }, - "usage": "Usage: %s", - "clear_cache": { - "success": "The cache was cleared!" - }, - "renew_cache": { - "success": "The cache was renewed!" - } - }, - "general": { - "error": "An error ocurred", - "success": "Success!" - } - } -} +{} diff --git a/core/src/main/resources/assets/globaltags/i18n/ru_ru.json b/core/src/main/resources/assets/globaltags/i18n/ru_ru.json index b8576bc..0967ef4 100644 --- a/core/src/main/resources/assets/globaltags/i18n/ru_ru.json +++ b/core/src/main/resources/assets/globaltags/i18n/ru_ru.json @@ -1,198 +1 @@ -{ - "globaltags": { - "settings": { - "tags": { - "globalIcon": { - "entries": { - "statsfm": "StatsFM", - "x": "x", - "epicgames": "Epic Games", - "apple": "Apple", - "ebio": "e.bio", - "discord": "Discord", - "kick": "Kick", - "star": "Star", - "android": "Android", - "snapchat": "Snapchat", - "telegram": "Telegram", - "crown": "Crown", - "twitch": "Twitch", - "soundcloud": "Soundcloud", - "custom": "Custom", - "steam": "Steam", - "none": "None", - "labynet": "laby.net", - "xbox": "Xbox", - "reddit": "Reddit", - "pinterest": "Pinterest", - "paypal": "PayPal", - "heart": "Heart", - "gamescom": "Gamescom", - "threads": "Threads", - "tiktok": "TikTok", - "duolingo": "Luodingo", - "github": "GitHub", - "gitlab": "GitLab", - "instagram": "Instagram", - "spotify": "Spotify", - "bereal": "BeReal.", - "playstation": "Playstation", - "youtube": "YouTube" - }, - "description": "This icon will be displayed left to your tag globally.", - "name": "Global icon" - }, - "position": { - "entries": { - "left": "Left to name", - "below": "Below name", - "right": "Right to name", - "above": "Above name" - }, - "description": "Your tag is visible in this position to everyone.", - "name": "Global position" - }, - "tagPreview": { - "appeal": { - "popup": { - "label": "Why should we unban you?", - "placeholder": "Please enter a reason...", - "button": "Send appeal" - }, - "description": "⚠ This button will only be clickable if your suspension is appealable.", - "name": "Appeal" - }, - "name": "Tag Preview", - "emptyReason": "No reason provided", - "noInfo": "Couldn't fetch account info!", - "labyConnect": "You're not connected to LabyConnect!", - "empty": "", - "banned": "Your account is suspended!\nReason: %s" - }, - "resetTag": { - "name": "Delete global tag", - "text": "Delete" - }, - "tag": { - "name": "Global tag" - }, - "updateSettings": { - "result": "Tag: %s\nPosition: %s\nIcon: %s", - "text": "Update", - "unchanged": "Unchanged", - "name": "Publish settings" - }, - "name": "Global tag settings", - "staged": { - "title": "Staged changes.", - "description": "Click on the \"Publish settings\" button to publish changes!" - } - }, - "clearCache": { - "description": "Clears the tag-cache manually.\nThe cache get's cleared automatically every §b5 minutes§f.\nYou can additionally clear the cache with §b/gt cc§f.", - "name": "Clear cache", - "text": "Clear" - }, - "localizedResponses": { - "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." - }, - "joinDiscord": { - "text": "Join", - "name": "Discord Server" - }, - "showBackground": { - "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." - }, - "header": { - "tags": { - "name": "Tag settings" - }, - "display": { - "name": "Display settings" - } - }, - "tagSize": { - "name": "Tag size" - }, - "showOwnTag": { - "name": "Show own tag" - }, - "enabled": { - "name": "Enabled" - } - }, - "context": { - "ban": { - "send": "Ban", - "title": "Ban %s", - "name": "Ban GlobalTag player" - }, - "editBan": { - "appealable": "Appealable", - "name": "Edit GlobalTag ban", - "send": "Submit changes", - "title": "Edit %s's ban" - }, - "report": { - "send": "Send report", - "name": "Report GlobalTag", - "title": "Report %s" - }, - "reason": "Reason", - "changeTag": { - "placeholder": "Enter the updated GlobalTag...", - "name": "Change GlobalTag", - "label": "New GlobalTag", - "send": "Update Tag", - "title": "Change %s's Tag" - }, - "unban": { - "title": "Unban %s", - "name": "Unban GlobalTag player", - "send": "Unban" - }, - "clearTag": { - "name": "Clear GlobalTag" - }, - "referral": { - "name": "This player invited me to GlobalTags" - }, - "placeholder": "Please enter a reason..." - }, - "commands": { - "link": { - "email": { - "verify": "Verify email", - "hover": "Click to enter verification code" - }, - "discord": { - "copied": "The code was copied to your clipboard!" - } - }, - "base": { - "clear_cache": { - "label": "Clear cache", - "hover": "Click here to clear the tag cache!" - }, - "version": "Addon Version: %s", - "api": { - "offline": "Connection failed!", - "version": "API Version: %s" - } - }, - "usage": "Usage: %s", - "clear_cache": { - "success": "The cache was cleared!" - }, - "renew_cache": { - "success": "The cache was renewed!" - } - }, - "general": { - "error": "An error ocurred", - "success": "Success!" - } - } -} +{} From ed7b1ee4192831aec18af839117ef2f5c3482ef8 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 21 Nov 2024 02:21:49 +0100 Subject: [PATCH 34/41] Translated using Weblate (German) Currently translated at 89.6% (112 of 125 strings) Translated using Weblate (English (United States)) Currently translated at 100.0% (125 of 125 strings) Co-authored-by: RappyTV Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/de/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/en_US/ Translation: GlobalTags/LabyAddon --- .../assets/globaltags/i18n/de_de.json | 68 +++++++++---------- .../assets/globaltags/i18n/en_us.json | 2 +- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/de_de.json b/core/src/main/resources/assets/globaltags/i18n/de_de.json index 4211fdd..c6c2099 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_de.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_de.json @@ -54,7 +54,7 @@ } }, "tag": { - "name": "Global Tag" + "name": "Globaler Tag" }, "position": { "name": "Globale Position", @@ -70,40 +70,40 @@ "name": "Globales Icon", "description": "Dieses Icon wird global links neben deinem Tag angezeigt.", "entries": { - "none": "None", - "custom": "Eigenes Icon", - "android": "Android", - "apple": "Apple", - "bereal": "BeReal.", - "crown": "Crown", - "discord": "Discord", - "duolingo": "Luodingo", - "ebio": "e.bio", - "epicgames": "Epic Games", - "gamescom": "Gamescom", - "github": "GitHub", - "gitlab": "GitLab", - "heart": "Heart", - "instagram": "Instagram", - "kick": "Kick", - "labynet": "laby.net", - "paypal": "PayPal", - "pinterest": "Pinterest", - "playstation": "Playstation", - "reddit": "Reddit", - "snapchat": "Snapchat", - "soundcloud": "Soundcloud", - "spotify": "Spotify", - "star": "Star", - "statsfm": "StatsFM", - "steam": "Steam", + "none": "Kein Icon", + "custom": "Custom", + "android": "", + "apple": "", + "bereal": "", + "crown": "Krone", + "discord": "", + "duolingo": "", + "ebio": "", + "epicgames": "", + "gamescom": "", + "github": "", + "gitlab": "", + "heart": "Herz", + "instagram": "", + "kick": "", + "labynet": "", + "paypal": "", + "pinterest": "", + "playstation": "", + "reddit": "", + "snapchat": "", + "soundcloud": "", + "spotify": "", + "star": "Stern", + "statsfm": "", + "steam": "", "telegram": "Telegram", - "threads": "Threads", - "tiktok": "TikTok", - "twitch": "Twitch", - "x": "x", - "xbox": "Xbox", - "youtube": "YouTube" + "threads": "", + "tiktok": "", + "twitch": "", + "x": "", + "xbox": "", + "youtube": "" } }, "updateSettings": { diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index e480c4a..c5ee371 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -54,7 +54,7 @@ } }, "tag": { - "name": "Global tag" + "name": "Global Tag" }, "position": { "name": "Global position", From 3a403b588f844517e2c55feca700148dbc5585b3 Mon Sep 17 00:00:00 2001 From: Weblate Date: Fri, 22 Nov 2024 03:02:49 +0100 Subject: [PATCH 35/41] Translated using Weblate (German) Currently translated at 100.0% (125 of 125 strings) Co-authored-by: RappyTV Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/de/ Translation: GlobalTags/LabyAddon --- .../assets/globaltags/i18n/de_de.json | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/core/src/main/resources/assets/globaltags/i18n/de_de.json b/core/src/main/resources/assets/globaltags/i18n/de_de.json index c6c2099..9e216b6 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_de.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_de.json @@ -192,6 +192,27 @@ }, "clearTag": { "name": "GlobalTag löschen" + }, + "staff_notes": { + "name": "GlobalTags Notizen verwalten", + "title": "%s's Notizen", + "description": "erstellt am %s (#%s)", + "hover": { + "create": "Notiz erstellen", + "delete": "Klicke, um zu löschen", + "deleted": "Erfolgreich gelöscht!" + }, + "create": { + "title": "Notiz für %s erstellen", + "label": "Notiz", + "placeholder": "Notiz eingeben…", + "send": "Erstellen" + } + }, + "tag_history": { + "name": "GlobalTag-Verlauf anzeigen", + "title": "%s's Tag-Verlauf", + "flagged_words": "Geflaggte Wörter:" } } } From bffc12aa21d1e0b430b31c484f3075a7457eb10d Mon Sep 17 00:00:00 2001 From: Weblate Date: Fri, 22 Nov 2024 03:58:05 +0100 Subject: [PATCH 36/41] =?UTF-8?q?Translated=20using=20Weblate=20(Norwegian?= =?UTF-8?q?=20Bokm=C3=A5l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 47.2% (59 of 125 strings) Translated using Weblate (Spanish) Currently translated at 40.0% (50 of 125 strings) Translated using Weblate (English (United States)) Currently translated at 100.0% (125 of 125 strings) Co-authored-by: Kubii Co-authored-by: RappyTV Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/en_US/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/es/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/nb_NO/ Translation: GlobalTags/LabyAddon --- .../assets/globaltags/i18n/en_us.json | 4 +- .../assets/globaltags/i18n/es_es.json | 55 ++++++++++++++++++- .../assets/globaltags/i18n/no_no.json | 37 ++++++++++++- 3 files changed, 92 insertions(+), 4 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index c5ee371..157523e 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -33,7 +33,7 @@ "tags": { "name": "Global tag settings", "staged": { - "title": "Staged changes", + "title": "Pending changes", "description": "Click on the \"Publish settings\" button to publish changes!" }, "tagPreview": { @@ -45,7 +45,7 @@ "emptyReason": "No reason provided", "appeal": { "name": "Appeal", - "description": "⚠ This button will only be clickable if your suspension is appealable.", + "description": "⚠️ This button will only be clickable if your suspension is appealable.", "popup": { "label": "Why should we unban you?", "placeholder": "Please enter a reason…", diff --git a/core/src/main/resources/assets/globaltags/i18n/es_es.json b/core/src/main/resources/assets/globaltags/i18n/es_es.json index 0967ef4..f7b1f02 100644 --- a/core/src/main/resources/assets/globaltags/i18n/es_es.json +++ b/core/src/main/resources/assets/globaltags/i18n/es_es.json @@ -1 +1,54 @@ -{} +{ + "globaltags": { + "settings": { + "tags": { + "staged": { + "description": "¡Haz clic en el botón «Publicar ajustes» para publicar los cambios!", + "title": "Cambios pendientes" + }, + "tagPreview": { + "emptyReason": "No se da ninguna razón", + "name": "Vista previa de tu Tag", + "banned": "¡Tu cuenta está suspendida!\nRazón: %s", + "noInfo": "¡No se ha podido obtener la info de la cuenta!", + "labyConnect": "¡No estás conectado a LabyConnect!", + "empty": "", + "appeal": { + "name": "Apelación" + } + }, + "name": "Configuración global de tu tag", + "updateSettings": { + "name": "Publicar ajustes" + } + }, + "showBackground": { + "name": "Mostrar fondo" + }, + "joinDiscord": { + "name": "Servidor de Discord", + "text": "Únete" + }, + "showOwnTag": { + "name": "Mostrar tag propio" + }, + "tagSize": { + "name": "Tamaño de tags" + }, + "header": { + "display": { + "name": "Configuración de visualización" + }, + "tags": { + "name": "Configuración de tags" + } + }, + "enabled": { + "name": "Activado" + }, + "localizedResponses": { + "name": "Localizar respuestas de la API" + } + } + } +} diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json index 84b2754..0f21596 100644 --- a/core/src/main/resources/assets/globaltags/i18n/no_no.json +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -2,7 +2,8 @@ "globaltags": { "settings": { "showBackground": { - "name": "Vis bakgrunn" + "name": "Vis bakgrunn", + "description": "Når dette valgmulighet er aktivert, vil du se den grå vaniljenavnemerkebakgrunnen bak globale tagger." }, "header": { "tags": { @@ -17,6 +18,40 @@ }, "enabled": { "name": "Aktivert" + }, + "localizedResponses": { + "name": "Lokaliser API-svar", + "description": "Hvis dette valgmulighet er aktivert, sender tillegget også minecraft-språket ditt til API-en. Hvis oversettelsene finnes, vil du motta lokaliserte svar. Minecraft-språket ditt vil ikke bli lagret noe sted." + }, + "tags": { + "staged": { + "description": "Klikk på \"Publiser innstillinger\"-knappen for å publisere endringer!" + }, + "tagPreview": { + "noInfo": "Kunne ikke hente kontoinformasjon!", + "appeal": { + "popup": { + "placeholder": "Venligst skriv inn en grunn…", + "label": "Hvorfor burde vi oppheve forbudet ditt?", + "button": "Send en anke" + }, + "name": "Anke", + "description": "⚠ Denne knappen kan bare klikkes hvis suspensjonen din kan ankes." + }, + "name": "Tag Forhåndsvisning", + "banned": "Kontoen din ble suspendert!\nGrunn: %s", + "labyConnect": "Du er ikke koblet til LabyConnect!", + "empty": "", + "emptyReason": "Ingen grunn oppgitt" + }, + "name": "Global tag-instillinger" + }, + "joinDiscord": { + "name": "Discord Server", + "text": "Bli med" + }, + "showOwnTag": { + "name": "Vis egen tag" } }, "commands": { From ca3809f0310647fb6e01e8909b98315640672410 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Fri, 22 Nov 2024 04:06:23 +0100 Subject: [PATCH 37/41] Fix tag history entries being in aqua by default --- .../globaltags/activities/widgets/TagHistoryEntryWidget.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/rappytv/globaltags/activities/widgets/TagHistoryEntryWidget.java b/core/src/main/java/com/rappytv/globaltags/activities/widgets/TagHistoryEntryWidget.java index f34e7b8..3b9c6ea 100644 --- a/core/src/main/java/com/rappytv/globaltags/activities/widgets/TagHistoryEntryWidget.java +++ b/core/src/main/java/com/rappytv/globaltags/activities/widgets/TagHistoryEntryWidget.java @@ -30,7 +30,8 @@ public void initialize(Parent parent) { ComponentWidget text = ComponentWidget .component( Component - .text(number + ". ", NamedTextColor.AQUA) + .empty() + .append(Component.text(number + ". ", NamedTextColor.AQUA)) .append(api.translateColorCodes(entry.tag())) ) .addId("text-component"); From 068f2b26e256de45b56fee6fb2ba88aaa5a7b07f Mon Sep 17 00:00:00 2001 From: Weblate Date: Fri, 22 Nov 2024 04:26:40 +0100 Subject: [PATCH 38/41] =?UTF-8?q?Translated=20using=20Weblate=20(Norwegian?= =?UTF-8?q?=20Bokm=C3=A5l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 79.2% (99 of 125 strings) Translated using Weblate (Spanish) Currently translated at 97.6% (122 of 125 strings) Translated using Weblate (English (United States)) Currently translated at 100.0% (125 of 125 strings) Co-authored-by: Kubii Co-authored-by: RappyTV Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/en_US/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/es/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/nb_NO/ Translation: GlobalTags/LabyAddon --- .../assets/globaltags/i18n/en_us.json | 2 +- .../assets/globaltags/i18n/es_es.json | 136 +++++++++++++++++- .../assets/globaltags/i18n/no_no.json | 85 ++++++++++- 3 files changed, 216 insertions(+), 7 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index 157523e..b3217b3 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -113,7 +113,7 @@ "unchanged": "Unchanged" }, "resetTag": { - "name": "Delete global tag", + "name": "Delete GlobalTag", "text": "Delete" } }, diff --git a/core/src/main/resources/assets/globaltags/i18n/es_es.json b/core/src/main/resources/assets/globaltags/i18n/es_es.json index f7b1f02..fffe448 100644 --- a/core/src/main/resources/assets/globaltags/i18n/es_es.json +++ b/core/src/main/resources/assets/globaltags/i18n/es_es.json @@ -14,12 +14,48 @@ "labyConnect": "¡No estás conectado a LabyConnect!", "empty": "", "appeal": { - "name": "Apelación" + "name": "Apelación", + "description": "⚠️ Este botón sólo se podrá pulsar si tu suspensión es apelable.", + "popup": { + "label": "¿Por qué deberíamos desbanearte?", + "placeholder": "Por favor, escriba una razón…", + "button": "Enviar apelación" + } } }, "name": "Configuración global de tu tag", "updateSettings": { - "name": "Publicar ajustes" + "name": "Publicar ajustes", + "text": "Actualizar", + "result": "Tag: %s\nPosición: %s\nIcono: %s", + "unchanged": "Sin cambios" + }, + "position": { + "entries": { + "right": "A la derecha", + "above": "Sobre el nombre", + "below": "Debajo del nombre", + "left": "A la izquierda" + }, + "name": "Posición global", + "description": "Tu tag es visible en esta posición para todo el mundo." + }, + "resetTag": { + "text": "Borrar", + "name": "Borrar GlobalTag" + }, + "globalIcon": { + "name": "Icono global", + "description": "Este icono se muestra globalmente a la izquierda de tu tag.", + "entries": { + "none": "Ningún", + "custom": "Personalizado", + "heart": "Corazón", + "star": "Estrella" + } + }, + "tag": { + "name": "Tag global" } }, "showBackground": { @@ -48,7 +84,103 @@ }, "localizedResponses": { "name": "Localizar respuestas de la API" + }, + "clearCache": { + "name": "Limpiar caché", + "text": "Limpiar" + } + }, + "commands": { + "link": { + "email": { + "verify": "Verificar correo electrónico", + "hover": "Haz clic para introducir el código de verificación" + }, + "discord": { + "copied": "¡El código se ha copiado en tu portapapeles!" + } + }, + "base": { + "clear_cache": { + "hover": "¡Haz clic aquí para limpiar el caché de etiquetas!", + "label": "Limpiar caché" + }, + "version": "Versión del Addon: %s", + "api": { + "version": "Versión de la API: %s", + "offline": "¡Conexión fallida!" + } + }, + "usage": "Uso: %s", + "renew_cache": { + "success": "¡El caché se ha renovado!" + }, + "clear_cache": { + "success": "¡Se ha limpiado el caché!" + } + }, + "context": { + "editBan": { + "name": "Editar ban de GlobalTags", + "title": "Editar el ban de %s", + "send": "Enviar cambios", + "appealable": "Apelable" + }, + "staff_notes": { + "hover": { + "deleted": "¡Eliminado con éxito!", + "create": "Crear nota", + "delete": "Haz clic para borrar" + }, + "name": "Gestionar notas de GlobalTags", + "title": "Notas de %s", + "description": "creado el %s (#%s)", + "create": { + "title": "Crear nota para %s", + "label": "Nota", + "placeholder": "Introduzca una nota…", + "send": "Crear" + } + }, + "changeTag": { + "placeholder": "Introduzca el GlobalTag actualizado…", + "name": "Cambiar GlobalTag", + "title": "Cambiar GlobalTag de %s", + "label": "Nuevo GlobalTag", + "send": "Actualizar Tag" + }, + "reason": "Razón", + "placeholder": "Por favor, introduzca una razón…", + "referral": { + "name": "Este jugador me invitó a GlobalTags" + }, + "report": { + "name": "Denunciar GlobalTag", + "title": "Denunciar %s", + "send": "Enviar informe" + }, + "ban": { + "name": "Banear el jugador de GlobalTags", + "title": "Banear %s", + "send": "Banear" + }, + "unban": { + "name": "Desbanear el jugador de GlobalTags", + "title": "Desbanear %s", + "send": "Desbanear" + }, + "clearTag": { + "name": "Borrar GlobalTag" + }, + "tag_history": { + "name": "Mostrar historia de GlobalTags", + "title": "Historia de GlobalTags de %s", + "flagged_words": "Palabras marcadas:" } + }, + "general": { + "success": "¡Éxito!", + "error": "Ha ocurrido un error" } } } diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json index 0f21596..c526d76 100644 --- a/core/src/main/resources/assets/globaltags/i18n/no_no.json +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -25,14 +25,15 @@ }, "tags": { "staged": { - "description": "Klikk på \"Publiser innstillinger\"-knappen for å publisere endringer!" + "description": "Klikk på \"Publiser innstillinger\"-knappen for å publisere endringer!", + "title": "Ventende endringer" }, "tagPreview": { "noInfo": "Kunne ikke hente kontoinformasjon!", "appeal": { "popup": { "placeholder": "Venligst skriv inn en grunn…", - "label": "Hvorfor burde vi oppheve forbudet ditt?", + "label": "Hvorfor burde vi oppheve utestengelsen din?", "button": "Send en anke" }, "name": "Anke", @@ -44,7 +45,40 @@ "empty": "", "emptyReason": "Ingen grunn oppgitt" }, - "name": "Global tag-instillinger" + "name": "Global tag-instillinger", + "updateSettings": { + "name": "Publiser innstillinger", + "text": "Oppdater", + "result": "Tagg: %s\nPosisjon: %s\nIkon: %s", + "unchanged": "Uendret" + }, + "tag": { + "name": "Global Tagg" + }, + "position": { + "name": "Global posisjon", + "description": "Taggen din er synlig i denne posisjonen for alle.", + "entries": { + "above": "Over navnet", + "below": "Under navnet", + "right": "Høyre til navnet", + "left": "Venstre til navnet" + } + }, + "globalIcon": { + "name": "Global ikon", + "description": "Dette ikonet vil vises til venstre til taggen din globalt.", + "entries": { + "none": "Ingen", + "custom": "Egendefinert", + "heart": "Hjerte", + "star": "Stjerne" + } + }, + "resetTag": { + "name": "Slett GlobalTag", + "text": "Slett" + } }, "joinDiscord": { "name": "Discord Server", @@ -52,6 +86,11 @@ }, "showOwnTag": { "name": "Vis egen tag" + }, + "clearCache": { + "description": "Tømmer tag-cachen manuelt.\nCachen tømmes automatisk hvert §b5 minutter§f.\nDu kan i tillegg tømme cachen med §b/gt cc§f.", + "text": "Tøm", + "name": "Tøm cachen" } }, "commands": { @@ -59,15 +98,53 @@ "email": { "verify": "Bekreft e-post", "hover": "Klikk for å skrive inn bekreftelsekode" + }, + "discord": { + "copied": "Koden ble kopiert til utklippstavlen din!" } }, "base": { "api": { "offline": "Koblingsfeil!", "version": "API Versjon: %s" + }, + "version": "Tillegg Versjon: %s", + "clear_cache": { + "label": "Tøm cachen", + "hover": "Klikk her for å tømme cachen!" } }, - "usage": "Bruk: %s" + "usage": "Bruk: %s", + "clear_cache": { + "success": "Cachen ble tømt!" + }, + "renew_cache": { + "success": "Cachen ble fornyet!" + } + }, + "context": { + "unban": { + "name": "Opphev utestengelsen av GlobalTag-spiller" + }, + "reason": "Grunn", + "placeholder": "Vennligst skriv inn en grunn…", + "referral": { + "name": "Denne spilleren inviterte meg til GlobalTags" + }, + "report": { + "name": "Rapporter GlobalTag", + "title": "Rapporter %s", + "send": "Send rapporten" + }, + "ban": { + "name": "Utesteng GlobalTag-spiller", + "title": "Utesteng %s", + "send": "Utesteng" + } + }, + "general": { + "success": "Suksess!", + "error": "Det oppstod en feil" } } } From 2101fcdf28def461c274f2ea47810eb8814daae6 Mon Sep 17 00:00:00 2001 From: Weblate Date: Fri, 22 Nov 2024 04:45:27 +0100 Subject: [PATCH 39/41] =?UTF-8?q?Translated=20using=20Weblate=20(Norwegian?= =?UTF-8?q?=20Bokm=C3=A5l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 81.6% (102 of 125 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (125 of 125 strings) Translated using Weblate (German) Currently translated at 100.0% (125 of 125 strings) Translated using Weblate (English (United States)) Currently translated at 100.0% (125 of 125 strings) Co-authored-by: Kubii Co-authored-by: RappyTV Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/de/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/en_US/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/es/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/nb_NO/ Translation: GlobalTags/LabyAddon --- .../main/resources/assets/globaltags/i18n/de_de.json | 6 +++--- .../main/resources/assets/globaltags/i18n/en_us.json | 4 ++-- .../main/resources/assets/globaltags/i18n/es_es.json | 9 ++++++--- .../main/resources/assets/globaltags/i18n/no_no.json | 10 ++++++++-- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/de_de.json b/core/src/main/resources/assets/globaltags/i18n/de_de.json index 9e216b6..6a2508e 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_de.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_de.json @@ -14,7 +14,7 @@ }, "localizedResponses": { "name": "API-Antworten lokalisieren", - "description": "Wenn diese Option aktiviert ist, sendet das Addon auch deine Minecraft-Sprache an die API. Wenn die Übersetzungen vorhanden sind, erhältst du lokalisierte Antworten. Deine Minecraft-Sprache wird nirgendwo gespeichert." + "description": "Wenn diese Option aktiviert ist, sendet das Addon auch deine Minecraft-Sprache an die API. Wenn die Übersetzungen vorhanden sind, erhältst du lokalisierte Antworten. Deine Minecraft-Sprache wird für lokalisierte Emails gespeichert." }, "joinDiscord": { "name": "Discord Server", @@ -28,7 +28,7 @@ }, "showBackground": { "name": "Hintergrund anzeigen", - "description": "Wenn diese Option aktiviert ist, siehst du den standard Vanilla-Hintergrund hinter den Global Tags." + "description": "Wenn diese Option aktiviert ist, siehst du den standard Vanilla-Hintergrund hinter den GlobalTags." }, "tags": { "name": "Globale Tag-Einstellungen", @@ -113,7 +113,7 @@ "unchanged": "Unverändert" }, "resetTag": { - "name": "Global Tag löschen", + "name": "GlobalTag löschen", "text": "Löschen" } }, diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index b3217b3..87cf6f6 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -14,7 +14,7 @@ }, "localizedResponses": { "name": "Localize API responses", - "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will not be stored anywhere." + "description": "If this option is enabled, the addon also sends your minecraft language to the API. If the translations exist, you will receive localized responses. Your minecraft language will be saved for localized emails." }, "joinDiscord": { "name": "Discord Server", @@ -28,7 +28,7 @@ }, "showBackground": { "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind global tags." + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind GlobalTags." }, "tags": { "name": "Global tag settings", diff --git a/core/src/main/resources/assets/globaltags/i18n/es_es.json b/core/src/main/resources/assets/globaltags/i18n/es_es.json index fffe448..915555b 100644 --- a/core/src/main/resources/assets/globaltags/i18n/es_es.json +++ b/core/src/main/resources/assets/globaltags/i18n/es_es.json @@ -59,7 +59,8 @@ } }, "showBackground": { - "name": "Mostrar fondo" + "name": "Mostrar fondo", + "description": "Cuando esta opción está activada, verás un fondo gris detrás de GlobalTags." }, "joinDiscord": { "name": "Servidor de Discord", @@ -83,11 +84,13 @@ "name": "Activado" }, "localizedResponses": { - "name": "Localizar respuestas de la API" + "name": "Localizar respuestas de la API", + "description": "Si esta opción está activada, el addon también envía tu idioma de Minecraft a la API. Si las traducciones existen, recibirás respuestas localizadas. Tu idioma de Minecraft se guardará para los correos electrónicos localizados." }, "clearCache": { "name": "Limpiar caché", - "text": "Limpiar" + "text": "Limpiar", + "description": "Limpia manualmente el caché de tags.\nEl caché se borra automáticamente cada §b5 minutos§f.\nTambién se puede borrar el caché con §b/gt cc§f." } }, "commands": { diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json index c526d76..f4281fe 100644 --- a/core/src/main/resources/assets/globaltags/i18n/no_no.json +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -37,7 +37,7 @@ "button": "Send en anke" }, "name": "Anke", - "description": "⚠ Denne knappen kan bare klikkes hvis suspensjonen din kan ankes." + "description": "⚠️ Denne knappen kan bare klikkes hvis suspensjonen din kan ankes." }, "name": "Tag Forhåndsvisning", "banned": "Kontoen din ble suspendert!\nGrunn: %s", @@ -124,7 +124,9 @@ }, "context": { "unban": { - "name": "Opphev utestengelsen av GlobalTag-spiller" + "name": "Opphev utestengelsen av GlobalTag-spiller", + "title": "Opphev utestengelsen av %s", + "send": "Opphev utestengelsen" }, "reason": "Grunn", "placeholder": "Vennligst skriv inn en grunn…", @@ -140,6 +142,10 @@ "name": "Utesteng GlobalTag-spiller", "title": "Utesteng %s", "send": "Utesteng" + }, + "editBan": { + "name": "Endre GlobalTag utestengelse", + "title": "Endre utestengelsen til %s" } }, "general": { From e9d1ed3a502ee91182d99b6a4ee8c8333082849b Mon Sep 17 00:00:00 2001 From: Weblate Date: Sat, 23 Nov 2024 05:02:49 +0100 Subject: [PATCH 40/41] =?UTF-8?q?Translated=20using=20Weblate=20(Norwegian?= =?UTF-8?q?=20Bokm=C3=A5l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 100.0% (125 of 125 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (125 of 125 strings) Translated using Weblate (German) Currently translated at 100.0% (125 of 125 strings) Translated using Weblate (English (United States)) Currently translated at 100.0% (125 of 125 strings) Co-authored-by: Kubii Co-authored-by: RappyTV Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/de/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/en_US/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/es/ Translate-URL: http://translate.rappytv.com/projects/globaltags/labyaddon/nb_NO/ Translation: GlobalTags/LabyAddon --- .../assets/globaltags/i18n/de_de.json | 2 +- .../assets/globaltags/i18n/en_us.json | 2 +- .../assets/globaltags/i18n/es_es.json | 2 +- .../assets/globaltags/i18n/no_no.json | 39 +++++++++++++++++-- 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/core/src/main/resources/assets/globaltags/i18n/de_de.json b/core/src/main/resources/assets/globaltags/i18n/de_de.json index 6a2508e..49c0799 100644 --- a/core/src/main/resources/assets/globaltags/i18n/de_de.json +++ b/core/src/main/resources/assets/globaltags/i18n/de_de.json @@ -28,7 +28,7 @@ }, "showBackground": { "name": "Hintergrund anzeigen", - "description": "Wenn diese Option aktiviert ist, siehst du den standard Vanilla-Hintergrund hinter den GlobalTags." + "description": "Wenn diese Option aktiviert ist, siehst du den standard Vanilla-Hintergrund hinter den Tags." }, "tags": { "name": "Globale Tag-Einstellungen", diff --git a/core/src/main/resources/assets/globaltags/i18n/en_us.json b/core/src/main/resources/assets/globaltags/i18n/en_us.json index 87cf6f6..1f5d25f 100644 --- a/core/src/main/resources/assets/globaltags/i18n/en_us.json +++ b/core/src/main/resources/assets/globaltags/i18n/en_us.json @@ -28,7 +28,7 @@ }, "showBackground": { "name": "Show background", - "description": "When this option is enabled, you'll see the gray vanilla nametag background behind GlobalTags." + "description": "When this option is enabled, you'll see the gray vanilla nametag background behind tags." }, "tags": { "name": "Global tag settings", diff --git a/core/src/main/resources/assets/globaltags/i18n/es_es.json b/core/src/main/resources/assets/globaltags/i18n/es_es.json index 915555b..3bc1ac7 100644 --- a/core/src/main/resources/assets/globaltags/i18n/es_es.json +++ b/core/src/main/resources/assets/globaltags/i18n/es_es.json @@ -60,7 +60,7 @@ }, "showBackground": { "name": "Mostrar fondo", - "description": "Cuando esta opción está activada, verás un fondo gris detrás de GlobalTags." + "description": "Cuando esta opción está activada, verás un fondo gris detrás de tags." }, "joinDiscord": { "name": "Servidor de Discord", diff --git a/core/src/main/resources/assets/globaltags/i18n/no_no.json b/core/src/main/resources/assets/globaltags/i18n/no_no.json index f4281fe..279ebb8 100644 --- a/core/src/main/resources/assets/globaltags/i18n/no_no.json +++ b/core/src/main/resources/assets/globaltags/i18n/no_no.json @@ -3,7 +3,7 @@ "settings": { "showBackground": { "name": "Vis bakgrunn", - "description": "Når dette valgmulighet er aktivert, vil du se den grå vaniljenavnemerkebakgrunnen bak globale tagger." + "description": "Når dette valgmulighet er aktivert, vil du se den grå vaniljenavnemerkebakgrunnen bak tagger." }, "header": { "tags": { @@ -21,7 +21,7 @@ }, "localizedResponses": { "name": "Lokaliser API-svar", - "description": "Hvis dette valgmulighet er aktivert, sender tillegget også minecraft-språket ditt til API-en. Hvis oversettelsene finnes, vil du motta lokaliserte svar. Minecraft-språket ditt vil ikke bli lagret noe sted." + "description": "Hvis dette valgmulighet er aktivert, sender tillegget også minecraft-språket ditt til API-en. Hvis oversettelsene finnes, vil du motta lokaliserte svar. Minecraft-språket ditt blir lagret for lokaliserte e-poster." }, "tags": { "staged": { @@ -145,7 +145,40 @@ }, "editBan": { "name": "Endre GlobalTag utestengelse", - "title": "Endre utestengelsen til %s" + "title": "Endre utestengelsen til %s", + "send": "Send inn endringer", + "appealable": "Kan ankes" + }, + "changeTag": { + "name": "Endre GlobalTag", + "title": "Endre Taggen til %s", + "label": "Ny GlobalTag", + "placeholder": "Skrivv inn den oppdatert GlobalTag…", + "send": "Oppdater Tagg" + }, + "clearTag": { + "name": "Tøm GlobalTag" + }, + "staff_notes": { + "name": "Administrer GlobalTags-notater", + "title": "Notater til %s", + "description": "oppretet på %s (#%s)", + "hover": { + "create": "Legg til notat", + "delete": "Klikk for å slette", + "deleted": "Sletting suksessfult!" + }, + "create": { + "title": "Legg til notat for %s", + "label": "Notat", + "placeholder": "Skriv inn et notat…", + "send": "Opprett" + } + }, + "tag_history": { + "name": "Vis GlobalTag-historikk", + "title": "Tag-historikk til %s", + "flagged_words": "Flaggede ord:" } }, "general": { From 77182d19820b0b692792b86c66de4c8e01e1b637 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 24 Nov 2024 19:20:31 +0100 Subject: [PATCH 41/41] Bump version --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 978ebdb..00476ef 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { val versions = providers.gradleProperty("net.labymod.minecraft-versions").get().split(";") group = "org.example" -version = providers.environmentVariable("VERSION").getOrElse("1.3.3") +version = providers.environmentVariable("VERSION").getOrElse("1.3.4") labyMod { defaultPackageName = "com.rappytv.globaltags" //change this to your main package name (used by all modules) @@ -39,4 +39,4 @@ subprojects { repositories { maven("https://repo.rappytv.com/public/") } -} \ No newline at end of file +}