toebes / ciphers

Cipher Generators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Go to any cipher and then select Xenocrypt from the Test Generation Tools menu

image

This will take you to /XenocryptEncrypt.html?cipherType=aristocrat

  1. 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
image

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