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

Chris Hofstaedtler noreply at github.com
Fri Jun 20 01:06:25 CEST 2025


  Branch: refs/heads/zeha/langkbd
  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


Compare: https://github.com/grml/grml-live/compare/da831d2e1452...02e220e66f38

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