Possibility to stop FET to start if the current language file is not found

Started by vanyog, January 06, 2015, 10:20:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vanyog

Maybe this is not important at all, but working on Bulgarian translation of FET frequently happens fet_bg.qm file to be not placed at the right directory.

This is because I want to work on the translation in the last development snapshot of FET. That is why, each time before I start to translate, I download the current FET snapshot, I merge it with my copy of the code, where I have the implementation of changes suggested and compile FET. Sometimes it happens I forget to place fet_bg.qm file to the right directory and when FET starts the current language changes to English. In this case I have to close FET, provide fet_bg.qm file to the right directory, start FET again and change the language to Bulgarian.

So I come to the idea to implement a small change in the way FET loads the current language. In case FET does not find the *.qm file a question message box appears by which the user can stop FET to start. After that the user can provide the *.qm file for the current language and start FET. That way the current language remains the same and there is no need to choose it again. The implementation of this functionality is here:
https://github.com/vanyog/FET/commit/6a5403044ff8e87a0e83d37461e55d1b3ff0def8

I understand this solution is about a situation which the regular users of FET maybe will never meet, but because I implemented it for my convenience I decided to suggest it in this forum.

Liviu Lalescu

You don't need to restart FET. If FET reports unknown language, just copy the fet_bg.qm file in the right location and select language Bulgarian from FET, without FET restart.

If this above thing does not meet your needs, I will add your words in the TODO.