Translate by Language compiler makelng.exe & Everything.lng

General discussion related to "Everything".
Post Reply
Stamimail
Posts: 1121
Joined: Sat Aug 31, 2013 9:05 pm

Translate by Language compiler makelng.exe & Everything.lng

Post by Stamimail »

Why this method was chosen to translate Everything?
Instead of translating directly from TXT/INI files, Language files under Lang folder
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

Why this method was chosen to translate Everything?
To reduce the size of Everything.
To improve loading times.
Stamimail
Posts: 1121
Joined: Sat Aug 31, 2013 9:05 pm

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

Post 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.
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

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

Post 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.
Stamimail
Posts: 1121
Joined: Sat Aug 31, 2013 9:05 pm

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

Post 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.
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

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

Post 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..
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

makelng now has a -s switch to make it silent:

Code: Select all

makelng.exe -s
Stamimail
Posts: 1121
Joined: Sat Aug 31, 2013 9:05 pm

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

Post 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.
Stamimail
Posts: 1121
Joined: Sat Aug 31, 2013 9:05 pm

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

Post 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?
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

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

Post 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
Stamimail
Posts: 1121
Joined: Sat Aug 31, 2013 9:05 pm

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

Post 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?
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

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

Post 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.
Post Reply