-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation not working #62
Comments
The translations will only show if you search by the translated term, just with the rest of the aliases. I can't really have an "always show" option since a tag often has multiple aliases, so there's no way to choose which one to display in that case (except maybe defaulting to the first/last). And I also don't want to add a completely separate field for translation in the csv since aliases and translations are functionally the same. Is this a big issue? I was under the impression that you would only use the translations by typing the translated term in the first place. |
Yes, it's a game changer. Searching english words while displaying translation is the main feature required for non-english speakers, just like the main input box for English-Chinese translation requires you type english words, not the contrary. Or like physical english dictionaries, there're no dictionaries indexed by Chinese words Search Chinese to find english result is an excellent additional feature but not essential. Just like chinese-english translation, they have different purpose and can't replace each other's role I suppose that different implementation of alias and translation is required, they're not exact the same thing Translation with alias could possible looks like this: or this: |
I changed it to work like in your first suggestion for now. Translations need to be added in a new separate CSV file, not as an extra file anymore. Default is just two columns with English as first and Translation as second, but I also included a config switch for the old extra format with 3 columns if you use one of those files. |
Thanks! This is really important for who using it as translate tag helper |
Translation and config I use, if it helps (filename with p.s. not sure if this is the same problem, should I open a new issue? |
You're right, I tried it with your translation file and it seems to be a bug related to if the searched translation is in the alias, but not the tag itself. The example with bobby_socks is caused because the results with e.g. 式 include tags where this is the case, so the list is cut off on the first tag that fails to match (in this example "ascot"). |
I think I was already able to fix it, at least I don't see any more cutoff on my side with your test tags. |
\extensions\tag-complete\
test.csv
with content below and save with UTF-8 encoding, place it into\extensions\tag-complete\tags\
\extensions\tag-complete\tags\config.json
from"extraFile": "",
to"extraFile": "test.csv",
sol
in prompt textboxExpected result:
Actual result:
The text was updated successfully, but these errors were encountered: