Bug 396924 - TranslationService should provide enumeration of translation keys
Summary: TranslationService should provide enumeration of translation keys
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-19 09:23 EST by Thomas Schindl CLA
Modified: 2014-06-26 12:27 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schindl CLA 2012-12-19 09:23:20 EST
Many Java-libraries rely on ResourceBundle interface for translation so one make those libraries use the workbench TranslationService one has to implement implement a ResourceBundle-Class with the following methods.

* protected Object handleGetObject(String key)
* public Enumeration<String> getKeys()

whereas the first one can be delegated to the translate() method there's no way to extract the available keys so I'd like to suggest that our service provides this information as well.

class TranslationService {

  public Enumeration<String> getKeys(String contributorURI) {
     return Collections.emptyEnumeration();
  }
}