Re: customise internationalization
On 2019-01-17 21:56, Greg Wooledge wrote: On Thu, Jan 17, 2019 at 09:50:01PM +0100, email.list...@gmail.com wrote: That was going to be my next question. I use lightdm to login in to KDE. I was thinking I'd put it in ~/.bashrc for the shell and either ~/.xsessionrc or ~/.dmrc for the desktop environment? Try .xsessionrc and see if that works. The questions will be: (1) Does KDE overwrite your variables? (2) Are your terminals launched as children of the KDE window manager, or are they spawned from the pits of hell like GNOME does it? It seems that the following process relationships hold init->konsole->bash Maybe you'll get "lucky" and .xsessionrc will simply work, and then you'll be done. I don't know, but it's worth a try, before you go diving into the realms of the primordial gods. I think I got lucky, putting things in ~/.xsessionrc seems to have worked :)
Re: customise internationalization
Greg Wooledge wrote: > [...] > I don't know, but it's worth a try, before you go diving into > the realms of the primordial gods. But jiw else are we to wake Cthulhu? :) -- |_|O|_| Registered Linux user #585947 |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
Re: customise internationalization
On Thu, Jan 17, 2019 at 09:50:01PM +0100, email.list...@gmail.com wrote: > That was going to be my next question. I use lightdm to login in to KDE. I > was thinking I'd put it in ~/.bashrc for the shell and either ~/.xsessionrc > or ~/.dmrc for the desktop environment? Try .xsessionrc and see if that works. The questions will be: (1) Does KDE overwrite your variables? (2) Are your terminals launched as children of the KDE window manager, or are they spawned from the pits of hell like GNOME does it? Maybe you'll get "lucky" and .xsessionrc will simply work, and then you'll be done. I don't know, but it's worth a try, before you go diving into the realms of the primordial gods.
Re: customise internationalization
On 2019-01-17 14:12, Greg Wooledge wrote: On Wed, Jan 16, 2019 at 05:45:58PM -0500, Roberto C. Sánchez wrote: On Wed, Jan 16, 2019 at 11:38:52PM +0100, Andreas Berglund wrote: Hi! I have Swedish language settings. I would like to partly change those. I want Swedish keyboard settings and all the date formats, currency, thousands separators, decimals and so on to conform to Swedish convention. But in programs I want all menus, messages, error messages etc in English. Is this doable, if so how? Have a look at the locale(7) man page. It describes macros for use by a programmer, but each of those macros also corresponds to an environment variable. You can accomplish what you describe by settting all the LC_* variables (or perhaps LC_ALL) to your Swedish locale and then setting LANG to an English language locale. Not LC_ALL. That would override LANG. export LANG=en_US.utf8 # or en_GB or whatever you prefer export LC_TIME=sv_SE.utf8 export LC_MONETARY=sv_SE.utf8 export LC_NUMERIC=sv_SE.utf8 You'll have to figure out *where* to do this, and that will depend on how you login to the system, and also on whether you run some kind of Desktop Environment that will clobber your environment settings. Thanks for the help. That was going to be my next question. I use lightdm to login in to KDE. I was thinking I'd put it in ~/.bashrc for the shell and either ~/.xsessionrc or ~/.dmrc for the desktop environment?
Re: customise internationalization
On Wed, Jan 16, 2019 at 05:45:58PM -0500, Roberto C. Sánchez wrote: > On Wed, Jan 16, 2019 at 11:38:52PM +0100, Andreas Berglund wrote: > > Hi! > > > > I have Swedish language settings. I would like to partly change those. I > > want Swedish keyboard settings and all the date formats, currency, thousands > > separators, decimals and so on to conform to Swedish convention. But in > > programs I want all menus, messages, error messages etc in English. Is this > > doable, if so how? > > > Have a look at the locale(7) man page. It describes macros for use by a > programmer, but each of those macros also corresponds to an environment > variable. You can accomplish what you describe by settting all the LC_* > variables (or perhaps LC_ALL) to your Swedish locale and then setting > LANG to an English language locale. Not LC_ALL. That would override LANG. export LANG=en_US.utf8 # or en_GB or whatever you prefer export LC_TIME=sv_SE.utf8 export LC_MONETARY=sv_SE.utf8 export LC_NUMERIC=sv_SE.utf8 You'll have to figure out *where* to do this, and that will depend on how you login to the system, and also on whether you run some kind of Desktop Environment that will clobber your environment settings.
Re: customise internationalization
On Wed, Jan 16, 2019 at 11:38:52PM +0100, Andreas Berglund wrote: > Hi! > > I have Swedish language settings. I would like to partly change those. I > want Swedish keyboard settings and all the date formats, currency, thousands > separators, decimals and so on to conform to Swedish convention. But in > programs I want all menus, messages, error messages etc in English. Is this > doable, if so how? > Have a look at the locale(7) man page. It describes macros for use by a programmer, but each of those macros also corresponds to an environment variable. You can accomplish what you describe by settting all the LC_* variables (or perhaps LC_ALL) to your Swedish locale and then setting LANG to an English language locale. Regards, -Roberto -- Roberto C. Sánchez
customise internationalization
Hi! I have Swedish language settings. I would like to partly change those. I want Swedish keyboard settings and all the date formats, currency, thousands separators, decimals and so on to conform to Swedish convention. But in programs I want all menus, messages, error messages etc in English. Is this doable, if so how? regards Andreas