[gephi-dev] ExporterBuilderCSV.getName() should not be translatable

Mathieu Bastian mathieu.bastian at gmail.com
Wed Jan 12 08:25:00 CET 2011


Yes correct, translations should belong to the ExporterUI modules. You
can perform the update, thanks!

There is a special method for that in ExporterUI:

public String getDisplayName();

Mathieu

On Mon, Jan 10, 2011 at 7:06 AM, Sébastien Heymann
<sebastien.heymann at gephi.org> wrote:
> Hi,
> I figure out that exporter names shouldn't be translatable.
> If for instance, ExporterBuilderCSV.getName() returns a different string
> according to the locale, getting the exporter using the toolkit can be
> broken, as one get it like this:
> final ExportController ec =
> Lookup.getDefault().lookup(ExportController.class);
> ExporterCSV exporter = (ExporterCSV) ec.getExporter("CSV");
> So Mathieu, I'll remove the translated strings from the getName() methods of
> export builders if you're okay.
> Seb
> _______________________________________________
> gephi-dev mailing list
> gephi-dev at lists.gephi.org
> http://gephi.org/mailman/listinfo/gephi-dev
>
>


More information about the gephi-dev mailing list