Bug 422564 - Mismatch text between "Alkalie Metal" and "Alkaline earth metals"
Summary: Mismatch text between "Alkalie Metal" and "Alkaline earth metals"
Status: REPORTED
Alias: None
Product: kalzium
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Other
: NOR major
Target Milestone: ---
Assignee: Kalzium Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-07 03:48 UTC by Boyuan Yang
Modified: 2020-06-07 03:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boyuan Yang 2020-06-07 03:48:25 UTC
SUMMARY

According to https://github.com/KDE/kalzium/blob/a147c68a4eb8bbeebe286b77dec15e4e1375049f/src/elementdataviewer.cpp#L451 , there are "Alkalie Metal" and "Alkaline earth metals". The former one should contain elements such as Li, Na, K and Rb. The latter one should contain elements such as Be, Mg, Ca and Sr.

However, in https://github.com/KDE/kalzium/blob/b8060ea167325609425587331d05d39959ba9d97/src/kalziumschemetype.cpp#L298-L301 , the source code matched Prefs::alkalie() with translatable string "Alkaline" as well as Prefs::alkaline() with translatable string "Alkalie Metal". I'm not sure if that is a typo (it should be).

This mismatch will also caused great confusion to the translators.



STEPS TO REPRODUCE
1. View the source code above.



OBSERVED RESULT

Pref::alkalie() matches with "Alkaline";
Pref::alkaline() matches with "Alkalie Metal";


EXPECTED RESULT

Pref::alkalie() matches with "Alkalie Metal";
Pref::alkaline() matches with "Alkaline Earch Metal";


SOFTWARE/OS VERSIONS

Any Kalzium release, no later than v2.5.0.
Any OS.


ADDITIONAL INFORMATION

N/A