label.copied_sequences_to_clipboard = Copied {0} sequences to clipboard.\r
label.check_file_matches_sequence_ids_alignment = Check that the file matches sequence IDs in the alignment.\r
label.problem_reading_tcoffee_score_file = Problem reading T-COFFEE score file\r
-label.source_to_target = {0} to '{1}'\r
+label.source_to_target = {0} ... {1}\r
label.per_sequence_only= Per-sequence only\r
label.to_file = to File\r
label.to_textbox = to Textbox\r
label.sequence_names_updated = Sequence names updated\r
label.dbref_search_completed = DBRef search completed\r
label.show_all_chains = Show all chains\r
-label.fetch_all_param = Fetch all '{0}'\r
+label.fetch_all_param = Fetch all {0}\r
label.paste_new_window = Paste To New Window\r
label.settings_for_param = Settings for {0}\r
label.view_params = View {0}\r
*/
package jalview.bin;
-import jalview.util.MessageManager;
import jalview.ws.dbsources.das.api.DasSourceRegistryI;
import jalview.ws.dbsources.das.datamodel.DasSourceRegistry;
import java.awt.Color;
import java.io.*;
import java.text.DateFormat;
+import java.text.SimpleDateFormat;
import java.util.*;
import org.apache.log4j.*;
setProperty(property, jalview.util.Format.getHexString(colour));
}
- public static final DateFormat date_format = DateFormat.getDateInstance(DateFormat.LONG,MessageManager.getLocale());
+ public static final DateFormat date_format = SimpleDateFormat
+ .getDateTimeInstance();
/**
* store a date in a jalview property
++i;
if (++icomp >= mcomp || i == (otherdb.size()))
{
- ifetch.setText(MessageManager.formatMessage("label.source_to_target",new String[]{imname,sname}));
+ ifetch.setText(MessageManager.formatMessage("label.source_to_target",imname,sname));
dfetch.add(ifetch);
ifetch = new JMenu();
imname = null;
++dbi;
if (comp >= mcomp || dbi >= (dbclasses.length))
{
- dfetch.setText(MessageManager.formatMessage("label.source_to_target",new String[]{mname,dbclass}));
+ dfetch.setText(MessageManager.formatMessage("label.source_to_target",mname,dbclass));
rfetch.add(dfetch);
dfetch = new JMenu();
mname = null;
java.util.Date earliest = null;
try
{
- earliest = new SimpleDateFormat("YYYY-MM-DD",MessageManager.getLocale()).parse(chan
+ earliest = new SimpleDateFormat("YYYY-MM-DD").parse(chan
.getHTTPLastModified());
} catch (Exception x)
{
noColourmenuItem_actionPerformed(e);
}
});
- wrapMenuItem.setText(MessageManager.getString("labe.wrap"));
+ wrapMenuItem.setText(MessageManager.getString("label.wrap"));
wrapMenuItem.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
public static Locale getLocale() {
return loc;
}
- public static String formatMessage(String key, Object[] params){
- return MessageFormat.format(rb.getString(key), params);
+ public static String formatMessage(String key, Object... params){
+ return MessageFormat.format(rb.getString(key), (Object[]) params);
}
}