Some minor changes
minor #103 Some minor changes (Szymciosek)

This PR was squashed before being merged into the 1.1.x-dev branch (closes #103).

Discussion
----------

Some minor changes

Commits
-------

d6f2436 Some minor changes
Add support for the --add-comments xgettext parameter
feature #112 Add support for the --add-comments xgettext parameter (joserobleda)

This PR was squashed before being merged into the 1.1.x-dev branch (closes #112).

Discussion
----------

Add support for the --add-comments xgettext parameter

When using the I18n extension in Twig I miss the ability to write comments in the line before the `gettext` call in order to fill the "notes for translator" in the `.po` files. I think this is very useful to put the translator in the right context to make a better translation

I create a new reserved word `notes` so a trans expression will look like this:

````
{% trans %}
    There is one thing you have to check!
{% plural alerts %}
    There are {{ alerts }} things you have to check!
{% notes %}
    This refers to a pending actions that the user have to do and will be shown in the home page
{% endtrans %}
````

In poedit you have to add to the parser the parameter like this if you want to read those notes

`xgettext --add-comments=notes`

@fabpot this is the very first time I look into the Twig internals and I don't know if I made a good code, but there are just a few lines to review

Commits
-------

8201729 Add support for the --add-comments xgettext parameter
docs, tests and bug fix for pull 122
minor #113 docs, tests and bug fix for pull 122 (joserobleda)

This PR was squashed before being merged into the 1.1.x-dev branch (closes #113).

Discussion
----------

docs, tests and bug fix for pull 122

This is a continuation of the pull https://github.com/fabpot/Twig-extensions/pull/112

- [ ] `doc/i18n.rst` now includes the `notes` usage and example
- [ ] Added 3 test cases for different `notes` combinations
- [ ] As `notes` adds an inline php comment to the compiled template line breaks should be removed

Commits
-------

5965f45 docs, tests and bug fix for pull 122
Adding some additional installation details
minor #114 Adding some additional installation details (weaverryan)

This PR was merged into the 1.1.x-dev branch.

Discussion
----------

Adding some additional installation details

Hi guys!

This follows this conversation: https://groups.google.com/forum/#!topic/twig-users/B3NB8zU0Mg8

It doesn't actually say in the docs how to install the extension or that you need to add the extensions into Twig. That's especially confusing if you just somehow end up on this page: http://twig.sensiolabs.org/doc/extensions/index.html, which somewhat looks like core Twig functionality.

This compiled locally without any warnings and looked fine to me.

Thanks!

Commits
-------

2a97452 Adding some additional installation details
Added new filters localizednumber and localizedcurrency on Intl extension
Rename getNumberFormatter to twig_get_number_formatter
Extension for displaying dates in a time ago format
feature #109 Extension for displaying dates in a time ago format #partdeux (RobinvdVleuten)

This PR was merged into the 1.1.x-dev branch.

Discussion
----------

Extension for displaying dates in a time ago format #partdeux

Hi,

My PR for added a time_diff extension (#83) was way to messy with commits. I've recreated it in a single rebased commit.

Commits
-------

665bbe0 Extension for displaying dates in a time ago format
fixed typo
Add checks on "localizednumber" and "localizedcurrency" filters and small tweaks
Add documentation for localizednumber and localizedcurrency filters
feature #115 Add "localizednumber" and "localizedcurrency" filters (Garfield-fr, michaelperrin)

This PR was merged into the 1.1.x-dev branch.

Discussion
----------

Add "localizednumber" and "localizedcurrency" filters

Hello,

This is a new version of PR #55 proposed by @Garfield-fr:

* Rebased on the `master` branch
* Made some changes according to comments made by @stof: remove unneeded arguments, checks on provided values
* Added documentation

As for the name of these filters, I would go for `localized_date`, `localized_number` and `localized_currency` but as `localizeddate` already exists, I preferred to keep the (weird) naming convention to keep backward compatibility.

Naming conventions changes could be made in an other PR, for a future version of Twig.

I didn't add tests as there is currently no test for any filter (apart from grammar checks).

I can squash all commits into one if needed.

Commits
-------

76f532d Add documentation for localizednumber and localizedcurrency filters
f6c4130 Add checks on "localizednumber" and "localizedcurrency" filters and small tweaks
380f7f0 Rename getNumberFormatter to twig_get_number_formatter
448a309 Added new filters localizednumber and localizedcurrency on Intl extension
Removes nl2br from the text documentation

The documentation for the text extensions still refers to the
nl2br tag, which has been removed from extensions and added to
the main Twig repo. This commit removes the mention of nl2br
from this repo.
minor #118 Removes nl2br from the text documentation (enkrates)

This PR was merged into the 1.1.x-dev branch.

Discussion
----------

Removes nl2br from the text documentation

The documentation for the text extensions still refers to the
nl2br tag, which has been removed from extensions and added to
the main Twig repo. This commit removes the mention of nl2br
from this repo.

Commits
-------

9af0ed4 Removes nl2br from the text documentation
update lib link
minor #123 Update links (mhor)

This PR was merged into the 1.1.x-dev branch.

Discussion
----------

Update links

Commits
-------

e7371ac update lib link