[Git-commits] [grml/grml-live] 9f6f96: Refactor language configuration

Chris Hofstaedtler noreply at github.com
Fri Jun 20 01:26:30 CEST 2025


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-live
  Commit: 9f6f9683c39ee7e3d85078313e253bc90b06534e
      https://github.com/grml/grml-live/commit/9f6f9683c39ee7e3d85078313e253bc90b06534e
  Author: Chris Hofstaedtler <ch at grml.org>
  Date:   2025-06-20 (Fri, 20 Jun 2025)

  Changed paths:
    M config/files/GRMLBASE/usr/bin/grml-lang
    M config/files/GRMLBASE/usr/sbin/grml-setlang
    M config/files/GRMLBASE/usr/share/grml-autoconfig/autoconfig.functions
    M config/files/GRMLBASE/usr/share/grml-autoconfig/language-functions
    M config/files/GRMLBASE/usr/share/man/man8/grml-setlang.8

  Log Message:
  -----------
  Refactor language configuration

This refactoring significantly reduces complexity while maintaining the same
functionality and improving maintainability:

- Remove complex setvalue() functions and replace with direct file generation
- Modernize from legacy KEYTABLE/XKEYBOARD to modern XKB layout system
- Consolidate language-functions with consistent structure and clear comments
- Fix validation logic to properly check XKBLAYOUT for supported languages
- Remove obsolete charset/keytable variables and grml-small specific checks
- Simplify keyboard configuration with unified configure_keyboard() function

Changes reduce codebase by 351 lines while maintaining identical functionality
and improving error handling. The new approach is more straightforward and
less prone to bugs.

grml-small check was removed as it was inaccurate: locales are present, even
if the LC_MESSAGES data gets removed by grml-live.

Default once again to lang=en, as this reinstates English (Austria).

Commit-message drafted by Claude, code-changes by myself.


  Commit: 5bc216a3f7839a3e07827ffa1407e8ba49104ee8
      https://github.com/grml/grml-live/commit/5bc216a3f7839a3e07827ffa1407e8ba49104ee8
  Author: Chris Hofstaedtler <ch at grml.org>
  Date:   2025-06-20 (Fri, 20 Jun 2025)

  Changed paths:
    M config/files/GRMLBASE/usr/share/man/man8/grml-setlang.8

  Log Message:
  -----------
  grml-setlang: update man page


  Commit: 02e220e66f38208947a15d2cf13290913fade44c
      https://github.com/grml/grml-live/commit/02e220e66f38208947a15d2cf13290913fade44c
  Author: Chris Hofstaedtler <ch at grml.org>
  Date:   2025-06-20 (Fri, 20 Jun 2025)

  Changed paths:
    A config/files/GRMLBASE/usr/share/man/man1/grml-lang.1
    M config/scripts/GRMLBASE/01-autoconfig

  Log Message:
  -----------
  grml-lang: create man page


  Commit: cd79e3e485881e73ae10aae14906353c2d25dd79
      https://github.com/grml/grml-live/commit/cd79e3e485881e73ae10aae14906353c2d25dd79
  Author: Chris Hofstaedtler <ch at grml.org>
  Date:   2025-06-20 (Fri, 20 Jun 2025)

  Changed paths:
    M config/files/GRMLBASE/usr/share/zsh/vendor-completions/_grml-lang
    A config/files/GRMLBASE/usr/share/zsh/vendor-completions/_grml-setlang
    M config/scripts/GRMLBASE/01-autoconfig

  Log Message:
  -----------
  grml-lang, grml-setlang: update/install completion


  Commit: 62f0542e6e37d6a80781b420f7bae41a7031344d
      https://github.com/grml/grml-live/commit/62f0542e6e37d6a80781b420f7bae41a7031344d
  Author: Chris Hofstaedtler <zeha at users.noreply.github.com>
  Date:   2025-06-20 (Fri, 20 Jun 2025)

  Changed paths:
    M config/files/GRMLBASE/usr/bin/grml-lang
    M config/files/GRMLBASE/usr/sbin/grml-setlang
    M config/files/GRMLBASE/usr/share/grml-autoconfig/autoconfig.functions
    M config/files/GRMLBASE/usr/share/grml-autoconfig/language-functions
    A config/files/GRMLBASE/usr/share/man/man1/grml-lang.1
    M config/files/GRMLBASE/usr/share/man/man8/grml-setlang.8
    M config/files/GRMLBASE/usr/share/zsh/vendor-completions/_grml-lang
    A config/files/GRMLBASE/usr/share/zsh/vendor-completions/_grml-setlang
    M config/scripts/GRMLBASE/01-autoconfig

  Log Message:
  -----------
  Merge pull request #350 from grml/zeha/langkbd

Refactor language configuration


Compare: https://github.com/grml/grml-live/compare/b773ddd13955...62f0542e6e37

To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-live/settings/notifications


More information about the Git-commits mailing list