RC Fix: Localized Sky Culture Names in RemoteControl API #5109
Closed
kutaibaa-akraa
started this conversation in
General
Replies: 2 comments
|
The proposal solution isn't complete, but in any way the issue is fixed in master now. |
0 replies
|
After fixing this : the image shows the localized skyculture names. thank you alex |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
@alex-w @gzotti @10110111
Issue
The RemoteControl plugin endpoint
/api/view/listskyculturereturns sky culture names in English only, regardless of Stellarium's UI language. This is inconsistent with other Endpoints as an example :/api/view/listlandscapeand/api/view/listprojectionwhich return properly localized names.Inside file:
plugins/RemoteControl/src/ViewService.cppLine 87 : should we replacegetDirToNameMap()withgetDirToI18Map()??! Which already provides properly translated names using the sky culture translator !!!you know better than me .
Targeted Line 87 :
stellarium/plugins/RemoteControl/src/ViewService.cpp
Lines 86 to 88 in c8c01b3
Expected Result: When Stellarium UI language is set to Arabic, the endpoint now returns localized terms:
{ "modern": "الحديث", "arabic_al-sufi": "العربي (الصوفي-كتاب الصوفي)", "chinese": "الصيني", "korean": "الكوري" ...... }Instead of English-only names. The fix uses the existing StelSkyCultureMgr::getDirToI18Map() method which properly handles translation with the sky culture translator. The main sky culture panel in the RC interface will be populated with localized culture names, and will automatically reflect any changes when the GUI language is changed.

Your ideas please !
All reactions