mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2025-12-08 19:05:54 +00:00
4.5 KiB
4.5 KiB
Contributing to FastHub
Updated: 19 Jan 2018
Table of contents
- Submitting Issues
- How to contribute. Importing and assembling
- Working with translations
- Translations Contributors
Submitting Issues
- Let's keep everything clean and tidy here :)
- Make sure that similar Issues are not exist. Reopen an Issue if exists but closed.
- If things you want to submit are related to each other, submit them in one Issue.
- None of the forked Repositories' Issues will be accepted!
- Forks are developed separately from the origin Repository.
- Make sure you are running latest version (to check it out withing the FastHub head to About and tap on the section with application's version).
- Make sure the included template is filled in (submitting an Issue within FastHub will do it automatically).
How to contribute. Importing and assembling
If you have any questions, feel free to join our public Slack channel.
Custom keys (optional)
- Please update
debug_gradle.propertiesfile if you want to use your own keys:github_client_id=-- your GitHub clientId;github_secret=-- your GitHub secret;redirect_url=-- the url defined inAndroidManifestunderLoginView.
Before importation
- Make sure you are running Android Studio 3.0 C4 or above;
- Import Android Studio Settings (to follow project's code style) from this file;
- Install Lombok Plugin from Android Studio Plugins and enable Annotations Processors in Android Studio Preferences.
Importing Android Studio project
- Fork the Repository.
- Clone it to your workstation.
- Open the project in Android Studio.
- Compile the project for the first time. Then you can start coding.
Submitting Pull Request
Please use meaningful commit messages.
- Create a new Branch with the changes you made.
- Submit your Pull Request with an explanation of what have you done and why.
I really appreciate your efforts on contributing to this project.
Working with translations
- Firstly, you have to fork the repository by clicking the Fork button.
- Clone your own forked repository to your workstation.
- Create and switch Branch by typing
git checkout -b <new branch>where<new branch>is the name of the Branch you want to work with. We recommend you to name it into the language you want to translate in. - Create a new directory named like
values-<language code>, where<language code>is a 2 letter ISO code of the language. For examplevalues-esfor Spanish,values-frfor French. - Copy
values/strings.xmlinto the directory you have created (values-??). - Open
values-??/strings.xmlin your editor of choice. - Translate and keep in mind these important things.
- Obey the XML format. So,
<string name="do-not-change">ONLY TRANSLATE HERE</string>. - Don't translate lines which contain
translatable="false". - Don't translate Git and GitHub terms, such as Pull Request, Push, Commit, Branch, etc.
- There are some escape sequences used in translations (e.g.
\nas a line feed (new line),\tas a tabulator. Don't delete them! For the full list you can see this Wiki article. - There are some characters which must be escaped in translations.
""''&&>><< - Don't add extra spaces or periods. Don't delete existent ones.
- Obey the XML format. So,
- Once you finished translating, add new files to the Git index using
git add values-??/strings.xmlcommand and commit the changes usinggit commit -m '<commit message>', where<commit message>is a short description of changes you made. - Push your local changes into your forked repository by typing
git push origin <new branch>. - Finally, create a Pull Request from your Branch to our main Branch development.
Translations Contributors
- See README.md