Results 1 to 3 of 3

Thread: how to have temporary english_US bash output?

  1. #1

    Default how to have temporary english_US bash output?

    In my opensuse 13.1 with kde 4.11.5 system language=italian, I would like to have bash output in english_US only for one command, not forever, how can I get this??
    I tried all these but without success:
    Code:
    eros@suse2-share1:~> LANG=en_US plasma-desktop --version
    Qt: 4.8.5
    Piattaforma di sviluppo KDE: 4.11.5
    Shell del desktop di Plasma: 4.11.5
    eros@suse2-share1:~> LANG=en_US.UTF-8 plasma-desktop --version
    Qt: 4.8.5
    Piattaforma di sviluppo KDE: 4.11.5
    Shell del desktop di Plasma: 4.11.5
    eros@suse2-share1:~> echo $LANG
    en_US.UTF-8
    eros@suse2-share1:~> LC_MESSAGES=en_US.UTF-8 plasma-desktop --version
    Qt: 4.8.5
    Piattaforma di sviluppo KDE: 4.11.5
    Shell del desktop di Plasma: 4.11.5
    eros@suse2-share1:~> export LANG=en_US.UTF-8; plasma-desktop --version
    Qt: 4.8.5
    Piattaforma di sviluppo KDE: 4.11.5
    Shell del desktop di Plasma: 4.11.5
    eros@suse2-share1:~>
    I would like to have this output for the above command:
    Code:
    procuste@suse2-share1:~> plasma-desktop --version
    Qt: 4.8.5
    KDE Development Platform: 4.11.5
    Plasma Desktop Shell: 4.11.5
    procuste@suse2-share1:~>
    but without changing the italian language for the whole system

    manythanx, :-) ciao :-) pier

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,401

    Default Re: how to have temporary english_US bash output?

    The most easy wayy to have one command you type seeing the environment variable LANG= is preceding the command with it:
    Code:
    LANG=C command
    Instead of C you could use en_US, but I ind C easier to type.

    Example:
    Code:
    henk@boven:~> df -h
    Bestandssysteem Grootte Gebruikt Besch Geb% Aangekoppeld op
    /dev/sda2           20G     5,2G   14G  28% /
    devtmpfs           987M      40K  987M   1% /dev
    tmpfs              999M      84K  999M   1% /dev/shm
    tmpfs              999M     3,4M  996M   1% /run
    tmpfs              999M        0  999M   0% /sys/fs/cgroup
    tmpfs              999M     3,4M  996M   1% /var/run
    tmpfs              999M     3,4M  996M   1% /var/lock
    /dev/sda3           92G      51G   40G  57% /home
    /dev/sda5           20G     5,3G   14G  29% /mnt/B
    /dev/sda6           99G      68G   26G  73% /mnt/B/home
    henk@boven:~> LANG=C df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda2        20G  5.2G   14G  28% /
    devtmpfs        987M   40K  987M   1% /dev
    tmpfs           999M   84K  999M   1% /dev/shm
    tmpfs           999M  3.4M  996M   1% /run
    tmpfs           999M     0  999M   0% /sys/fs/cgroup
    tmpfs           999M  3.4M  996M   1% /var/run
    tmpfs           999M  3.4M  996M   1% /var/lock
    /dev/sda3        92G   51G   40G  57% /home
    /dev/sda5        20G  5.3G   14G  29% /mnt/B
    /dev/sda6        99G   68G   26G  73% /mnt/B/home
    Henk van Velden

  3. #3

    Default Re: how to have temporary english_US bash output?

    Quote Originally Posted by hcvv View Post
    The most easy wayy to have one command you type seeing the environment variable LANG= is preceding the command with it:
    Code:
    LANG=C command
    Instead of C you could use en_US, but I ind C easier to type.
    many thanks, LANG=C works fine, but LANG=en_US doesn't works... , but I'm ok with LANG=C..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •