Main menu

Search
Login
Signup
Sponsored Links
Announcements
<< Previous thread | Next thread >>   
Support for launch arguments in X-OmegaT

Author Post
Bichongo
Mon 12 Dec 2011 - 19:44
online
Registered Member #40142
Joined: Mon 12 Dec 2011 - 19:32
Posts: 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!
Back to top
Taf
Tue 13 Dec 2011 - 08:05

online

Registered Member #251
Joined: Mon 22 Jan 2007 - 10:12
Location: Buttrio (UD)
Posts: 2992
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.
Back to top
Bichongo
Wed 14 Dec 2011 - 17:33
online
Registered Member #40142
Joined: Mon 12 Dec 2011 - 19:32
Posts: 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!
Back to top
ZioZione
Wed 14 Dec 2011 - 21:43
online

Registered Member #74
Joined: Sun 21 Jan 2007 - 11:31
Location: Tradate (VA)
Posts: 3821
Hi Bichongo, welcome to our forum!
Bichongo wrote ...

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
Back to top
Bichongo
Wed 21 Dec 2011 - 16:57
online
Registered Member #40142
Joined: Mon 12 Dec 2011 - 19:32
Posts: 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!
Back to top
Taf
Thu 22 Dec 2011 - 09:47

online

Registered Member #251
Joined: Mon 22 Jan 2007 - 10:12
Location: Buttrio (UD)
Posts: 2992
YW

happy to read You solved your issue!

BTW, Merry Christmas and Happy new Year
Back to top

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

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System