> 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).​

> The best idea is to set language in Options/Preference, and Geany would ask 
> about default language at first beginning (first run only).

​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.  

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.  

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.

> Also, I want to distribute Geany as editor for students in school to teach 
> lua language, but i want it supported by offical.

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.


 


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1757#issuecomment-362868750

Reply via email to