Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
430 changes: 430 additions & 0 deletions .github/workflows/crowdin-download.yml

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions .github/workflows/crowdin-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Crowdin translation upload

on:
push:
branches: [ main ]
paths:
- 'src/main/resources/lang/en_GB.yml'
workflow_dispatch:

jobs:
crowdin-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Crowdin push
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: true
Comment thread
Zoriot marked this conversation as resolved.
download_translations: false
upload_sources_args: '--dest=Plot-System.yml'
upload_translations_args: "--dest=Plot-System.yml"
source: "src/main/resources/lang/en_GB.yml"
translation: "src/main/resources/lang/%locale_with_underscore%.%file_extension%"
auto_approve_imported: 'true'
env:
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ de-oliver-fancynpcs = "2.9.2"
# @pin https://artifactory.papermc.io/ui/native/universe/io/papermc/paper/paper-api/ 26.1+ requires java 25
io-papermc-paper-paper-api = "1.21.11-R0.1-SNAPSHOT"
# https://mvn.alps-bte.com/service/rest/repository/browse/alps-bte/li/cinnazeyy/LangLibs-API/
li-cinnazeyy-langlibs-api = "1.5.2"
li-cinnazeyy-langlibs-api = "1.5.3"
# https://repo.onarandombox.com/#/multiverse-releases/org/mvplugins/multiverse/core/multiverse-core
multiverse-core = "5.7.0"
# https://central.sonatype.com/artifact/org.mariadb.jdbc/mariadb-java-client
Expand Down
24 changes: 14 additions & 10 deletions src/main/java/com/alpsbte/plotsystem/utils/io/LangUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,23 @@ public static void init() {
Plugin plugin = PlotSystem.getPlugin();
LangLibAPI.register(plugin, new LanguageFile[]{
new LanguageFile(plugin, 2.5, Language.en_GB),
new LanguageFile(plugin, 2.5, Language.de_DE, "de_AT", "de_CH"),
new LanguageFile(plugin, 2.6, Language.de_DE, "de_AT", "de_CH"),
new LanguageFile(plugin, 2.5, Language.fr_FR, "fr_CA"),
new LanguageFile(plugin, 2.5, Language.pt_PT, "pt_BR"),
new LanguageFile(plugin, 2.6, Language.pt_PT, "pt_BR"),
new LanguageFile(plugin, 2.5, Language.ko_KR),
new LanguageFile(plugin, 2.5, Language.ru_RU, "ba_RU", "tt_RU"),
new LanguageFile(plugin, 2.5, Language.zh_CN),
new LanguageFile(plugin, 2.5, Language.zh_TW, "zh_HK"),
new LanguageFile(plugin, 1.1, Language.he_IL),
new LanguageFile(plugin, 1.0, Language.es_ES),
new LanguageFile(plugin, 1.0, Language.hu_HU),
new LanguageFile(plugin, 1.0, Language.nl_NL),
new LanguageFile(plugin, 1.0, Language.ro_RO),
new LanguageFile(plugin, 2.6, Language.ru_RU, "ba_RU", "tt_RU"),
new LanguageFile(plugin, 2.6, Language.zh_CN),
new LanguageFile(plugin, 2.6, Language.zh_TW, "zh_HK"),
new LanguageFile(plugin, 1.2, Language.he_IL),
new LanguageFile(plugin, 1.1, Language.es_ES),
new LanguageFile(plugin, 1.1, Language.hu_HU),
new LanguageFile(plugin, 1.1, Language.nl_NL),
new LanguageFile(plugin, 1.1, Language.ro_RO),
new LanguageFile(plugin, 1.0, Language.da_DK),
new LanguageFile(plugin, 1.0, Language.it_IT),
new LanguageFile(plugin, 1.0, Language.cs_CZ),
new LanguageFile(plugin, 1.0, Language.pl_PL),
new LanguageFile(plugin, 1.0, Language.sk_SK),
});
langUtilInstance = new LangUtil();
}
Expand Down
454 changes: 454 additions & 0 deletions src/main/resources/lang/cs_CZ.yml

