Changeset 22b9876 for apps/ministreaming


Ignore:
Timestamp:
Sep 25, 2015 7:55:36 PM (5 years ago)
Author:
dg2-new <dg2-new@…>
Branches:
master
Children:
89c14c2
Parents:
04690be
Message:

Rename _() for translation to _t() for Java 9 compatibility (ticket #1456)

Location:
apps/ministreaming/java
Files:
2 edited

Legend:

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

    r04690be r22b9876  
    6464                # extract strings from java and jsp files, and update messages.po files
    6565                # translate calls must be one of the forms:
    66                 # _("foo")
     66                # _t("foo")
    6767                # _x("foo")
    6868                # To start a new translation, copy the header from an old translation to the new .po file,
     
    7070                find $JPATHS -name *.java > $TMPFILE
    7171                xgettext -f $TMPFILE -F -L java --from-code=UTF-8 --add-comments\
    72                          --keyword=_ --keyword=_x \
     72                         --keyword=_t --keyword=_x \
    7373                         -o ${i}t
    7474                if [ $? -ne 0 ]
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketException.java

    r04690be r22b9876  
    125125            default:
    126126                // Translate this one here, can't do it later
    127                 return _("Failure code") + ": " + _status;
     127                return _t("Failure code") + ": " + _status;
    128128        }
    129129    }
     
    137137        if (s == null)
    138138            return null;
    139         return _(s);
     139        return _t(s);
    140140    }
    141141
     
    143143     *  Translate
    144144     */
    145     private static String _(String s) {
     145    private static String _t(String s) {
    146146        return Translate.getString(s, I2PAppContext.getGlobalContext(), BUNDLE_NAME);
    147147    }
Note: See TracChangeset for help on using the changeset viewer.