Announcement

Collapse
No announcement yet.

Rednotebook: Thai language in calendar and menus

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Rednotebook: Thai language in calendar and menus

    Hello, all. I ve installed rednotebook and I have thai language (I think) in the calendar and menus... How do I get it back to English?

    I've installed through the muon and the deb. from the website but no difference/

    Thank you

    #2
    Bump

    Comment


      #3
      Q

      Do you have the thai language installed ?
      What are your language settings ?

      Suggestion

      The Rednotebook seems to be a GTK application so this may or may not work. With the KDE/Qt applications you could set/force the language with the command:
      Code:
      export LANG=country_COUNTRY.UTF-8
      i.e
      export LANG=en_US.UTF-8
      or
      export LANG=en_GB.UTF-8
      or
      export LANG=C

      and then start the Rednotebook.

      Code:
      :~$ export LANG=C
      :~$ rednotebook
      Have you tried ?

      - How to Ask a Question on the Internet and Get It Answered
      - How To Ask Questions The Smart Way

      Comment


        #4
        Hello, I only have English as my language settings. Is the codes your posting go into the terminal?

        Comment


          #5
          Yes, it is with the konsole.

          If it is working, then you could add it to the KDE menu with the the KDE menu editor. Tested with the Yarock - a Qt app:



          Code:
          export LANG=<YOUR LANGUAGE> && command_to_execute

          Links:
          - http://stackoverflow.com/questions/8...erent-language
          - http://www.linuxtopia.org/online_boo...variables.html

          It may or may not work with the Rednotebook - a GTK application.
          Last edited by OneLine; Jul 09, 2013, 10:31 AM.
          Have you tried ?

          - How to Ask a Question on the Internet and Get It Answered
          - How To Ask Questions The Smart Way

          Comment


            #6
            THis is the output I am getting from the terminal, I am sure I am doing something wrong here:

            stosskraft@stosskraft-HP-G42-Notebook-PC:~$ export LANG=country_COUNTRY.UTF-8
            stosskraft@stosskraft-HP-G42-Notebook-PC:~$ export LANG=C
            stosskraft@stosskraft-HP-G42-Notebook-PC:~$ rednotebook
            2013-07-10 06:55:39,067 DEBUG Debug message
            2013-07-10 06:55:39,067 INFO Writing log to file "/home/stosskraft/.rednotebook/rednotebook.log"
            2013-07-10 06:55:39,068 INFO System encoding: ANSI_X3.4-1968
            2013-07-10 06:55:39,068 INFO Language code: None
            2013-07-10 06:55:39,169 INFO MathJax location: http://cdn.mathjax.org/mathjax/latest/MathJax.js
            2013-07-10 06:55:40,833 INFO Running in portable mode: False
            2013-07-10 06:55:40,834 INFO First Start: False
            2013-07-10 06:55:40,834 INFO RedNotebook version: 1.7.2
            2013-07-10 06:55:40,856 INFO System info: machine: x86_64, platform: Linux-3.8.0-26-generic-x86_64-with-Ubuntu-13.04-raring, processor: x86_64, python_version: 2.7.4, release: 3.8.0-26-generic, system: Linux, GTK version: (2, 24, 17), PyGTK version: (2, 24, 0), Yaml version: 3.10
            2013-07-10 06:55:41,382 DEBUG Default font: OxygenSans 12
            2013-07-10 06:55:41,382 DEBUG Default size: 12
            /usr/share/rednotebook/rednotebook/gui/main_window.py:157: PangoWarning: pango_layout_set_text: assertion `length == 0 || text != NULL' failed
            self.main_frame.show()
            2013-07-10 06:55:41,507 INFO Cloud ignore list: [u'comma', u'filter', u'separated', u'these', u'words']
            2013-07-10 06:55:41,507 INFO Cloud include list: [u'job', u'mtv', u'play', u'spam', u'work']
            2013-07-10 06:55:41,507 DEBUG Start compiling regexes
            2013-07-10 06:55:41,508 DEBUG Finished
            2013-07-10 06:55:41,548 DEBUG Tray icon visible: False
            2013-07-10 06:55:41,551 INFO Opening journal at u'/home/stosskraft/Dropbox/BackUp/RedNotebook-Backup-Rednotebook-2012-04-02/Rednotebook1'
            2013-07-10 06:55:41,552 DEBUG Starting to load files in dir "/home/stosskraft/Dropbox/BackUp/RedNotebook-Backup-Rednotebook-2012-04-02/Rednotebook1"
            2013-07-10 06:55:41,554 DEBUG Finished loading files in dir "/home/stosskraft/Dropbox/BackUp/RedNotebook-Backup-Rednotebook-2012-04-02/Rednotebook1"
            2013-07-10 06:55:41,556 INFO Connected Signals: [1, 2, 3, 6, 15, 20]
            2013-07-10 06:55:41,557 DEBUG Start took 0.735382795334 seconds
            2013-07-10 06:55:41,557 DEBUG Trying to enter the gtk main loop
            2013-07-10 06:55:41,808 DEBUG Update the cloud
            2013-07-10 06:55:42,022 DEBUG Cloud updated
            ^C2013-07-10 06:56:03,776 INFO Program was abnormally aborted with signal 2
            2013-07-10 06:56:03,778 INFO None. Nothing to save
            2013-07-10 06:56:03,779 INFO Configuration has been saved to /home/stosskraft/.rednotebook/configuration.cfg
            2013-07-10 06:56:03,779 INFO Goodbye!
            stosskraft@stosskraft-HP-G42-Notebook-PC:~$

            Comment


              #7
              2013-07-10 06:55:39,067 DEBUG Debug message
              ...
              2013-07-10 06:55:39,068 INFO System encoding: ANSI_X3.4-1968
              2013-07-10 06:55:39,068 INFO Language code: None
              ...
              Your Rednotebook seems to start to the debug mode and it seems to think that the system encoding is ANSI_X3.4-1968.

              I would check the locale settings and the Rednotebook installation.

              Locales:

              What tells (konsole):
              Code:
              locale
              At here:
              oneline@saucy:~$ locale
              LANG=en_US.UTF-8
              LANGUAGE=en_US:en
              LC_CTYPE="en_US.UTF-8"
              LC_NUMERIC="en_US.UTF-8"
              LC_TIME="en_US.UTF-8"
              LC_COLLATE="en_US.UTF-8"
              LC_MONETARY="en_US.UTF-8"
              LC_MESSAGES="en_US.UTF-8"
              LC_PAPER="en_US.UTF-8"
              LC_NAME="en_US.UTF-8"
              LC_ADDRESS="en_US.UTF-8"
              LC_TELEPHONE="en_US.UTF-8"
              LC_MEASUREMENT="en_US.UTF-8"
              LC_IDENTIFICATION="en_US.UTF-8"
              LC_ALL=
              Rednotebook installation:

              Installing the rednotebook (1) and starting it from the konsole. Output at here:
              INFO Writing log to file "/home/oneline/.rednotebook/rednotebook.log"
              INFO MathJax location: http://cdn.mathjax.org/mathjax/latest/MathJax.js
              INFO Running in portable mode: False
              INFO First Start: False
              INFO RedNotebook version: 1.4.0
              INFO System info: machine: x86_64, platform: Linux-3.10.0-2-generic-x86_64-with-Ubuntu-13.10-saucy, processor: x86_64, python_version: 2.7.5+, release: 3.10.0-2-generic, system: Linux, GTK version: (2, 24, 20), PyGTK version: (2, 24, 0), Yaml version: 3.10
              INFO Cloud ignore list: [u'comma', u'filter', u'separated', u'these', u'words']
              INFO Cloud include list: [u'job', u'mtv', u'play', u'spam', u'work']
              INFO Using zeitgeist: False
              INFO Opening journal at u'/home/oneline/.rednotebook/data'
              INFO Connected Signals: 1 2 3 6 15 20
              INFO Goodbye!
              The Rednotebook settings are saved to the hidden /.rednotebook/ directory.



              If the locale settings are ok I would try to start with the clean Rednotebook settings. Clean settings - rename the rednotebook directory and then start the rednotebook.


              (1) Rednotebook install log:

              Log of sudo apt-get install rednotebook
              Wed Jul 10 04:15:03 2013

              Reading package lists...
              Building dependency tree...
              Reading state information...

              The following extra packages will be installed:
              libgail18 libglade2-0 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0
              libgtkspell0 libjavascriptcoregtk-1.0-0 libwebkitgtk-1.0-0
              libwebkitgtk-1.0-common python-cairo python-elib.intl python-glade2
              python-gtk2 python-gtkspell python-support python-webkit python-yaml
              Suggested packages:
              gstreamer-codec-install gnome-codec-install gstreamer1.0-tools
              gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
              gstreamer1.0-ffmpeg python-gtk2-doc
              The following NEW packages will be installed:
              libgail18 libglade2-0 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0
              libgtkspell0 libjavascriptcoregtk-1.0-0 libwebkitgtk-1.0-0
              libwebkitgtk-1.0-common python-cairo python-elib.intl python-glade2
              python-gtk2 python-gtkspell python-support python-webkit python-yaml
              rednotebook
              0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
              Need to get 13.6 MB of archives.
              After this operation, 48.4 MB of additional disk space will be used.
              Do you want to continue [Y/n]?
              Last edited by OneLine; Jul 09, 2013, 08:00 PM.
              Have you tried ?

              - How to Ask a Question on the Internet and Get It Answered
              - How To Ask Questions The Smart Way

              Comment


                #8
                Here is the output from local:
                LANG=en_US.UTF-8
                LANGUAGE=en_US:en
                LC_CTYPE="en_US.UTF-8"
                LC_NUMERIC=km_KH
                LC_TIME=km_KH
                LC_COLLATE="en_US.UTF-8"
                LC_MONETARY=km_KH
                LC_MESSAGES="en_US.UTF-8"
                LC_PAPER=km_KH
                LC_NAME=km_KH
                LC_ADDRESS=km_KH
                LC_TELEPHONE=km_KH
                LC_MEASUREMENT=km_KH
                LC_IDENTIFICATION=km_KH
                LC_ALL=


                It looks like it is Khmer? Cambodian?! How do I change it?

                Comment


                  #9
                  Khmer locales

                  It seems that you have somewhere an environment variable setting file with the Khmer locales.

                  Have you looked all the KDE locale settings through ?
                  KDE System Settings > Locale




                  Ubuntu community locale docs: https://help.ubuntu.com/community/Locale

                  Ubuntu community documents (https://help.ubuntu.com/community/EnvironmentVariables) list several places to the environment variables:

                  For an user:
                  ~/.pam_environment
                  ~/.profile
                  ~/.bash_profile or ~/.bash_login
                  ~/.bashrc

                  System wide:
                  /etc/default/locale
                  /etc/environment
                  /etc/profile
                  /etc/bash.bashrc

                  If you want to narrow the search - Is it an user or system wide problem ?
                  Make a new user and check the new user locales.
                  Does the new user have the Khmer locales ?


                  More to check:

                  Earlier: http://www.kubuntuforums.net/showthr...ng-used-in-KDE

                  Check your ~/.kde/env/setlocale.sh file.
                  Does it have the Khmer locales ?
                  Last edited by OneLine; Jul 10, 2013, 09:14 AM.
                  Have you tried ?

                  - How to Ask a Question on the Internet and Get It Answered
                  - How To Ask Questions The Smart Way

                  Comment


                    #10
                    I have checked the locals and everything is set to English, and the preferred language is american English. I am still getting the khmer menu only in rednotebook, is there a terminal command for a system wide reset?

                    Where is this stuff coming from?

                    Comment


                      #11
                      Is there a way to delete these language packs form my computer, I really want to use this program.

                      Comment


                        #12
                        You just need to change the system locales being used. See Locale
                        Using Kubuntu Linux since March 23, 2007
                        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                        Comment


                          #13
                          I am trying to do this:

                          Changing settings permanently

                          If you want more fine-grained control, you may manually change your system's locale entries by modifying the file /etc/default/locale.
                          For example on a German system, to prevent system messages from being translated, you may use:
                          LANG=de_DE.UTF-8
                          LC_MESSAGES=POSIX
                          but the terminal is telling me command not found. What would the terminal command be to change everything to US English?
                          Last edited by Snowhog; Jul 14, 2013, 06:22 PM.

                          Comment


                            #14
                            Press Alt+F2 and type: kdesudo kate /etc/default/locale
                            Press enter and type in your password. Kate will open with the file ready for editing. Just ensure that the contents are:

                            LANG="en_US.UTF-8"
                            LANGUAGE="en_US"

                            Save and close the file. You will have to log out and back in for the change to take effect.
                            Using Kubuntu Linux since March 23, 2007
                            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                            Comment


                              #15
                              This is what I am getting on the file;

                              LANG="en_US.UTF-8"
                              LC_NUMERIC="km_KH"
                              LC_TIME="km_KH"
                              LC_MONETARY="km_KH"
                              LC_PAPER="km_KH"
                              LC_NAME="km_KH"
                              LC_ADDRESS="km_KH"
                              LC_TELEPHONE="km_KH"
                              LC_MEASUREMENT="km_KH"
                              LC_IDENTIFICATION="km_KH"
                              LANGUAGE="en_US"

                              I am adding the last line right? Where is this KM coming from? I can assure you I did not put Khmer in my computer

                              Comment

                              Working...
                              X