<blockquote>
<p>It is not just Windows, Setting default language using just system Linux/Windows, it is not good idea, Applications should not take language from then system (only for the first time for initial setting).​</p>
</blockquote>
<blockquote>
<p>The best idea is to set language in Options/Preference, and Geany would ask about default language at first beginning (first run only).</p>
</blockquote>
<p>​Unfortunately applications doing their own thing is not the way the writers of the libraries Geany uses see it.  They follow the defined ISO POSIX standards which use the system locale setting specified by environment variables.  Using these is defined in the international standards for many of the libraries including for the C language itself.  Changing them within the program may or may not work depending on how the libraries are written, and the Geany devs do not control that.</p>
<p>To run a program with a different locale from the system one the environment variables have to be set before running the program, but that requires the user to execute one or more commands in the command line.  Those changes are not persistent between logins though and are not new user friendly.  Also starting programs by commands at the command line may be normal for Linux, less so for windows and (IIUC) unusual for OSX.</p>
<p>So the Geany OSX maintainer has provided a script to set those environment variables up before running Geany itself, and the script can then be executed from the OSX GUI.  But the script needs to know what language you want, but there is no user interaction available to the script, and it would be annoying to have to choose every time.  So the script reads the language from a file, a method which is persistent.  The file only needs to be set up once, so you can distribute it with Geany.</p>
<blockquote>
<p>Also, I want to distribute Geany as editor for students in school to teach lua language, but i want it supported by offical.</p>
</blockquote>
<p>Geany is a project run by volunteers who work on the parts they are interested in, just as the OSX support is contributed by someone who is interested in that.  If somebody wishes to contribute specific support for easier student use then they may, but nobody can be forced to.  Lua is already supported.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1757#issuecomment-362868750">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ2DUmlMJKDMlMX4ir084W8iOqxZGks5tRPibgaJpZM4R2daT">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ39x1CdHwXZPPjT3fOXtdpSYXtMTks5tRPibgaJpZM4R2daT.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1757#issuecomment-362868750"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #1757: \u003e It is not just Windows, Setting default language using just system Linux/Windows, it is not good idea, Applications should not take language from then system (only for the first time for initial setting).​\r\n\r\n\u003e The best idea is to set language in Options/Preference, and Geany would ask about default language at first beginning (first run only).\r\n\r\n​Unfortunately applications doing their own thing is not the way the writers of the libraries Geany uses see it.  They follow the defined ISO POSIX standards which use the system locale setting specified by environment variables.  Using these is defined in the international standards for many of the libraries including for the C language itself.  Changing them within the program may or may not work depending on how the libraries are written, and the Geany devs do not control that.  \r\n\r\nTo run a program with a different locale from the system one the environment variables have to be set before running the program, but that requires the user to execute one or more commands in the command line.  Those changes are not persistent between logins though and are not new user friendly.  Also starting programs by commands at the command line may be normal for Linux, less so for windows and (IIUC) unusual for OSX.  \r\n\r\nSo the Geany OSX maintainer has provided a script to set those environment variables up before running Geany itself, and the script can then be executed from the OSX GUI.  But the script needs to know what language you want, but there is no user interaction available to the script, and it would be annoying to have to choose every time.  So the script reads the language from a file, a method which is persistent.  The file only needs to be set up once, so you can distribute it with Geany.\r\n\r\n\u003e Also, I want to distribute Geany as editor for students in school to teach lua language, but i want it supported by offical.\r\n\r\nGeany is a project run by volunteers who work on the parts they are interested in, just as the OSX support is contributed by someone who is interested in that.  If somebody wishes to contribute specific support for easier student use then they may, but nobody can be forced to.  Lua is already supported.\r\n\r\n\r\n \r\n"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1757#issuecomment-362868750"}}}</script>