Ignore:
Timestamp:
Oct 26, 2009 9:48:46 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2b46956
Parents:
850a8da
Message:
  • Console:
    • Don't save config when checking for updates on configupdate.jsp
    • Rework ConfigRestartBean? and tag
    • More tag fixups
    • Add lang=xx for testing
    • Add file for additional tagged strings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/bundle-messages.sh

    r850a8da ra2d90ee  
    1616
    1717        # make list of java files newer than the .po file
    18         find src ../jsp/WEB-INF -name *.java -newer $i > $TMPFILE
     18        find src ../jsp/WEB-INF strings -name *.java -newer $i > $TMPFILE
    1919        if [ -s build/obj/net/i2p/router/web/messages_$LG.class -a ! -s $TMPFILE ]
    2020        then
     
    3232        # handler._("foo")
    3333        # formhandler._("foo")
     34        # net.i2p.router.web.Messages.getString("foo")
    3435        # In a jsp, you must use a helper or handler that has the context set.
    3536        # To start a new translation, copy the header from an old translation to the new .po file,
    3637        # then ant distclean updater.
    37         find src ../jsp/WEB-INF -name *.java > $TMPFILE
     38        find src ../jsp/WEB-INF strings -name *.java > $TMPFILE
    3839        xgettext -f $TMPFILE -F -L java \
    3940                 --keyword=_ --keyword=_x --keyword=intl._ --keyword=intl.title \
    4041                 --keyword=handler._ --keyword=formhandler._ \
     42                 --keyword=net.i2p.router.web.Messages.getString \
    4143                 -o ${i}t
    4244        if [ $? -ne 0 ]
     
    6163        if [ $? -ne 0 ]
    6264        then
    63                 echo 'Warning - xgettext failed, not updating translations'
     65                echo 'Warning - msgfmt failed, not updating translations'
    6466                break
    6567        fi
Note: See TracChangeset for help on using the changeset viewer.