• totten's avatar
    CRM-15832 - Rewrite create-pot-files.sh · 57371fcd
    totten authored
    I found it fairly hard to trace through which source-code files mapped to
    which *.pot files; there were several interacting rules/patterns in
    create-pot-files.sh and in extractor.php which determined that policy
    question.
    
    This rewrite replaces *extractor.php with civistrings and moves all the
    policy/pattern questions into create-pot-files.sh (with a big "case"
    statement).  For example, the question of "What files go into event.pot?"
    could be answered by this clause:
    
    ```
    function build_raw_pot() {
      ...
      case "$name" in
        ...
        Event)
          _civistrings -o "$filepath" \
            CRM/Event \
            templates/CRM/Event \
            xml/templates/message_templates/event_* \
            xml/templates/message_templates/participant_*
          ;;
      esac
      ..
    }
    ```
    
    Any PHP/TPL/JS/HTML in those files/folders will be scanned for strings.
    57371fcd
Name
Last commit
Last update
..
add-locale.sh Loading commit data...
basedirs Loading commit data...
build-unified-pots.sh Loading commit data...
civiextensions-update-transifex.php Loading commit data...
commit-to-git.sh Loading commit data...
compile-mo-files-extensions.sh Loading commit data...
compile-mo-files.sh Loading commit data...
copy-to-svn.sh Loading commit data...
create-pot-files-extensions.sh Loading commit data...
create-pot-files.sh Loading commit data...
diff-check.php Loading commit data...
extractor.php Loading commit data...
find-similar-strings.php Loading commit data...
git-clone-all.sh Loading commit data...
header Loading commit data...
js-extractor.php Loading commit data...
php-extractor.php Loading commit data...
propagate-pot-changes.sh Loading commit data...
smarty-extractor.php Loading commit data...
sync-translated.sh Loading commit data...