Re: "open --env" for changing the locale ?

Jean-Christophe Helary <jean.christophe.helary-QgsHSxYFCUK3byy5ozDitmD2FQJk+8+b@public.gmane.org> Sat, 28 Aug 2021 04:45:06 +0900
Newsgroups gmane.comp.macosx.general
Message-ID <[email protected]>
--===============5136910450752271505==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_D9B638DB-A30C-42B8-9371-AD7D7271EDA1"


--Apple-Mail=_D9B638DB-A30C-42B8-9371-AD7D7271EDA1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii



> On Aug 28, 2021, at 4:38, Carl Hoefs <[email protected]> =
wrote:
>=20
> I didn't know you could use 'open' in that way, but it looks like it =
should work.

It doesn't here :-)

> On the other hand, have you tried using -AppleLanguages?=20

I did not know about this trick.

> This works for me (on Big Sur):
>=20
> /System/Applications/TextEdit.app/Contents/MacOS/TextEdit =
-AppleLanguages '(fr)' &
>=20
> Just make sure that TextEdit.app isn't open yet.

But it also allows for multiple instances.

What I was trying to do was change the locale "locally" to launch a Java =
app in a different language. So that -AppleLanguages option is not going =
to work...

JC

> -Carl
>=20
>=20
>> On Aug 26, 2021, at 5:13 PM, Jean-Christophe Helary =
<jean.christophe.helary-QgsHSxYFCUK3byy5ozDitmD2FQJk+8+b@public.gmane.org> wrote:
>>=20
>> man open gives the following example:
>>=20
>> open --env MallocStackLogging=3DYES -b com.apple.TextEdit
>>=20
>> I tried with LANG or LC_MESSAGES and that did not seem to make any =
difference:
>>=20
>> open --env LC_MESSAGES=3D"fr_FR.UTF-8" -b com.apple.TextEdit
>>=20
>> So I was wondering if I was missing something obvious or if that were =
even possible.
>>=20
>> --=20
>> Jean-Christophe Helary @brandelune
>> https://mac4translators.blogspot.com
>> https://sr.ht/~brandelune/omegat-as-a-book/
>>=20
>> _______________________________________________
>> MacOSX-talk mailing list
>> [email protected]
>> https://www.omnigroup.com/mailman/listinfo/macosx-talk
>=20

--=20
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


--Apple-Mail=_D9B638DB-A30C-42B8-9371-AD7D7271EDA1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Aug 28, 2021, at 4:38, Carl Hoefs &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">I =
didn't know you could use 'open' in that way, but it looks like it =
should work.<br class=3D""></div></div></blockquote><div><br =
class=3D""></div><div>It doesn't here :-)</div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D""><div class=3D"">On the other =
hand, have you tried using -AppleLanguages? <br =
class=3D""></div></div></blockquote><div><br class=3D""></div><div>I did =
not know about this trick.</div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><div class=3D"">This works for me (on Big =
Sur):<br class=3D""><br =
class=3D"">/System/Applications/TextEdit.app/Contents/MacOS/TextEdit =
-AppleLanguages '(fr)' &amp;<br class=3D""><br class=3D"">Just make sure =
that TextEdit.app isn't open yet.<br =
class=3D""></div></div></blockquote><div><br class=3D""></div><div>But =
it also allows for multiple instances.</div><div><br =
class=3D""></div><div>What I was trying to do was change the locale =
"locally" to launch a Java app in a different language. So that =
-AppleLanguages option is not going to work...</div><div><br =
class=3D""></div><div>JC</div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><div class=3D"">-Carl<br class=3D""><br =
class=3D""><br class=3D""><blockquote type=3D"cite" class=3D"">On Aug =
26, 2021, at 5:13 PM, Jean-Christophe Helary &lt;<a =
href=3D"mailto:jean.christophe.helary-QgsHSxYFCUK3byy5ozDitmD2FQJk+8+b@public.gmane.org" =
class=3D"">jean.christophe.helary-QgsHSxYFCUK3byy5ozDitmD2FQJk+8+b@public.gmane.org</a>&gt; wrote:<br =
class=3D""><br class=3D"">man open gives the following example:<br =
class=3D""><br class=3D"">open --env MallocStackLogging=3DYES -b =
com.apple.TextEdit<br class=3D""><br class=3D"">I tried with LANG or =
LC_MESSAGES and that did not seem to make any difference:<br =
class=3D""><br class=3D"">open --env LC_MESSAGES=3D"fr_FR.UTF-8" -b =
com.apple.TextEdit<br class=3D""><br class=3D"">So I was wondering if I =
was missing something obvious or if that were even possible.<br =
class=3D""><br class=3D"">-- <br class=3D"">Jean-Christophe Helary =
@brandelune<br class=3D""><a href=3D"https://mac4translators.blogspot.com"=
 class=3D"">https://mac4translators.blogspot.com</a><br =
class=3D"">https://sr.ht/~brandelune/omegat-as-a-book/<br class=3D""><br =
class=3D"">_______________________________________________<br =
class=3D"">MacOSX-talk mailing list<br =
class=3D"">[email protected]<br =
class=3D"">https://www.omnigroup.com/mailman/listinfo/macosx-talk<br =
class=3D""></blockquote><br class=3D""></div></div></blockquote></div><br =
class=3D""><div class=3D"">
<meta charset=3D"UTF-8" class=3D""><div dir=3D"auto" style=3D"color: =
rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
dir=3D"auto" style=3D"color: rgb(0, 0, 0); letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D""><div dir=3D"auto" style=3D"color: rgb(0, 0, 0); =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
style=3D"color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D"">--&nbsp;<br class=3D"">Jean-Christophe =
Helary&nbsp;@brandelune<br class=3D""><a =
href=3D"https://mac4translators.blogspot.com" =
class=3D"">https://mac4translators.blogspot.com</a><br =
class=3D"">https://sr.ht/~brandelune/omegat-as-a-book/<br =
class=3D""></div></div></div></div>
</div>
<br class=3D""></body></html>=

--Apple-Mail=_D9B638DB-A30C-42B8-9371-AD7D7271EDA1--

--===============5136910450752271505==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MacOSX-talk mailing list
[email protected]
https://www.omnigroup.com/mailman/listinfo/macosx-talk

--===============5136910450752271505==--