Skip to content

Commit c3577ff

Browse files
author
Dimitrios Bendilas
authored
Merge pull request #34 from transifex/contribution
Update README
2 parents 94e1a47 + 2f03a2e commit c3577ff

3 files changed

Lines changed: 145 additions & 3 deletions

File tree

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at support@transifex.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Contributing to Transifex Python Toolkit
2+
3+
:tada: Thank you for your interest in contributing to this project! :tada:
4+
5+
## Table Of Contents
6+
7+
* [Code of Conduct](#code-of-conduct)
8+
* [I just have a question](#i-just-have-a-question)
9+
* [Contributor License Agreement](#contributor-license-agreement)
10+
* [How to Contribute](#how-to-contribute)
11+
* [Reporting Bugs](#reporting-bugs)
12+
* [Suggesting Improvements](#suggesting-improvements)
13+
* [Creating Patches](#creating-patches)
14+
15+
# Code of Conduct
16+
17+
Please read this project's [Code of Conduct](/CODE_OF_CONDUCT.md) for the detailed standards on how to engage in this community.
18+
19+
# I just have a question
20+
21+
If you are not looking to contribute, but rather have a question about this project, you can visit the [Transifex Community](https://community.transifex.com/c/transifex-native) and ask there directly.
22+
23+
# How to Contribute
24+
25+
There are several ways to contribute to this project and they are all equally welcome. You can report a bug, suggest an improvement or submit an improvement yourself, be it a change in the code or in the documentation.
26+
27+
## Reporting Bugs
28+
29+
Bugs in this project are tracked as [GitHub issues](https://guides.github.com/features/issues/). Before submitting a new issue, make sure you check the [list of exiting issues](https://github.com/transifex/transifex-python/issues), as it might already be there.
30+
31+
When creating an issue, make sure you include the following:
32+
* A clear and descriptive title.
33+
* The exact steps to allow others to reproduce the issue.
34+
* The behavior you observed and the reason you find this problematic.
35+
* The behavior you expected instead and the reason for this.
36+
* Any material that would better showcase the issue, such as screenshots or animated GIFs.
37+
* The version(s) of this library you have seen this erroneous behavior in
38+
* Make sure you DO NOT INCLUDE any sensitive information, such as a token, a secret or a private URL to a Transifex project or resource
39+
40+
## Suggesting Improvements
41+
42+
Improvement suggestions in this project are tracked as [GitHub issues](https://guides.github.com/features/issues/). Before submitting a new suggestion, make sure you check the [list of exiting issues](https://github.com/transifex/transifex-python/issues), as it might already be there.
43+
44+
When creating an improvement issue, make sure you include the following:
45+
* A clear and descriptive title.
46+
* The exact steps to allow others to reproduce the issue.
47+
* The current behavior/functionality, what you would prefer to see instead and why.
48+
* An explanation on why this improvement would benefit most users of this library and not just your use case
49+
* Any material that could better showcase the current and the expected behavior, such as screenshots or animated GIFs.
50+
* Make sure you DO NOT INCLUDE any sensitive information, such as a token, a secret or a private URL to a Transifex project or resource
51+
52+
## Creating Patches
53+
54+
### Contributor License Agreement
55+
56+
Before contributing with suggested changes, you must sign our [Contributor License Agreement](https://docs.transifex.com/legal/contributing).
57+
58+
If you want to submit a patch that either fixes a bug or introduces a new feature, you need to have the following in mind:
59+
* The Pull Request (PR) handles one thing, i.e. fixes a certain bug or introduces a specific new functionality, instead of combining many at once.
60+
* Each commit should include one logical change each and should ideally be few in number per PR.
61+
* All [status checks](https://help.github.com/articles/about-status-checks), including the execution of the test suit, must pass.
62+
* The Rebase workflow is followed: each branch must be rebased over `origin/devel` before being allowed to get merged.
63+
64+
In order for a PR to be merged, at least one maintainer of this project must first review and approve it. The reviewer(s) may request changes before moving on.

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@
55

66
Transifex Python Toolkit is a collection of tools that allow you to easily localize your Django and Python applications using Transifex. The toolkit features fetching translations over the air (OTA) to your apps.
77

8+
This project adheres to the Contributor Covenant [code of conduct](/CODE_OF_CONDUCT.md). To contribute to Transifex Python Toolkit, please check out the [contribution guidelines](/CONTRIBUTING.md).
9+
810
1. Install toolkit in your code `$ pip install transifex-python`
911
2. Add a provided TOKEN and SECRET in your config, connecting your application with a Transifex project
1012
3. Add internationalization commands in your code
1113
```HTML+Django
1214
<!-- Django app template example -->
13-
15+
1416
{% load transifex %}
1517
<p>{% t "Hello!" %}</p>
1618
<p>{% t "I want to be translated." %}</p>
1719
```
1820

1921
```python
2022
# Django view sample
21-
from transifex.native.django import t
23+
from transifex.native.django import t
2224

2325
output = {
2426
"msg1": t("Welcome aboard!"),
@@ -28,7 +30,7 @@ Transifex Python Toolkit is a collection of tools that allow you to easily local
2830
```
2931
4. Push strings to your connected Transifex project `./manage.py transifex push`
3032
5. When translations are added in your Transifex project are automatically made available
31-
33+
3234
To learn more about using Transifex Python toolkit check:
3335
* [Quickstart guide for Django web application](https://docs.transifex.com/django-sdk/quickstart-1?utm_campaign=tx-native&utm_source=github&utm_medium=link)
3436
* [Quickstart guide for Python application](https://docs.transifex.com/python-sdk/quickstart?utm_campaign=tx-native&utm_source=github&utm_medium=link)

0 commit comments

Comments
 (0)