Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 304689 - Provide NLS support in JGit.
Summary: Provide NLS support in JGit.
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-04 10:54 EST by Sasa Zivkov CLA
Modified: 2010-03-20 22:44 EDT (History)
2 users (show)

See Also:


Attachments
Provide NLS support in JGit. (35.70 KB, patch)
2010-03-04 10:55 EST, Sasa Zivkov CLA
matthias.sohn: iplog+
sasa.zivkov: review?
matthias.sohn: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sasa Zivkov CLA 2010-03-04 10:54:07 EST
Gerrit Change: http://egit.eclipse.org/r/#change,315

The support for NLS relies on java.util API to load a standard
ResourceBundle and then uses java reflection API to inject localized
strings into public String fields of the corresponding instance
of TranslationBundle.

Locale setting is supported per thread to enable concurrent threads
to use different locales. This is useful when JGit runs in a server
context where (error) messages might need to differ per-request to
suit the user's preference.
Comment 1 Sasa Zivkov CLA 2010-03-04 10:55:11 EST
Created attachment 160950 [details]
Provide NLS support in JGit.
Comment 2 Matthias Sohn CLA 2010-03-04 11:04:15 EST
mail thread with discussion for this enhancement :
http://dev.eclipse.org/mhonarc/lists/egit-dev/msg00872.html
Comment 3 Shawn Pearce CLA 2010-03-20 22:44:58 EDT
Change 315 was merged as commit 2ae9a85045915a38af2c300aa1874304fd8ea17b