[geany/www.geany.org] a653b9: Update tips about change language on unix (#28)
Luiz Bettoni
git-noreply at xxxxx
Sun Mar 21 14:35:06 UTC 2021
Branch: refs/heads/master
Author: Luiz Bettoni <72033323+luizbettoni at users.noreply.github.com>
Committer: GitHub <noreply at github.com>
Date: Sun, 21 Mar 2021 14:35:06 UTC
Commit: a653b9072b5b66ab4938334f5343282038eccc69
https://github.com/geany/www.geany.org/commit/a653b9072b5b66ab4938334f5343282038eccc69
Log Message:
-----------
Update tips about change language on unix (#28)
Modified Paths:
--------------
page_content/documentation/faq.md
Modified: page_content/documentation/faq.md
18 lines changed, 14 insertions(+), 4 deletions(-)
===================================================================
@@ -149,10 +149,20 @@ Simply start Geany like this:
and of course, change "C" to your language code (see above) or set
your locale specific environment variables accordingly.
-If your system supports launcher shortcuts (for example, `.desktop` files),
-then Geany's shortcut can be updated (created a new one) to add the `LANG`
-setting as shown above. In case of `.desktop` files, this usually goes into
-the `Exec` line.
+If your system supports launcher shortcuts then Geany's shortcut can be updated
+to add language setting. For example, in
+[modern `.desktop` files](https://developer.gnome.org/desktop-entry-spec/#exec-variables),
+this usually goes into the `Exec` line:
+
+ Exec=/bin/sh -c "LANGUAGE=en_IN /usr/bin/geany %F"
+
+As alternative, you can create a shell script in any directory in your `$PATH` to
+override the default `geany` binary. As example, one can create a file at
+`~/.local/bin/geany` (remember to make it executable):
+
+ #!/bin/sh
+ export LANGUAGE=en_US
+ exec /usr/bin/geany $@
## I get build errors after updating from Git, why?
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list