Changeset 26dccd3 in osmose-frontend


Ignore:
Timestamp:
May 3, 2014 10:19:19 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
739ad57
Parents:
5124c50
Message:

Correctly handle unicode input strings from tpl files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • po/Makefile

    r0018ed2 r26dccd3  
    1111 
    1212tmp.tpl: $(TPLFILES) 
    13         egrep -h "_\([\"']|TRANSLATORS" $(TPLFILES) | sed -e 's/.*_[(]"\([^"]\+\)"[)].*/_("\1")/g' -e "s/.*_[(]'\([^']\+\)'[)].*/_('\1')/g" -e 's/^%#/#/' > tmp.tpl 
     13        egrep -h "_\( ?u?[\"']|TRANSLATORS" $(TPLFILES) | sed -e 's/.*_[(] \?u\?"\([^"]\+\)"[)].*/_("\1")/g' -e "s/.*_[(]'\([^']\+\)'[)].*/_('\1')/g" -e 's/^%#/#/' > tmp.tpl 
    1414 
    1515osmose-frontend.pot: $(PYFILES) tmp.tpl 
    1616        LANG=C xgettext --join-existing -cTRANSLATORS --language=Python \ 
    17           --keyword=_ --omit-header \ 
     17          --keyword=_ --omit-header --from-code UTF-8 \ 
    1818          --output=$@ $(PYFILES) tmp.tpl 
    1919 
Note: See TracChangeset for help on using the changeset viewer.