Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Swapping between primary and secondary language

  1. #1

    Default Swapping between primary and secondary language

    How do you swap between primary and secondary languages for the keyboard (using GUI not terminal codes since this is for someone else who is a beginner at computing)? I installed the secondary language in the "language" section of yast, but can't see any options for swapping on the fly. Lets say they do 99% of stuff in english, but get an email they want to respond to in the secondary language or want to write a text document using the secondary language, is there a way to switch back and forth on the fly? thank you

  2. #2

    Default Re: Swapping between primary and secondary language

    Tried Personal Settings -> Input Devices -> Layouts ->

    Added Layout
    Switching Policy: Global
    Layout Indicator: Show Layout Indicator + Show Flag

    I now get a small flag in my taskbar next to the clock. I can click the flag and it swaps between the two .... but the words/letters are still english whichever flag I click and have showing

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,998

    Default Re: Swapping between primary and secondary language

    What you switch there is the keyboard layout (that is the input device layout configuration you found). It sees that the keys on your keyboard create the character codes that belong to the symbol upon the keys. There are different layouts for different scripts/languages, thus the need for a proper keycode to character conversion.

    The language used by applications (if they are programmed to support different languages) in their messages, buttons, menus and the like depend on the LANG environment variable. To see what your's is atm do
    Code:
    echo $LANG
    Changing the language of an application is thus not on the flight. An environment variable is part of the environment of a process. It is inherited from the father process. Thus when you login, the processes there inherits most probably a LANG variable with the system wide default. This can be changed in your .profile and will from then on be inherited by all the applications you start in that session. Most applications will not have a possibility to change the LANG variable on the flight (though bash has and maybe others also).
    Henk van Velden

  4. #4

    Default Re: Swapping between primary and secondary language

    In post #4, this person seems to have a way to do it on an older SUSE using "sax2" ... is there something like that on the newer versions? Changing Languages Suse 10.3

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,998

    Default Re: Swapping between primary and secondary language

    Quote Originally Posted by ENUsteve View Post
    In post #4, this person seems to have a way to do it on an older SUSE using "sax2" ... is there something like that on the newer versions? Changing Languages Suse 10.3
    In any case there is no sax or sax2 anymore.

    But that post only talks about changing the keyboard layout. That is what you allready have. That is the input side of it.

    You ask for something different. You ask for applications changing the language in wich they display messages, etc. That is the output side of it.
    E.g. when I start KPatience (my default language is Dutch) the upper left button reads "Spel" and when I start it with LANG=C, it reads "Game". I can switch the language at start of the application, but once KPatience is running, I can not change to another language.
    Henk van Velden

  6. #6

    Default Re: Swapping between primary and secondary language

    ps- post #1 from that link is exactly what I want to do. Sorry for the double post, I can't find an "edit" button, lol

  7. #7

    Default Re: Swapping between primary and secondary language

    Quote Originally Posted by hcvv View Post
    You ask for something different. You ask for applications changing the language in wich they display messages, etc.
    The display msg's etc can be in english. It doesn't matter. That guy is doing what I wanted to do ... which is to be able to set it up so the person can type in english and in Greek. For instance, you're from Netherlands, how do you do this:

    Write and email to someone in english, then write an email to someone else in Dutch? Is there an easy way for you to switch your languages when typing in such things as email, office, etc?

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,998

    Default Re: Swapping between primary and secondary language

    To anser your last question first, that switch is purely in my head. As Dutch and English both use the same alphabet there is nothing more needed.
    I type English. Ik tik Nederlands. Ich schreibe Deutsch. J'écrit français. No change needed.

    For you it is different. When you want an P, you want to type an P. And when you want a Π, you want to type a Π. Are those depicted on the same keyboard or do you swich keyboards also?

    I indeed did not understand your question correct. That is because you talk about writing English/Greek words where you mean Latin/Greek characters.

    Now I have no deep knowledge here, but those keyboard layouts are for different keyboards. You tell trhe system which keyboard you have. Do you eraly change the keyboard? Or is this a keyboard with Latin and Greek characters on the keys so that you can say: it looks as if I can use it to type Greek characters?
    Henk van Velden

  9. #9

    Default Re: Swapping between primary and secondary language

    Quote Originally Posted by hcvv View Post
    To anser your last question first, that switch is purely in my head. As Dutch and English both use the same alphabet there is nothing more needed.
    lol, that was a dumb question on my part. haha. It's a laptop with a standard US english keyboard. No swapping of keyboards / hardware.

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,998

    Default Re: Swapping between primary and secondary language

    Quote Originally Posted by ENUsteve View Post
    lol, that was a dumb question on my part. haha. It's a laptop with a standard US english keyboard. No swapping of keyboards / hardware.
    Well, not that dumb. I guess you are rather busy with your problem.
    I am afraid I can not help you.
    I know that every key on the boards has a key code. Also there is a table that translates these keycodes into characer codes. For ASCII this is (in fact was) simple. And when you change to Greek, I guess that that table must be replaced by another one that has UNICODE coding in the Grekk range. But I do not even know if pressing a P should then generate a Π or something different.

    What about the Greek subforum. I assume this must be a piece of cake for them?
    Last edited by hcvv; 15-Aug-2011 at 12:43.
    Henk van Velden

Page 1 of 2 12 LastLast

Posting Permissions

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