Skip to content

Improved sorting of locales in the right-hand part of editor - #54

Open
LZaruba wants to merge 4 commits into
essiembre:developfrom
LZaruba:53_Sort_Languages_In_Locale
Open

LZaruba wants to merge 4 commits into
essiembre:developfrom
LZaruba:53_Sort_Languages_In_Locale

Conversation

@LZaruba

@LZaruba LZaruba commented Jul 11, 2016

Copy link
Copy Markdown
Collaborator

see Issue #53

k0ner and others added 2 commits November 30, 2015 20:33
add "drag to install" button and link to Marketplace
@k0ner

k0ner commented Feb 10, 2017

Copy link
Copy Markdown
Collaborator

I'd like to merge it but you need to update PR with newest code.

into 53_Sort_Languages_In_Locale

Conflicts:
	README.md
@LZaruba

LZaruba commented Nov 11, 2017

Copy link
Copy Markdown
Collaborator Author

I've merged the conflict. But I've also found issue with the code - bottom tabs are now in the different order than edit boxes. I will fix this one and then merge again.

@LZaruba

LZaruba commented Nov 11, 2017

Copy link
Copy Markdown
Collaborator Author

Ready for PR merge. Thanks

Copilot AI added a commit to tlcsdm/eclipse-rbe that referenced this pull request May 15, 2026
Port of upstream essiembre#54 (fixes #53).

- Add UIUtils.LocaleComparator: uses java.text.Collator (PRIMARY
  strength) so sorting respects the locale rules of the running
  Eclipse instance; null (default locale) always sorts first.
- Add UIUtils.sortLocales(): sorts a Collection<Locale> into a
  new List using LocaleComparator.
- I18nPage.createEditingPart(): iterate over sortLocales() so the
  right-hand side panels appear in locale-aware alphabetical order.
- ResourceFactory: replace inline case-insensitive comparator with
  UIUtils.LocaleComparator, removing the now-redundant code.

Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rbe/sessions/57f54e15-edc5-40ea-819b-8a56136ef2b3

Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
unknowIfGuestInDream added a commit to tlcsdm/eclipse-rbe that referenced this pull request May 15, 2026
* Initial plan

* feat(ui): sort languages in editor using Locale/Collator rules

Port of upstream essiembre#54 (fixes #53).

- Add UIUtils.LocaleComparator: uses java.text.Collator (PRIMARY
  strength) so sorting respects the locale rules of the running
  Eclipse instance; null (default locale) always sorts first.
- Add UIUtils.sortLocales(): sorts a Collection<Locale> into a
  new List using LocaleComparator.
- I18nPage.createEditingPart(): iterate over sortLocales() so the
  right-hand side panels appear in locale-aware alphabetical order.
- ResourceFactory: replace inline case-insensitive comparator with
  UIUtils.LocaleComparator, removing the now-redundant code.

Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rbe/sessions/57f54e15-edc5-40ea-819b-8a56136ef2b3

Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants