Contribute to MeshCentral¶
Contributing to MeshCentral via GitHub Pull Request¶
If you're looking to contribute beyond translations, such as updating documentation or enhancing the software by adding features or fixing bugs, the process involves several key steps:
-
Fork the Repository: Start by forking the MeshCentral repository on GitHub. This creates a copy of the repository under your own GitHub account, allowing you to make changes without affecting the original project.
-
Make Your Changes
- In your forked repository, create a new branch to keep your changes organized. This helps in managing different contributions separately.
- Make the necessary changes in your repository. This could involve updating documentation files or modifying code to add new features or fix bugs.
-
Review Your Changes: Before submitting your work, carefully review the changes you’ve made. Check the "Files Changed" section on GitHub to ensure that all modifications are intended and correctly implemented.
-
Submit a Pull Request
- Once your changes are ready and reviewed, submit a pull request (PR) from your branch to the
master
branch of the main MeshCentral repository. - When creating the pull request, provide a clear and detailed description of what changes have been made and why. This helps maintainers understand the purpose of your contributions.
- Once your changes are ready and reviewed, submit a pull request (PR) from your branch to the
-
Wait for Review: After submitting your pull request, wait for a project maintainer to review your contribution. Review time can vary depending on the complexity of the changes and the availability of the maintainers.
-
Respond to Feedback: The maintainer may request further modifications or provide feedback on your pull request. Be prepared to make additional changes based on their suggestions to ensure that your contribution meets the project’s standards and requirements.
-
Final Steps: Once your pull request is approved and merged by a maintainer, your contributions will be incorporated into the MeshCentral project. Congratulations, and thank you for helping improve MeshCentral!
Contribute to MeshCentral's Multilingual Support¶
To make MeshCentral multilingual, your contributions are crucial. Follow these steps to translate the interface into various languages.
-
Remove Local Translations: Delete
translate.json
from yourmeshcentral-data
folder. This file contains your local copy of translations, which may become outdated as new features and texts are added. -
Access MeshCentral: Ensure you are logged into MeshCentral.
- Open Translation Tool: Visit
https://YOURMESHCENTRALSERVER.COM/translator.htm
to access the translation interface. -
Choose a Language: Select the language you wish to translate from the list provided.
-
Translate Text: Use the search function or scroll through the list to find text segments you want to translate. Utilize the "show no translations only" checkbox to filter untranslated texts.
- Enter Translations: For each text segment, enter your translation in the bottom box (not the top one) and click
SET (F1)
. -
Repeat Translation: Continue translating by repeating steps 5 and 6 for other texts as desired.
-
Save and Apply Translations
- Click
SAVE TO SERVER (F3)
to save your translations tomeshcentral-data/translate.json
locally in your MeshCentral server. - Optionally, click
SAVE TO FILE (F4)
to download thetranslate.json
file for offline review or sharing.
- Click
-
Deploy Translations: Click
TRANSLATE SERVER
and allow some time for the process to complete (approximately 5-15 minutes depending on server specifications). This command line output will indicate when the translation is complete.
-
Finalize Changes: It’s crucial to restart MeshCentral to ensure that the translated files are picked up correctly.
- Share your translations: Once a language translation is complete, take the latest
translation.json
and share it by emailing it to the maintainer (Ylianst,ylianst@gmail.com
) or by submitting it to the MeshCentral GitHub repository via a pull request.
Additional Information:¶
- If you make any changes to
default.handlebars
, run the translate server to propagate these modifications to the language-specific handlebar files located innode_modules/meshcentral/views/translations
.
By following these steps, you help MeshCentral support any language you choose, making it more accessible worldwide. By sharing your translations with us, you also help make these languages available to other users, improving the community and extending the software's reach.