Describe the bug
It is possible (and may be desirable) to create a duplicate copy of the same L2 (study) language - e.g. one Japanese-English pair with spaces and one with MeCab parsing (my case), or Japanese-English and Japanese-(other language) or whatever. The problem is - MeCab is available only when the name of the language is exactly "Japanese". For word splitting the option to select a method disappears the second the name is changed, for pronunciation it just doesn't work anymore. Maybe I'm doing something wrong, but this is how it looks to me.
To Reproduce
- Go to Languages, create a new "Japanese" language (or use an existing one)
- Change the name in Study Language "L2": field to "Japanese1" or whatever
- Selecting RegExp Word Characters: method becomes unavailable immediately; MeCab-generated pronunciation (the one for Romaniz.: field) stops working.
Expected behavior
MeCab is still available when the name of the language is changed.
Proposal for a fix
As a quick fix: maybe it would be the easiest to check if the language name starts with "Japanese" or contains it instead of equals to?