Closed pixelzoom closed 4 years ago
This is fixed.
Originally, I thought a, b, and d would be universal abbreviations, but perhaps not, especially for d. I'm leaving sin(θ) and λ (for wavelength) hard coded because I really can't imagine those needing translation.
Understood about 'a', 'b', 'd' possibly being universal abbreviations. I should have clarified that PhET sometimes makes a similar call with math symbols. And the problem here was that 'a' and 'b' were localized in one place (slider labels), but not in another (crystal).
Related to #1 (code review).
The strings 'a' and 'b' are localized in the control panel, but not in CrystalNode.js. Here's what it looks like with
stringTest=X
:So if someone translates your sim to another language, there will be a problem here. Recommended to move string literals 'a', 'b', and 'd' from CrystalNode.js to xray-diffraction-strings_en.json.