# HG changeset patch # User Christopher Rogers # Date 1330114648 18000 # Node ID b960d4f9bc04745df4f6b7846854ceb791635e58 # Parent 0b69a546638afcc0354c1b8a6c597734660f6c1a libtazpanel: Add some functions in settings.cgi to libtazpanel. diff -r 0b69a546638a -r b960d4f9bc04 lib/libtazpanel --- a/lib/libtazpanel Fri Feb 24 15:15:23 2012 -0500 +++ b/lib/libtazpanel Fri Feb 24 15:17:28 2012 -0500 @@ -110,6 +110,31 @@ table_end } +# Get the list of panel styles +list_styles() { + for style in $PANEL/styles/* + do + style=$(basename $style) + echo "" + done +} + +# Get the list of system locales +list_locales() { + for locale in $(find /usr/share/i18n/locales -type f -name "[a-z][a-z]_[A-Z][A-Z]") + do + echo "" + done +} + +# Get the list of console keymaps +list_keymaps() { + for keymap in /usr/share/kmap/*.kmap + do + basename $keymap .kmap | sed "s|.*||" + done +} + # # xHTML 5 (header and footer skel are from the style) #