Menù Principale

Cerca
Login
Registrati
Link
<< Discussione precedente | Discussione successiva >>   
Support for launch arguments in X-OmegaT

Autore Messaggio
Bichongo
lun 12 dic 2011 - 19:44
online
Utente registrato #40142
Registrato il: lun 12 dic 2011 - 19:32
Messaggi: 3

Hello,

I was wondering if the X-OmegaT version currently available needed to be updated in order to support some launch arguments (from the .ini file).

My particular case:

It is now possible to use Version 2 of Google translate API in OmegaT (version 2.5.0) but to do so, one needs to supply the program with a personal API key. It can be done through the .ini file (OmegaT.l4J.ini) or by using launch arguments in the command panel (-Dgoogle.api.key=XXXXXX).

I am asking because I tried both ways with the X-software and it does not seem to work (i.e. my translation requests to Google are either ignored or not sent at all, I can't tell)

My API key is valid and works on the non-portable version of OmegaT.

Thank you!
Torna ad inizio pagina
Taf
mar 13 dic 2011 - 08:05

online

Utente registrato #251
Registrato il: lun 22 gen 2007 - 10:12
Provenienza: Buttrio (UD)
Messaggi: 3357
Hi Bichongo,
I had a look to OmegaT website and i found actually the "stable/standard" version is still 2.3
Latest 2.5.0.04 is a Beta versionand it is not included in our update planning. Usually we test/update our portable versions only with "official/stable" releases.
So, please, be patient and wait until newest 2.5 version will be officially released.
Torna ad inizio pagina
Bichongo
mer 14 dic 2011 - 17:33
online
Utente registrato #40142
Registrato il: lun 12 dic 2011 - 19:32
Messaggi: 3
Thank you for your answer.

But just for the sake of discussion, let's forget I use version 2.5.0, as launch arguments were available in previous versions as well (to specify memory allocation for example).

If I wanted to use such arguments, where should I use them? I tried adding them to the OmegaT.l4J.ini that comes with the original program but it seems that this file is bypassed when used with a portable software.

Should I add them in the X-OmegaT.ini file?

E.g.
[FileToRun]
PathToExe=$Lib$\Java\bin\javaw.exe
Parameters=-Duser.home="%OmegaTProfileDir%" -jar -Xmx512M OmegaT.jar

I tried doing this as well but it does not seem to work. Am I missing something?

Thank you again!
Torna ad inizio pagina
ZioZione
mer 14 dic 2011 - 21:43
online

Utente registrato #74
Registrato il: dom 21 gen 2007 - 11:31
Provenienza: Tradate (VA)
Messaggi: 3821
Hi Bichongo, welcome to our forum!
Bichongo ha scritto ...

E.g.
[FileToRun]
PathToExe=$Lib$\Java\bin\javaw.exe
Parameters=-Duser.home="%OmegaTProfileDir%" -jar -Xmx512M OmegaT.jar

I tried doing this as well but it does not seem to work. Am I missing something?

Thank you again!

I am an absolute beginner for OmegaT, so forgive me for any error...

Maybe you misplaced the option.
I have just read into the OmegaT manual that all the commandline options must be written BEFORE calling the OmegaT.jar, as follows

Parameters=-Duser.home="%OmegaTProfileDir%" -Xmx512M -jar OmegaT.jar


I tried myself to modify this row into the X-OmegaT.ini, and it correctly runs (anyway, I don't know if this is enough for you to state that it works...).
Hope this helps.
Best Regards
ZioZione
Torna ad inizio pagina
Bichongo
mer 21 dic 2011 - 16:57
online
Utente registrato #40142
Registrato il: lun 12 dic 2011 - 19:32
Messaggi: 3
Thank you for your answer.

I believe you are absolutely right. I was trying this on a system for which I do not have administrator's rights and it's the reason why it did not work.

I was actually trying to use a portable version to bypass the limitations imposed by my not being an administrator.

Every argument seems to work on a machine where I do have these rights.

Thanks!
Torna ad inizio pagina
Taf
gio 22 dic 2011 - 09:47

online

Utente registrato #251
Registrato il: lun 22 gen 2007 - 10:12
Provenienza: Buttrio (UD)
Messaggi: 3357
YW

happy to read You solved your issue!

BTW, Merry Christmas and Happy new Year
Torna ad inizio pagina

Moderatori: Danix, Taf, Rcs, Energy, zandet2, ZioZione, Admin, LordJim60

Salta:     Torna ad inizio pagina

RSS discussione: rss 0.92 RSS discussione: rss 2.0 RSS discussione: RDF
Powered by e107 Forum System