GoogleContactsEventsNotifier

Translation

Google Contacts Events Notifier can easily be configured so as to use another language instead of English (which is the default) for the email notifications.
This guide presents the main points of the translation process.

Add a translation

If you want to add a new translation of the notifications, open your script, find the line reading var i18n and have a look at the structure of the translation object and at the instructions at the end.
The main idea is to build a little “dictionary” for each language to match the English string with its translation in the given language.

To add a new language (e.g. Spanish - language code ‘es’):

Share your translation

Google Contacts Events Notifier is used by various users from around the world; if you want you can make your translation available to everyone by sharing it with us: we will be extremely happy to include it in the script in the next release.

How to submit a new translation

Do you know your way around git and GitHub very well?
Then go to “Translation via git”.

You don’t know what we are talking about?
Not a problem: you can follow the “Translation via web” guide.

You really cannot make your way around this whole “edit, comment and submit” thing, but still would like to contribute in one way or another?
We have the right solution for you: the “Translation via issue”.

If you don’t know what git and GitHub are, but want to learn more about it you can read this guide written by a collaborator of this project.

Translation via git

Follow this guide only if you are quite familiar with how git and GitHub work.

  1. Fork this repository.
  2. Clone the forked repository on your computer.
  3. Edit the script to include your translation and commit the changes.
  4. Push the commit(s) to your forked repository and open a new Pull Request for the changes to be merged into the original repository.
    Note: PRs should not be opened against the master branch, but against development (or another feature branch if appropriate).

You might want to read the complete guide to contributing: most of it is not needed if you just want to contribute with a translation, but you still might find some of the info quite useful for contributing further.

Translation via web

Follow this guide if you are able to edit text files on the fly on the web.

First of all you will need to create a fork of this repository. A fork is a copy of the project that you can work on (editing, adding and deleting files for example). Once you are done working on the fork you will send those edits to us and we will analyze and merge them into the actual code of the script.

  1. To create the fork open the main page of the project and click on “Fork” in the top right corner.
    Create the fork
    From now on you can open your fork by visiting the following URL: https://github.com/YOURUSERNAME/GoogleContactsEventsNotifier.
  2. Open your fork and choose the branch you want to edit from the dropdown menu. Choose a branch
    Note: Almost always this should be development (unless it’s clearly stated otherwise somewhere).
  3. Open the file you want to edit (clicking on its name) and click on the pencil button in the top right corner to edit it.
    Edit the file
    You can modify the file in the browser directly or you can copy the file content in your editor of choice on your PC, edit it there, then copy the edited text and paste it in back in the browser.
  4. Once you are done add a title and a description to your edit (Something along the lines of “Added translation for XX” is fine) and click on “Commit changes”.
    Commit the changes
  5. Get back to your fork home page and verify that the changes have been saved correctly. (You might have to select the branch again). Then click on the “New pull request” button next to the branch selection dropdown.
    New pull request
  6. Set the “base fork” dropdown to your own fork and the “head fork” to “GioBonvi/GoogleContactsEventsNotifier”. Set both the “base” and “compare” dropdowns to the branch you have edited, then click “Create pull request”.
    Create pull request
  7. This is it. Your request will now be analyzed and eventually approved by one of the collaborators of the project.

Translation via issue

Use this method only if you have tried the previous one and you are completely lost somewhere in the GitHub labyrinth.

  1. Go to the issue page, click on “New issue”.
    New issue
  2. Give the issue a meaningful title (e.g. “Translation for XX language”).
  3. Delete all the pre-compiled text and paste the new translation (just the translation, not the full script), then click on “Submit new issue”.
  4. This is it. Your request will now be analyzed and eventually approved by one of the collaborators of the project.