Translate by Language compiler makelng.exe & Everything.lng

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

Translate by Language compiler makelng.exe & Everything.lng

Postby Stamimail » Sun Nov 08, 2015 11:19 pm

Why this method was chosen to translate Everything?
Instead of translating directly from TXT/INI files, Language files under Lang folder

void
Site Admin
Posts: 3294
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Mon Nov 09, 2015 1:05 am

Why this method was chosen to translate Everything?


To reduce the size of Everything.
To improve loading times.

Stamimail
Posts: 289
Joined: Sat Aug 31, 2013 9:05 pm

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

Postby Stamimail » Mon Nov 09, 2015 6:47 pm

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
Site Admin
Posts: 3294
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Tue Nov 10, 2015 6:48 am

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: 289
Joined: Sat Aug 31, 2013 9:05 pm

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

Postby Stamimail » Tue Nov 10, 2015 1:14 pm

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
Site Admin
Posts: 3294
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Wed Nov 11, 2015 9:46 am

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
Site Admin
Posts: 3294
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Tue Nov 24, 2015 6:36 am

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

Code: Select all

makelng.exe -s

Stamimail
Posts: 289
Joined: Sat Aug 31, 2013 9:05 pm

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

Postby Stamimail » Thu Nov 26, 2015 1:52 pm

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: 289
Joined: Sat Aug 31, 2013 9:05 pm

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

Postby Stamimail » Sun Sep 04, 2016 8:44 pm

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
Site Admin
Posts: 3294
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Mon Sep 05, 2016 8:52 am

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: 289
Joined: Sat Aug 31, 2013 9:05 pm

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

Postby Stamimail » Sun Apr 16, 2017 9:08 am

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
Site Admin
Posts: 3294
Joined: Fri Oct 16, 2009 11:31 pm

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

Postby void » Sun Apr 23, 2017 2:54 am

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.


Return to “General”