Commits on Jul 9, 2014
  1. @fabpot

    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 #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
    fabpot committed Jul 9, 2014
  2. @joserobleda @fabpot
Commits on Jul 8, 2014
  1. @fabpot

    feature #112 Add support for the --add-comments xgettext parameter (j…

    …oserobleda)
    
    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
    fabpot committed Jul 8, 2014
  2. @joserobleda @fabpot
  3. @fabpot

    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
    fabpot committed Jul 8, 2014
  4. @Szymciosek @fabpot

    Some minor changes

    Szymciosek committed with fabpot Feb 24, 2014
Commits on Jul 5, 2014
  1. @fabpot

    removed the deprecated Debug extension

    fabpot committed Jul 5, 2014
  2. @fabpot

    bumped version

    fabpot committed Jul 5, 2014
Commits on Mar 1, 2014
  1. @fabpot

    minor #95 updated filters registration (Trainmaster)

    This PR was squashed before being merged into the 1.0.x-dev branch (closes #95).
    
    Discussion
    ----------
    
    updated filters registration
    
    Use Twig_SimpleFilter instead of Twig_Filter_Function (deprecated as of
    Twig 1.12).
    
    Commits
    -------
    
    9149c07 updated filters registration
    fabpot committed Mar 1, 2014
  2. @Trainmaster @fabpot

    updated filters registration

    Trainmaster committed with fabpot Oct 18, 2013
  3. @fabpot

    added travis configuration

    fabpot committed Mar 1, 2014
  4. @fabpot

    bug #104 Fix truncate issue with preserve at true on last word (jpeti…

    …tcolas)
    
    This PR was squashed before being merged into the 1.0.x-dev branch (closes #104).
    
    Discussion
    ----------
    
    Fix truncate issue with preserve at true on last word
    
    Currently, using `truncate` filter allows to not cut a word in the middle, thanks to the `preserve` argument. However, the word is cut if it is the last word of the text. For instance, `My long sentence"|truncate(10, true)` would return `My long se...`.
    
    This PR aims to fix this behavior, adding some unit tests to prove the bug resolution.
    
    Commits
    -------
    
    1ec30de Fix truncate issue with preserve at true on last word
    fabpot committed Mar 1, 2014
  5. @jpetitcolas @fabpot
Commits on Nov 27, 2013
  1. @fabpot

    minor #96 Adjust the deprecated caution wording for clarity (chadburrus)

    This PR was merged into the master branch.
    
    Discussion
    ----------
    
    Adjust the deprecated caution wording for clarity
    
    The prior wording seemed awkward to me, so I tweaked it to flow a little better.
    
    Commits
    -------
    
    70693a7 Adjust the deprecated caution wording for clarity
    fabpot committed Nov 27, 2013
  2. @chadburrus @chadburrus

    Adjust the deprecated caution wording for clarity

    The prior wording seemed awkward to me, so I tweaked it to flow a little
    better.
    chadburrus committed with chadburrus Nov 27, 2013
Commits on Nov 11, 2013
  1. @fabpot

    moved README to rst

    fabpot committed Nov 11, 2013
Commits on Oct 18, 2013
  1. @fabpot

    feature #93 add shuffle filter in twig extensions (ricardclau)

    This PR was merged into the master branch.
    
    Discussion
    ----------
    
    add shuffle filter in twig extensions
    
    Original PR to Twig repo at https://github.com/fabpot/Twig/pull/1038/files
    
    After rejection, and having some people asking for it to be reconsidered, it was suggested to be added as part of the Twig Extensions
    
    Commits
    -------
    
    1b061a8 add shuffle filter in twig extensions
    fabpot committed Oct 18, 2013
  2. @fabpot

    minor #94 removed unnecessary locale check (Trainmaster)

    This PR was merged into the master branch.
    
    Discussion
    ----------
    
    removed unnecessary locale check
    
    If $locale === NULL, the default locale is used. See the php-src: https://github.com/php/php-src/blob/master/ext/intl/formatter/formatter_main.c#L58-L60
    
    Commits
    -------
    
    4be3a42 removed unnecessary locale check
    fabpot committed Oct 18, 2013
Commits on Oct 15, 2013
  1. @Trainmaster

    removed unnecessary locale check

    If $locale === NULL, the default locale is used. See the php-src: https://github.com/php/php-src/blob/master/ext/intl/formatter/formatter_main.c#L58-L60
    Trainmaster committed Oct 15, 2013
Commits on Sep 27, 2013
  1. @fabpot

    fixed wording

    fabpot committed Sep 27, 2013
Commits on Aug 23, 2013
  1. @ricardclau
Commits on Jul 2, 2013
  1. @fabpot

    fixed markup

    fabpot committed Jul 2, 2013
  2. @fabpot

    fixed makrup

    fabpot committed Jul 2, 2013
  3. @fabpot
  4. @fabpot

    fixed markup

    fabpot committed Jul 2, 2013
  5. @fabpot

    fixed tests for PHP 5.4

    fabpot committed Jul 2, 2013
  6. @fabpot
  7. @fabpot

    merged branch naitsirch/master (PR #87)

    This PR was squashed before being merged into the master branch (closes #87).
    
    Discussion
    ----------
    
    Created documentation for Intl extension
    
    Created documentation for Intl extension. It would be nice if this could be integrated. Otherwise it's hard to find the `localizeddate` filter and the needed arguments.
    
    Thanks for this extension ;-)
    
    Commits
    -------
    
    138403a Created documentation for Intl extension
    fabpot committed Jul 2, 2013
  8. @leonex-cs1 @fabpot
Commits on Jun 7, 2013
  1. @fabpot
  2. @fabpot

    added missing type hints

    fabpot committed Jun 7, 2013
  3. @fabpot

    removed Mac specific ignores

    fabpot committed Jun 7, 2013
Commits on Feb 28, 2013
  1. @fabpot

    merged branch garak/patch-1 (PR #79)

    This PR was merged into the master branch.
    
    Commits
    -------
    
    88df0a4 Update lib/Twig/Extensions/Extension/Intl.php
    
    Discussion
    ----------
    
    Update lib/Twig/Extensions/Extension/Intl.php
    
    See #78 for an explanation
    
    ---------------------------------------------------------------------------
    
    by blaugueux at 2013-02-20T09:52:17Z
    
    @fabpot ping, very useful PR
    
    ---------------------------------------------------------------------------
    
    by remyLemeunier at 2013-02-20T09:57:01Z
    
    +1
    fabpot committed Feb 28, 2013
Commits on Jan 21, 2013
  1. @garak

    Update lib/Twig/Extensions/Extension/Intl.php

    See #78 for an explanation
    garak committed Jan 21, 2013
Commits on Jan 4, 2013
  1. @fabpot

    updated license year

    fabpot committed Jan 4, 2013