Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 15, 2015
  1. @nuex
Commits on Aug 11, 2014
  1. @kaos

    fix #171 by cleaning out some unused i18n files.

    kaos authored
    the remaining files still need some work to be better integrated.
Commits on Apr 15, 2014
  1. @kaos
  2. @kaos
  3. @kaos
Commits on Apr 10, 2014
  1. @kaos

    support count and plural forms in blocktrans blocks (#131)

    kaos authored
    open question: we ought to support multiple plural tags
      to support languages that have more than two variations
      dependent on the count.
Commits on Apr 9, 2014
  1. @kaos

    fix #153: parse (and unparse) comment tags {# .. #}

    kaos authored
    call the {# .. #}-construct for comment tag (previously comment_inline).
    n.b. {% comment %} ... {% endcomment %} is a comment block.
    
    some cleanups in sources_parser + handle the new comment_tag token.
    
    beginnings of tests for the unparser (currently lives in the sources parser test suite).
Commits on Mar 22, 2014
  1. @seriyps @kaos

    New api for sources parser: add translators comments extraction.

    seriyps authored kaos committed
    Old API still available: new api's responses are converted to
    old ones.
    There is phrase information fields added, which we currently don't
    extract, like 'msgid_plural', 'context'. Will be implemented later.
Commits on Feb 24, 2014
  1. @kaos

    Restructure compiler code (close #136)

    kaos authored
    The common infrastructure routines are left in erlydtl_compiler,
    while those specific for compiling to .beam files are moved into
    erlydtl_beam_compiler and generic stuff is put in erlydtl_compiler_utils.
Commits on Feb 15, 2014
  1. @seriyps
Commits on Jan 19, 2014
  1. @kaos

    Revert "Replace our po scanner with the one used by zotonic."

    kaos authored
    This reverts commit 1548261 for issue #23.
    
    Conflicts:
    	src/i18n/i18n_manager.erl
    
    The parsed formats differed, and I don't want to translate between them.
    
    Besides, it seems that it never was broken (or at least it works now) ((or the issue is/was something else)).
    
    1> po_scanner:scan("23.po").
    [{id,[]},
     {str,"Project-Id-Version: Project\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2012-02-10 17:50+0100\nPO-Revision-Date: 2012-02-10 17:50+0100\nLast-Translator: Thomas Schaaf <schaaf@komola.de>\nLanguage-Team: komola UG <team@komola.de>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nX-Poedit-KeywordsList: _;gettext;gettext_noop;_t\nX-Poedit-Basepath: .\nX-Poedit-Language: German\nX-Poedit-Country: GERMANY\nX-Poedit-SourceCharset: utf-8\nX-Poedit-SearchPath-0: .\n"},
     {comment,": strings.php:2"},
     {id,"PAGE_NOT_FOUND"},
     {str,"Seite nicht gefunden!"}]
  2. @kaos

    Remaining issues reported by dialyzer

    kaos authored
    Fixes #111.
    
    A few warnings I won't bother resolving are:
    
        erlydtl_filters.erl:534: Expression produces a value of type 'undefined' | {integer(),integer(),integer()}, but this value is unmatched
        erlydtl_runtime.erl:45: The call gb_trees:lookup(Key::any(),{integer(),_}) does not have an opaque term of type gb_tree() as 2nd argument
        erlydtl_runtime.erl:54: The call dict:find(Key::any(),Tuple::tuple()) does not have an opaque term of type dict() as 2nd argument
  3. @kaos

    Fix code style.

    kaos authored
Commits on Jan 18, 2014
  1. @kaos

    Replace our po scanner with the one used by zotonic.

    kaos authored
    Fixes #23.
    
    The example data given in issue #23 now parses OK:
    ```
    1> po_scanner:parse_po_file("23.po").
    [{header,"Project-Id-Version: Project\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2012-02-10 17:50+0100\nPO-Revision-Date: 2012-02-10 17:50+0100\nLast-Translator: Thomas Schaaf <schaaf@komola.de>\nLanguage-Team: komola UG <team@komola.de>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nX-Poedit-KeywordsList: _;gettext;gettext_noop;_t\nX-Poedit-Basepath: .\nX-Poedit-Language: German\nX-Poedit-Country: GERMANY\nX-Poedit-SourceCharset: utf-8\nX-Poedit-SearchPath-0: .\n"},
     {"PAGE_NOT_FOUND","Seite nicht gefunden!"}]
    ```
Commits on Jan 16, 2014
  1. @kaos

    Check template checksums also for binaries.

    kaos authored
    When compiling a template not from file (e.g. from a binary value),
    keep track of the checksum the same way as is done when compiling templates on file.
    
    Moved default value for compiler_options back to the record definition.
Commits on Oct 18, 2013
  1. @evanmiller
Commits on Feb 18, 2012
  1. {% blocktrans %} no longer uses identifiers

    Evan Miller authored
    Previously {% blocktrans %} blocks required an identifier which would be
    passed as an atom to the blocktrans_fun function passed in at
    compile-time. This behavior was inconsistent with Django. Now identifiers
    are no longer used, and the blocktrans_fun function simply receives the
    block to be translated as a string.
    
    For convenience, compiled modules now have a translated_blocks/0
    function which returns a list of blocks that were translated at
    compile-time. A new helper module called blocktrans_extractor is
    provided for extracting blocktrans blocks prior to compilation.
    
    The implementation may result in some oddities; the translatable blocks
    are actually derived from the abstract syntax tree, so there may
    be whitespace or small syntactic differences between the blocks in
    the source code and the blocks used at translation-time. However,
    the blocktrans_extractor module will return blocks that are exactly
    compatible with the translatable blocks. One side-benefit of this
    appproach is that non-semantic whitespace will always be ignored;
    if two {% blocktrans %} blocks have slight syntactic differences
    but are semantically the same, you only need to provide a single
    translation to cover the two of them.
Commits on Jun 30, 2011
  1. I18n fixes

    Evan Miller authored
Commits on Jun 27, 2011
  1. Blocktrans utilities

    Evan Miller authored
Commits on Mar 18, 2011
  1. @evanmiller

    Integrate new filters and tests from dgulino

    evanmiller authored
    Restructured the file layout somewhat.
Something went wrong with that request. Please try again.