IntellectualSites / IntellectualSites/PlotSquared

Automatic Language File Download

Open
#4,784 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Java
Stars
653
Forks
975
Avg merge
2m
Merged PRs (30d)
6

Description

What feature do you want to see added?

When the language option in settings.yml is changed (e.g., from en to de), PlotSquared should automatically download the corresponding translation file if it does not already exist.

Are there any alternatives?

The only alternative is to manually download the file from Crowdin and place it in the translations folder, as mentioned in the config, but I wasn’t able to find any way to download the file.

Anything else?

Proposed Solution:
• On startup or reload, check if the selected language file exists.
• If not, automatically download it from the official PlotSquared translation source.
• Optionally, add a setting such as auto-download-languages: true/false to control this behavior.

Benefits:
• Easier configuration process.
• Fewer user errors.
• Faster language switching.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the startup or reload entry points that read settings.yml and load files from the translations folder. Check how the official PlotSquared translation source can be used, then define the missing-file behavior and optional auto-download-languages setting; done means a selected missing language is obtained automatically without disrupting existing files.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
localization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.