-
-
Notifications
You must be signed in to change notification settings - Fork 240
Setting English as the default language when running NetLogo
Having your system configured for a language other than English can sometimes cause problems with NetLogo (see, for example, this issue with the Turkish language). In such cases, it may help to explicitly tell NetLogo to behave as if English was the default language. The way to do this varies slightly from platform to platform, but always comes down to running the Java Virtual Machine with the -Duser.language=en
option:
Edit the netlogo.sh
file in your NetLogo folder and replace the line:
java -Djava.library.path=./lib -Djava.ext.dirs= -XX:MaxPermSize=128m -Xmx1024m -Dfile.encoding=UTF-8 -jar NetLogo.jar "$@"
with:
java -Djava.library.path=./lib -Djava.ext.dirs= -XX:MaxPermSize=128m -Xmx1024m -Dfile.encoding=UTF-8 -Duser.language=en -jar NetLogo.jar "$@"
Edit the NetLogo 5.0.4.vmoptions
file in your NetLogo folder and add the following option:
-Duser.language=en
Edit the Contents/Info.plist
file in the NetLogo application package. (You can reach this file by control-clicking the application in the Finder and choosing "Show Package Contents" from the popup menu.) The relevant section is this:
<key>VMOptions</key>
<string>-XX:MaxPermSize=128m -Xmx1024m</string>
You should replace the second line by
<string>-XX:MaxPermSize=128m -Xmx1024m -Duser.language=en</string>
- Extensions
- NetLogo Libraries
- Controlling API
- Extensions API
- 6.0 Extension and Controlling API Transition-Guide
- Optimizing NetLogo Runs
- Setting English as the Default Language when Running NetLogo
- Unofficial Features
- Advanced Installation
- Optimization List
- Java System Properties and how to use them
- NetLogo on ARM Devices
- Multiple Views via HubNet
- Branches
- Building
- Tests
- Windows Setup
- Continuous Integration
- Draft: How to Help
- Google Summer of Code Ideas List
- Syntax Highlighting
- Building with IntelliJ
- Code Formatting
- Localization
- File (.nlogo) and Widget Format
- Benchmarking
- Releasing
- Preparing the Models Library for Release
- Documentation
- NetLogo Bundled Java Versions
- JOGL
- Plugins API
- Architecture
- LazyAgentset
- Model Runs and Review Tab
- Model Runs: To Do and Code Overview
- Notes on in Radius
- Archived Branches
- The nlogox format
- Touch API Proposal
- Why isn't NetLogo "Parallel"?
- Potential Speedups
- Tortoise
- SimServer, WebStart, and NetLogo in Classrooms