Language selections

Forum › Forums › antiX-development › antiX Respins › Language selections

  • This topic has 6 replies, 5 voices, and was last updated Dec 8-5:17 am by Xaver.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #191518
    melodie
    Member

      Hello,

      A discussion started here : http://www.antixforum.com/forums/topic/bento-openbox-recipe-available-on-github/page/3/#post-191296 which brought up an idea, around keeping all locales for a Live, then do something to bring the users, after install, to select one or several of their languages. The advantage is to be able to perform updates without having to wait until Chinese comes up to be finished with the generation of the locales.

      Maybe the locales generation at the end of a large update is done fast in a powerful computer, in oldies the wait is almost unbearable.

      So, two ideas come to my mind, in order to still have all languages available, but also to trigger a process for the first user created, after install, to bring them to choose just what they need.

      – My first idea (probably the easiest) would be to create two Bash scripts and a desktop file in /etc/xdg/autostart (and YAD, nicer looking than pure console)
      – My second idea (not sure it is feasable), would be to adapt the language-selector-gnome from Ubuntu, for antiX (it does not exist in Debian, never has, not sure why)
      it is easy to use and good looking, but it is probably heavy. https://pkgs.org/download/language-selector-gnome

      What do you think?
      If I work on a set of scripts and desktop files, based on Bash, would the antiX community be interested to test and adopt it?

      • This topic was modified 9 months, 3 weeks ago by melodie.
      #191520
      abc-nix
      Member

        sudo locale-antix
        Plus sign.
        Remove all.
        Select your language.
        Keep selected languages.

        Corruption has two hands: the Right and the Left. Don't let them squeeze you.

        #191522
        melodie
        Member

          sudo locale-antix
          Plus sign.
          Remove all.
          Select your language.
          Keep selected languages.

          Great, thank you!

          @ChPol, did you know about it? Also, I would not hope it automatically starts, the first time a user session is launched after installation? Does it?

          #191534
          anticapitalista
          Forum Admin

            Best to install locales-all

            Philosophers have interpreted the world in many ways; the point is to change it.

            antiX with runit - leaner and meaner.

            #191540
            ile
            Member

              hello melodie
              ” it automatically starts, the first time a user session is launched after installation? Does it?”
              I have seen it show up during the –oobe session of the –oem installation.
              That behavior may not always continue; installer changes can happen; running the –oobe command alone does not summon this remove locale window.
              It does not show up during normal install.

              #191548
              abc-nix
              Member

                Want to not have to recompile locales every locale update: anticapitalista’s solution. [simplest solution]

                Want to micromanage locales: locale-antix (sudo mode). [power-user solution]

                Want to only compile the language selected in the live system: add a hook/script to the live-init so that it compiles the selected language (+ en_US as a fallback) during boot. [developer solution]

                Corruption has two hands: the Right and the Left. Don't let them squeeze you.

                #191553
                Xaver
                Member

                  You can enforce your language selection by an ‘excludes’ file in /etc/dpkg/dpkg.cfg.d – example:

                  /etc/dpkg/dpkg.cfg.d/excludes

                  # Drop locales except English and German
                  path-exclude=/usr/share/locale/*
                  path-include=/usr/share/locale/en/*
                  path-include=/usr/share/locale/de/*
                  path-include=/usr/share/locale/locale.alias
                  #
                  # Drop translated manpages except English and German
                  path-exclude=/usr/share/man/*
                  path-include=/usr/share/man/man[1-9]/*
                  path-include=/usr/share/man/en*/*
                  path-include=/usr/share/man/de*/*

                  Maybe then delete the unwanted locales in /usr/share/locale.

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.