Selecting Xenocrypt doesn't make the language Spanish by default
toebes opened this issue · comments
Background
Related to #501, if you select Xenocrypt from the Test Generation Tools menu, it defaults the cipher language to English when it should be Spanish
Steps to reproduce:
- Go to any cipher and then select Xenocrypt from the Test Generation Tools menu
This will take you to /XenocryptEncrypt.html?cipherType=aristocrat
- Notice that the language is English. However it should be Spanish by default when going through the menu.
Compare it to going to Xenocrypt from the main page which correctly sets the language
This takes you to /XenocryptEncrypt.html?cipherType=aristocrat&curlang=es
Probable Problem
I believe that the problem is in JTAppendSubMenu
https://github.com/toebes/ciphers/blob/master/app/common/jtmenu.ts#L33-L35
which is not appending the value of the lang
field to the computed href