Skip to content

Commit 5af7cb1

Browse files
committed
Fixed select single constellation in some languages (fix #4775)
1 parent f85bf8c commit 5af7cb1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/core/modules/Asterism.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ class Asterism : public StelObject
9191
//! Get (translated) pronouncement of the native name for the Asterism
9292
QString getNamePronounce() const override {return (culturalName.pronounceI18n.isEmpty() ? culturalName.native : culturalName.pronounceI18n);}
9393
//! Get the short name for the Asterism (returns the translated version of abbreviation).
94-
QString getShortName() const {return abbreviationI18n;}
94+
QString getShortNameI18n() const {return abbreviationI18n;}
95+
//! Get the short name for the Asterism (returns the untranslated version of abbreviation).
96+
QString getShortName() const {return abbreviation;}
9597
//! Combine screen label from various components, depending on settings in SkyCultureMgr
9698
QString getScreenLabel() const override;
9799
//! Combine InfoString label from various components, depending on settings in SkyCultureMgr

src/core/modules/Constellation.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ class Constellation : public StelObject
119119
//! Get (translated) pronouncement of the native name for the Constellation
120120
QString getNamePronounce() const override {return (culturalName.pronounceI18n.isEmpty() ? culturalName.native : culturalName.pronounceI18n);}
121121
//! Get the short name for the Constellation (returns the translated version of abbreviation).
122-
QString getShortName() const {return abbreviationI18n;}
122+
QString getShortNameI18n() const {return abbreviationI18n;}
123+
//! Get the short name for the Constellation (returns the untranslated version of abbreviation).
124+
QString getShortName() const {return abbreviation;}
123125

124126
//! Combine screen label from various components, depending on settings in SkyCultureMgr
125127
QString getScreenLabel() const override;

0 commit comments

Comments
 (0)