Large diffs are not rendered by default.

95 changes: 50 additions & 45 deletions src/main/resources/lang/da_DK.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#-----------------------------------------------------
#| Plot System - by Alps BTE
#-----------------------------------------------------
#| [Github Repo] https://github.com/AlpsBTE/PlotSystem
#| [Documentation] https://github.com/AlpsBTE/PlotSystem/wiki/
#| [Contacts - Discord] R3tuxn, Cinnazeyy & Zoriot
#| [Localisation Platform] https://crowdin.com/project/alps-bte-plot-system
#|
#| [Formatting] Use %newline% for a newline
#| [Formatting] Words that are wrapped in the {number} tag are replaced afterward
#-----------------------------------------------------
# -----------------------------------------------------
# | Plot System - by Alps BTE
# -----------------------------------------------------
# | [Github Repo] https://github.com/AlpsBTE/PlotSystem
# | [Documentation] https://github.com/AlpsBTE/PlotSystem/wiki/
# | [Contacts - Discord] R3tuxn, Cinnazeyy & Zoriot
# | [Localisation Platform] https://crowdin.com/project/alps-bte-plot-system
# |
# | [Formatting] Use %newline% for a newline
# | [Formatting] Words that are wrapped in the {number} tag are replaced afterward
# -----------------------------------------------------
lang:
name: "Dansk (DK)"
head-id: "4411"
#-----------------------------------------------------
#| Plot
#-----------------------------------------------------
# -----------------------------------------------------
# | Plot
# -----------------------------------------------------
plot:
plot-name: "Plot"
id: "ID"
Expand All @@ -31,9 +31,9 @@ plot:
group-system:
empty-member-slot: "Tom Medlem Slot"
shared-by-members: "(delt af {0} medlemmer)"
#-----------------------------------------------------
#| City Projects
#-----------------------------------------------------
# -----------------------------------------------------
# | City Projects
# -----------------------------------------------------
city-project:
cities: "Byer"
open: "Åbne Plot"
Expand All @@ -42,30 +42,30 @@ city-project:
plots-available: 'Tilgængelige Plot'
no-plots-available: "Ingen Plot Tilgængelige"
for-your-difficulty: "({0} for din sværhed)"
#-----------------------------------------------------
#| Countries
#-----------------------------------------------------
# -----------------------------------------------------
# | Countries
# -----------------------------------------------------
country:
countries: "Lande"
#-----------------------------------------------------
#| Continents
#-----------------------------------------------------
# -----------------------------------------------------
# | Continents
# -----------------------------------------------------
continent:
europe: "Europa"
asia: "Asien"
africa: "Afrika"
oceania: "Oceania"
south-america: "Sydamerika"
north-america: "Nordamerika"
#-----------------------------------------------------
#| Difficulty
#-----------------------------------------------------
# -----------------------------------------------------
# | Difficulty
# -----------------------------------------------------
difficulty:
automatic: "Automatisk"
score-multiplier: "Score Multiplikator"
#-----------------------------------------------------
#| Menu Titles
#-----------------------------------------------------
# -----------------------------------------------------
# | Menu Titles
# -----------------------------------------------------
menu-title:
close: 'Luk'
back: 'Tilbage'
Expand All @@ -82,6 +82,7 @@ menu-title:
submit: 'Indsend'
teleport: 'Teleportering'
abandon: 'Abandon'
abandon-confirm: 'Abandon plot #{0}?'
undo-submit: 'Fortryd Indsendelse'
manage-members: 'Administrer Medlemmer'
feedback: 'Tilbagemeldingforespørgsel #{0}'
Expand Down Expand Up @@ -112,9 +113,9 @@ menu-title:
tutorial-end: 'Afslut Vejledning'
tutorial-beginner: 'Kom I Gang'
companion-random: 'Tilfældigt Markering'
#-----------------------------------------------------
#| Menu Descriptions
#-----------------------------------------------------
# -----------------------------------------------------
# | Menu Descriptions
# -----------------------------------------------------
menu-description:
error-desc: 'Der opstod en fejl...'
plot-difficulty-desc: 'Klik for at Skifte...'
Expand Down Expand Up @@ -146,9 +147,9 @@ menu-description:
tutorial-end-desc: 'Dine fremskridt vil blive gemt.'
tutorial-beginner-desc: 'Lær det grundlæggende, hvordan man bygger til BuildTheEarth projektet.'
companion-random-desc: 'Klik for at vælge tilfældigt.'
#-----------------------------------------------------
#| Review
#-----------------------------------------------------
# -----------------------------------------------------
# | Review
# -----------------------------------------------------
review:
review-plot: "Gennemgå Plot"
manage-plot: "Administrer Plot"
Expand All @@ -170,9 +171,9 @@ review:
accuracy-desc: "Hvor præcis er bygningen?%newline%%newline%- Ligner i RL%newline%- Korrekt skitserer%newline%- Korrekt højde%newline%- Fuldført"
block-palette: "Bloker Palet"
block-palette-desc: "Hvor mange forskellige blokke bruges, og hvor kreative er de?%newline%%newline%- Valg af blokke farver/teksturer%newline%- Tilfældige blokke"
#-----------------------------------------------------
#| Notes
#-----------------------------------------------------
# -----------------------------------------------------
# | Notes
# -----------------------------------------------------
note:
tip: "Tip"
under-construction: 'Under Konstruktion'
Expand Down Expand Up @@ -201,16 +202,17 @@ note:
click-to-remove-plot-member: "Klik for at fjerne medlem fra plot..."
click-to-open-link: "Klik her for at åbne {0} linket..."
click-to-open-link-with-shortlink: "§6Klik her §7for at åbne linket §a{0}§7 eller brug dette link: §a{1}"
click-to-copy-to-clipboard: "Copy to clipboard"
click-to-show-feedback: "§6Klik her §ato viser dit plot feedback..."
click-to-show-open-reviews: "§6Klik her §ato viser åbne anmeldelser..."
click-to-show-plots: "§6Klik her §ato viser dine plots..."
click-to-play-with-friends: "§7Vil du spille med dine venner? §6Klik her..."
tutorial-show-stages: 'Vis Trin'
click-to-open-plots-menu: 'Klik for at åbne plot-menuen...'
click-to-toggle: "Klik for at skifte..."
#-----------------------------------------------------
#| Messages
#-----------------------------------------------------
# -----------------------------------------------------
# | Messages
# -----------------------------------------------------
message:
info:
teleporting-plot: "§aTeleporterer til plot §6#{0}§a..."
Expand All @@ -219,6 +221,9 @@ message:
finished-plot: "§aPlot §6#{0}§a af §6{1}§a er blevet færdig!"
plot-marked-as-reviewed: "§aPlot §6#{0}§a af §6{1}§a er blevet markeret som reviewed!"
plot-rejected: "§aPlot §6#{0}§a af §6{1}§a er blevet afvist!"
plot-previously-rejected: "This plot has been rejected before ({0})."
plot-previously-rejected-feedback: "Rejection Feedback:"
plot-previously-rejected-reviewer: "Rejected by:"
undid-submission: "§aUndid submission of plot §6#{0}§a!"
undid-review: "§aUndid anmeldelse af plot §6#{0}§a af §6{1}§a!"
reviewed-plot: "§aDit plot §6#{0}§a er blevet anmeldt!"
Expand Down Expand Up @@ -405,9 +410,9 @@ tutorials:
- 'Glad bygning! ☺️'
stage-10-tasks:
- 'Læs alle tips på plottet og markér dem som læst.'
#-----------------------------------------------------
#| Database
#-----------------------------------------------------
# -----------------------------------------------------
# | Database
# -----------------------------------------------------
database:
city-project:
example-city:
Expand Down Expand Up @@ -445,5 +450,5 @@ database:
correct_amount_windows_doors: 'Korrekt antal vinduer og døre'
correct_window_type: 'Korrigér vinduetyper'
windows_blacked_out: 'Alle vinduer blacked ud'
#NOTE: Do not change
# NOTE: Do not change
config-version: 1.0
Loading
Loading