Bug 422564

Summary: Mismatch text between "Alkalie Metal" and "Alkaline earth metals"
Product: [Applications] kalzium Reporter: Boyuan Yang <073plan>
Component: generalAssignee: Kalzium Developers <kalzium>
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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