Thank you for considering contributing to GDVM! Here are some guidelines to help you get started.
- Fork the repository: Click the "Fork" button at the top right of the repository page.
- Clone your fork: Clone your forked repository to your local machine.
git clone https://github.com/adalinesimonian/gdvm.git
- Create a branch: Create a new branch for your feature or bugfix.
git checkout -b my-feature-branch
- Make your changes: Implement your feature or fix the bug.
- Commit your changes: Commit your changes with a clear and concise commit message.
git add . git commit -m "Description of your changes"
- Push to your fork: Push your changes to your forked repository.
git push origin my-feature-branch
- Create a Pull Request: Open a pull request to the main repository. Provide a detailed description of your changes.
To build the project, you need to have Rust installed. You can install Rust from rustup.rs.
- Navigate to the project directory:
cd gdvm
- Build and run the project:
cargo run
For a release build, just add the --release
flag to the cargo build
command.
cargo build --release
The compiled binary will be available in the target/release
directory.
GDVM supports multiple languages. If you want to add or update translations, follow these steps:
-
Add a new Fluent file: Create a new Fluent file in the
i18n
directory with the appropriate locale code (e.g.,fr-FR.ftl
for French). -
Update the
i18n.rs
file: Include the new Fluent file in thesrc/i18n.rs
file. Remember to keep the locale variables/entries sorted alphabetically by language code.// Include the new Fluent file static FR_FR_FTL: &str = include_str!("../i18n/fr-FR.ftl"); // Add the new locale to the resources array let resources = [ // Other locales (langid!("fr-FR"), FR_FR_FTL), ];
- Translate messages: Add translations for all the keys present in the existing Fluent files.
- Test your translations: Ensure that the translations are correctly loaded and displayed in the application.
- Follow the existing code style and conventions.
- Write clear and concise comments.
- Ensure your code is well-documented.
- Use the issue tracker to report bugs or request features.
- Provide as much detail as possible, including steps to reproduce the issue.
- Be respectful and considerate of others.
- Follow the Code of Conduct.
Thank you for your contributions!