@@ -977,8 +977,6 @@ QString StelSkyCultureMgr::createCulturalLabel(const StelObject::CulturalName &c
977977 const QString &commonNameI18n,
978978 const QString &abbrevI18n) const
979979{
980- // rtl tracks the right-to-left status of the text in the current position.
981- const bool rtl = StelApp::getInstance ().getLocaleMgr ().isSkyRTL ();
982980 // Each element may be in an RTL language (e.g. Arab). However,
983981 // - for most (left-to-right) languages we want a canonical order of left to right elements.
984982 // - for Arab and other right-to-left user languages, we set a canonical order of right-to-left elements.
@@ -1016,7 +1014,7 @@ QString StelSkyCultureMgr::createCulturalLabel(const StelObject::CulturalName &c
10161014 // If native contains non-Latin glyphs, pronounce or transliteration is mandatory.
10171015 QString pronounceStr=(lName.pronounceI18n .isEmpty () ? lName.pronounce : lName.pronounceI18n );
10181016 QString nativeOrPronounce = (lName.native .isEmpty () ? lName.pronounceI18n : lName.native );
1019- QString pronounceOrNative = (lName. pronounceI18n . isEmpty () ? lName.native : lName. pronounceI18n );
1017+ QString pronounceOrNative = (pronounceStr. isEmpty () ? lName.native : pronounceStr );
10201018 QString translitOrPronounce = (lName.transliteration .isEmpty () ? pronounceStr : lName.transliteration );
10211019
10221020 // If you call this with an actual argument abbrevI18n, you really only want a short label.
@@ -1090,19 +1088,13 @@ QString StelSkyCultureMgr::createCulturalLabel(const StelObject::CulturalName &c
10901088 if (!braced.isEmpty ())
10911089 {
10921090 QString pronTrans=QString (" %1%3%2" ).arg (QChar (0x2997 ), QChar (0x2998 ), braced.join (" , " +ZWS));
1093- if (rtl)
1094- label.prepend (pronTrans+ZWS);
1095- else
10961091 label.append (pronTrans+ZWS);
10971092 }
10981093
10991094 // Add IPA (where possible)
11001095 if ((styleInt & int (StelObject::CulturalDisplayStyle::IPA)) && (!lName.IPA .isEmpty ()) && (label != lName.IPA ))
11011096 {
11021097 QString ipa=QString (" [%1]" ).arg (lName.IPA );
1103- if (rtl)
1104- label.prepend (ipa+ZWS);
1105- else
11061098 label.append (ipa+ZWS);
11071099 }
11081100
@@ -1124,9 +1116,6 @@ QString StelSkyCultureMgr::createCulturalLabel(const StelObject::CulturalName &c
11241116 if (!bracketed.isEmpty ())
11251117 {
11261118 QString transBy=QString (" (%1)" ).arg (bracketed.join (" , " +ZWS));
1127- if (rtl)
1128- label.prepend (transBy+ZWS);
1129- else
11301119 label.append (transBy+ZWS);
11311120 }
11321121
@@ -1135,9 +1124,6 @@ QString StelSkyCultureMgr::createCulturalLabel(const StelObject::CulturalName &c
11351124 if ((styleInt & int (StelObject::CulturalDisplayStyle::Modern)) && (!commonNameI18n.isEmpty ()) && (!label.startsWith (lCommonNameI18n)) && (lCommonNameI18n!=lName.translatedI18n ))
11361125 {
11371126 QString modern=QString (" %1%3%2" ).arg (QChar (0x29FC ), QChar (0x29FD ), lCommonNameI18n);
1138- if (rtl)
1139- label.prepend (modern+ZWS);
1140- else
11411127 label.append (modern+ZWS);
11421128 }
11431129 if ((styleInt & int (StelObject::CulturalDisplayStyle::Modern)) && label.isEmpty ()) // if something went wrong?
0 commit comments