Page 1 of 1

Translate by Language compiler makelng.exe & Everything.lng

Posted: Sun Nov 08, 2015 11:19 pm
by Stamimail
Why this method was chosen to translate Everything?
Instead of translating directly from TXT/INI files, Language files under Lang folder

Re: Translate by Language compiler makelng.exe & Everything.

Posted: Mon Nov 09, 2015 1:05 am
by void
Why this method was chosen to translate Everything?
To reduce the size of Everything.
To improve loading times.

Re: Translate by Language compiler makelng.exe & Everything.

Posted: Mon Nov 09, 2015 6:47 pm
by Stamimail
Is it easy to make "Translation Mode", so that Everything will load translation directly from TXT file?
Maybe something like:

Code: Select all

Everything.exe -TranslationFromTXT
This may help a lot to ease the translation process.

Re: Translate by Language compiler makelng.exe & Everything.

Posted: Tue Nov 10, 2015 6:48 am
by void
Is it easy to make "Translation Mode", so that Everything will load translation directly from TXT file?

It is easy, but I doubt I would add a translation mode as it requires adding the makelng compiler into Everything.
The makelng compiler contains a lot of string names which would drastically increase the size of Everything.

I recommend running Everything from a bat file, just call makelng.exe before running Everything:

Everything.bat

Code: Select all

makelng.exe
Everything.exe
Note: make sure makelng.exe and your Template.txt are in the same location as Everything.exe.
or modify your bat file to run makelng in another directory and copy the compiled Everything.lng to the Everything folder.

Re: Translate by Language compiler makelng.exe & Everything.

Posted: Tue Nov 10, 2015 1:14 pm
by Stamimail
I tried it.
It still not so convenient. In addition, each time running the bat you receive a message from making.exe, and this message pausing the bat.
I think the best from the side of translator, is to get it in the following way:
1. He will open Everything
2. He will open Template.txt
3. Now, while those 2 windows are always open, he will edit the Template.text, Ctrl+S for saving (there is no need to close the Template window), Go to Everything window, and will have a ShortcutKey/Button to Restart Everything.
4. See changes... Editing again, Ctrl+s, Restart Everything... <<<

Since the size or performance are not important for translating, maybe a special EXE file like EverythingTranslating.EXE is the best solution.

Re: Translate by Language compiler makelng.exe & Everything.

Posted: Wed Nov 11, 2015 9:46 am
by void
A silent mode for makelng.exe would help for now.
I've added this to my TODO List.

Something like:

Everything.bat

Code: Select all

:start
makelng /silent
Everything.exe
goto start
When you exit Everything with File -> Exit (Ctrl + Q), it would restart after recompiling the language pack..

Re: Translate by Language compiler makelng.exe & Everything.

Posted: Tue Nov 24, 2015 6:36 am
by void
makelng now has a -s switch to make it silent:

Code: Select all

makelng.exe -s

Re: Translate by Language compiler makelng.exe & Everything.

Posted: Thu Nov 26, 2015 1:52 pm
by Stamimail
I found License.txt file existence makes problem with the the translation process (makelng.exe), till I deleted the License.txt file.
Apart from that, it looks it works, it's great, thanks.

Re: Translate by Language compiler makelng.exe & Everything.lng

Posted: Sun Sep 04, 2016 8:44 pm
by Stamimail
Currently, the user (translator) must quit Everything before running the batch.
Running the batch while Everything is running, leads to endless new instances.
Is it possible to improve the batch code so that it won't do any harm if running it while Everything is already running?

Re: Translate by Language compiler makelng.exe & Everything.lng

Posted: Mon Sep 05, 2016 8:52 am
by void
Is it possible to improve the batch code so that it won't do any harm if running it while Everything is already running?
Please try using the -exit command line option to ensure no Everything is running:

Code: Select all

Everything.exe -exit
:start
makelng -s
Everything.exe
goto start

Re: Translate by Language compiler makelng.exe & Everything.lng

Posted: Sun Apr 16, 2017 9:08 am
by Stamimail
This batch code is just great,
except that Everything window loses its focus when I does Ctrl+Q. Everything quit and restart, but after restart it's not the active window, and you need to switch to Everything window manually each time.
Is there a way to make Everything window become Active again after pressing Ctrl+Q?

Re: Translate by Language compiler makelng.exe & Everything.lng

Posted: Sun Apr 23, 2017 2:54 am
by void
Windows will block Everything from becoming the foreground because the bat file loses the foreground window.

You might like to try restarting Everything after compiling a new language file:
Recompile your Everything.lng
Type in the following search and press ENTER:
/restart

I'll consider adding a restart keyboard shortcut option to Everything.