// Updates the title of the list
 public void updateTitle() {
   String text = "Jimm Multi";
   if (((RosterContent) content).getModel() == getUpdater().getChatModel()) {
     text = JLocale.getString("chats");
   }
   bar.setCaption(text);
 }
Exemple #2
0
 public static String getLocalDayOfWeek(long gmtTime) {
   // local
   Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
   cal.setTime(new Date(Util.gmtTimeToLocalTime(gmtTime) * 1000));
   String[] days = {
     "", "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"
   };
   return JLocale.getString(days[cal.get(Calendar.DAY_OF_WEEK)]);
 }
Exemple #3
0
  public static String longitudeToString(long seconds) {
    int days = (int) (seconds / 86400);
    seconds %= 86400;
    int hours = (int) (seconds / 3600);
    seconds %= 3600;
    int minutes = (int) (seconds / 60);

    StringBuilder buf = new StringBuilder();
    if (days != 0) {
      buf.append(days).append(' ').append(JLocale.getString("days")).append(' ');
    }
    if (hours != 0) {
      buf.append(hours).append(' ').append(JLocale.getString("hours")).append(' ');
    }
    if (minutes != 0) {
      buf.append(minutes).append(' ').append(JLocale.getString("minutes"));
    }

    return buf.toString();
  }
Exemple #4
0
 public String getDefaultGroupName() {
   return JLocale.getString(Xmpp.GENERAL_GROUP);
 }