mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2025-12-08 19:05:54 +00:00
2.9 KiB
2.9 KiB
How to contribute & build FastHub
If you have a question in mind, feel free to come our public Slack channel.
Registering GitHub Account
Before you clone the project, Please read the guide below to be able to login from FastHub.
- Please update debug_gradle.properties file and change below:
- github_client_id= your github clientId
- github_secret= your github secret
- redirect_url= (redirect_url must match the url defined in
AndroidManifestunderLoginView)
Before you import the project to Android Studio:
- Make sure you have Android Studio 2.3 & above.
- Import Android Studio Settings (to ensure same code formatting) from this link Click here
- Install Lombok Plugin from Android Studio Plugins & enable Annotations Processors from (Android Studio Preference).
After above steps:
- Fork the project.
- Clone it to your desktop.
- Open the project from Android Studio.
- Let it build & Start coding.
Submitting PR
Please make sure your commit messages are meaningful.
- Create new Branch with the feature or fix you made.
- Submit your PR with an explanation of what you did & why (
if applicable).
I really appreciate your efforts on contributing to this project.
Contribute Translations
- First fork the repository by clicking Fork button.
- Clone your own forked repository to your computer.
- Create and switch branch by typing
git checkout -b <language>where<language>is the language you want to translate to. - Create a folder named
values-<language-code>, where<language-code>is your 2 letter code for your language. For examplevalues-esfor Spanish,values-frfor French. - Copy
values/strings.xmlto insidevalues-??folder withcp values/strings.xml values-??/. - Open
values-??/strings.xmlon your editor of choice. - Translate and keep in mind those important points.
- Obey XML format. So,
<string name="do-not-change">ONLY TRANSLATE HERE</string>. - Don't translate Git terms. Such as pull request, push, commit, branch...
- There are special characters and variables. Such as
\nfor newline,\tfor tab. Keep them in the same position in your sentences. Do not delete them! - Don't translate lines that contain
translatable="false"statement. - Don't add extra spaces or periods anywhere. Don't delete current ones. Keep them as is.
- Obey XML format. So,
- Once finished the translations, add files to the git index with
git add values-??/strings.xmland commit it withgit commit -m 'Language: Strings translated'. - Then push your local changes to your forked repository branch by typing
git push origin <language>. - Finally, create a pull request from your branch to our master with Pull Request button.
Translators
- English: Default