Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - How to set environment variables
How to set environment variables
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Tue Aug 11, 2009 12:44 pm    Post subject: How to set environment variables

I voted on a request to OOo to allow for not translating formula names.

I got a reply to set the environment variable OOO_CALC_USE_ENGLISH_FORMULAS (which is experimental but I'll give it a go).

But how do I set that for NeoOffice?

best wishes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue Aug 11, 2009 1:06 pm    Post subject:

Assuming the ones you want are supported in the current version of Neo, you could use something like RCEnvironment to set it globally.

I think there's a way to set them per-app using user defaults (e.g., org.neooffice.neooffice.plist), but I've forgotten what it is.

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Aug 11, 2009 1:25 pm    Post subject:

You should not need any special application to set environment variables on your Mac. Instead follow the steps in the following Apple tech note:

http://developer.apple.com/qa/qa2001/qa1067.html

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue Aug 11, 2009 2:02 pm    Post subject:

pluby wrote:
You should not need any special application to set environment variables on your Mac. Instead follow the steps in the following Apple tech note:

http://developer.apple.com/qa/qa2001/qa1067.html

Patrick

Apple's method does require you to have the Developer Tools installed, though, to get Property List Editor.

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Wed Aug 12, 2009 12:29 am    Post subject:

So do I add this to the ~/.MacOSX/environment.plist file or do I add it to ~/Library/Preferences/org.neooffice.NeoOffice.plist?

Best wishes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Aug 12, 2009 7:55 am    Post subject:

ovvldc wrote:
So do I add this to the ~/.MacOSX/environment.plist file or do I add it to ~/Library/Preferences/org.neooffice.NeoOffice.plist?


The Apple tech note that I linked to pretty clearly says that you edit the ~/.MacOSX/environment.plist.

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Wed Aug 12, 2009 12:42 pm    Post subject:

OK. I just wondered if it was possible to set it per application as well. My apologies.
_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Aug 12, 2009 12:55 pm    Post subject:

ovvldc wrote:
OK. I just wondered if it was possible to set it per application as well. My apologies.


I don't think it is possible to do that in that NeoOffice file. IIRC, you can do it in the application's Contents/Info.plist file, but that gets overwritten each time you install a NeoOffice patch.

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Thu Aug 13, 2009 3:44 pm    Post subject:

Woot! It works. Thanks go to Smokey for sending me the Property List Editor app, Patrick for pointing me to the Apple pages and Regina at OpenOffice.org for pointing me to the environment variable.

I put the attached file in the ~/.MacOSX/ folder and now all my formulae are in English while the UI is in Dutch Smile.

Thanks again,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Dec 26, 2013 10:18 am    Post subject:

Important note: Apple removed support for the ~/.MacOSX/environment.plist file so if you are running Mac OS X 10.8 Mountain Lion or higher, use the following steps to set the OOO_CALC_USE_ENGLISH_FORMULAS environment variable:

1. Create a "LaunchAgents" subfolder within your ~/Library folder (note: "~" means your Home folder)

2. Save the this file in the ~/Library/LaunchAgents folder. Be sure to name the saved file "local.launchd.conf.plist".

3. Log out or reboot your machine.

After the above steps, formulas in Calc documents should be displayed in English.

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Fri Dec 27, 2013 5:28 am    Post subject:

I can confirm that it works with NeoOffice 3.4 with test patch 8 and NeoOffice 2013.1 on 10.9 Mavericks as well (at least on my machine).

Thanks, Patrick!

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Fri Dec 27, 2013 10:37 pm    Post subject:

There's now a wiki article about this, with instructions for 10.8+ and 10.7- and links to the relevant files that Patrick uploaded for each.

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Sat Dec 28, 2013 3:42 am    Post subject:

Great work Smokey, thanks!
_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.