Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 3.27 KB

CONTRIBUTING.md

File metadata and controls

67 lines (52 loc) · 3.27 KB

How to contribute

Third-party patches are essential for keeping LimeSurvey great. We simply can't access the huge number of platforms and myriad configurations for running LimeSurvey. We want to keep it as easy as possible to contribute changes that get things working in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.

Getting started

Making changes

  • Create a topic branch from where you want to base your work.
    • Bug fixes go into the master branch
    • New features go into the develop branch
    • To quickly create a topic branch based on develop; git checkout -b fix/develop/my_contribution develop. Please avoid working directly on the develop or master branch.
  • Make commits of logical units.
  • Check for unnecessary whitespace with git diff --check before committing.
  • Make sure your commit messages are in the proper format - check out our commit message guidelines.

Writing translatable code

We use gettext-tooling to extract user-facing strings and pull in translations based on the user's locale at runtime. In order for this tooling to work, all user-facing strings must be wrapped in the gT() translation function, so they can be extracted into files for the translators.

When adding user-facing strings to your work, follow these guidelines:

  • Use full sentences. Strings built up out of concatenated bits are hard to translate.
  • Use string formatting instead of interpolation. Ex. sprintf(gT('Creating new user %s.'), $sUsername)
  • Use ngT() for pluralization.

It is the responsibility of contributors to ensure that all user-facing strings are marked in new PRs before merging.

Submitting changes

  • Push your changes to a topic branch in your fork of the repository.
  • Submit a pull request to the repository in the LimeSurvey organization.
  • Update your bug tracker ticket to mark that you have submitted code and are ready for it to be reviewed.
    • Include a link to the pull request in the ticket.
  • The core team looks at Pull Requests on a regular basis in a weekly triage
  • After feedback has been given we expect responses within two weeks. After two weeks we may close the pull request if it isn't showing any activity.

Additional resources