translate / virtaal

Easy-to-use and powerful offline translation tool
https://virtaal.translatehouse.org
GNU General Public License v2.0
300 stars 58 forks source link

Virtaal has to restart for added terminology strings to work and become green #3240

Open scootergrisen opened 8 years ago

scootergrisen commented 8 years ago

I run the tutorial and for one of the string there is this comment to help the user translate:

"If you have created any terminology in the previous entries you may may now "
"see some of the words with a green background (or other color depending on "
"your theme). This means that Virtaal has terminology suggestions for that "
"word. Use Alt+Right to select the highlighted word, and then press Alt+Down. "
"If only one suggestions is provided Alt+Down just copies the suggestion to "
"the translation field. But if several suggestions are available Alt+Down "
"shows a suggestion list which you can navigate using Down and Up keys. Once "
"you have selected the desired suggestion press Enter to copy it to the "
"translation field."

The part about the background changing to green does not work right away. It only becomes green and selectable with Alt+Right if you save the file and restart Virtaal. It does not become green if you save the file and reopen it, you have to restart Virtaal.

So maybe fix it so it works right away. Or if not possible you can write a note about the user having to restart Virtaal or something.

friedelwolff commented 8 years ago

Thank you for reporting. I just tested it, and it seemed to work correctly. The only shortcoming seems to be that the matching doesn't work in the same string where I was when I added the term. But when moving to the next string and back Virtaal immediately recognised it and highlighted it.

Can you maybe describe the steps in more detail that don't work for you?

scootergrisen commented 8 years ago

Strange. What version and system did you test on? I tested on Debian Linux and Virtaal 1.0.0-beta1 that i build from master. I seems Virtaal does only load the /home/user/.virtaal/terminology.po file when Virtaal loads. So if it is empty on start and you add stuff it does not seem to have an effect until you restart Virtaal.