Ignore:
Timestamp:
Nov 7, 2009 7:32:00 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f85d8f70
Parents:
827a92e
Message:
  • Console:
    • countries.txt: Convert to mixed case, include in update
    • netdb.jsp: Hide all routers by default, sort and tag country names
    • oldstats.jsp: Move to stats.jsp
    • profiles.jsp: Show new DBH times instead of counts
  • Profiles:
    • Track last good and bad lookup times and last good and bad store times, to prep for floodfill changes
    • Don't reset last-heard-about at router startup
  • Checklist and Android readme fixups
File:
1 edited

Legend:

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

    r827a92e ra0b4b7db  
    99export TZ=UTC
    1010
     11#
     12# generate strings/Countries.java from ../../../installer/resources/countries.txt
     13#
     14CFILE=../../../installer/resources/countries.txt
     15JFILE=build/Countries.java
     16if [ $CFILE -nt $JFILE -o ! -s $JFILE ]
     17then
     18        mkdir -p build
     19        echo '// Automatically generated pseudo-java for xgettext - do not edit' > $JFILE
     20        echo '// Translators may wish to translate a few of these, do not bother to translate all of them!!' >> $JFILE
     21        sed 's/..,\(..*\)/_("\1");/' $CFILE >> $JFILE
     22fi
     23
     24JPATHS="src ../jsp/WEB-INF strings $JFILE"
    1125for i in ../locale/messages_*.po
    1226do
     
    1630
    1731        # make list of java files newer than the .po file
    18         find src ../jsp/WEB-INF strings -name *.java -newer $i > $TMPFILE
     32        find $JPATHS -name *.java -newer $i > $TMPFILE
    1933        if [ -s build/obj/net/i2p/router/web/messages_$LG.class -a \
    2034             build/obj/net/i2p/router/web/messages_$LG.class -nt $i -a \
     
    3852        # To start a new translation, copy the header from an old translation to the new .po file,
    3953        # then ant distclean updater.
    40         find src ../jsp/WEB-INF strings -name *.java > $TMPFILE
     54        find $JPATHS -name *.java > $TMPFILE
    4155        xgettext -f $TMPFILE -F -L java --from-code=UTF-8 \
    4256                 --keyword=_ --keyword=_x --keyword=intl._ --keyword=intl.title \
Note: See TracChangeset for help on using the changeset viewer.