From a066aa1db4156826114d4950c56f4e3adaa1ca1d Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 27 Feb 2003 00:05:32 +0000 Subject: [PATCH 1/1] - translated cursorconfig to sh, simplified, added NLS (with pl locale) Changed files: XcursorTheme-cursorconfig -> 1.1 XcursorTheme-cursorconfig.pl.po -> 1.1 --- XcursorTheme-cursorconfig | 46 +++++++++++++++++++++++++++++++++ XcursorTheme-cursorconfig.pl.po | 25 ++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 XcursorTheme-cursorconfig create mode 100644 XcursorTheme-cursorconfig.pl.po diff --git a/XcursorTheme-cursorconfig b/XcursorTheme-cursorconfig new file mode 100644 index 0000000..d079956 --- /dev/null +++ b/XcursorTheme-cursorconfig @@ -0,0 +1,46 @@ +#!/bin/sh + +alias nls='gettext -d cursorconfig' + +themes=`ls -d /usr/share/icons/*/cursors | sed -e 's,/usr/share/icons/,,;s,/cursors,,'` + +if [ -z "$1" ]; then + echo "$(nls 'Welcome to the Xcursor theme configurator.')" + echo + echo "$(nls 'Available themes are:')" + echo ${themes} + echo + if [ -r ~/.Xresources ]; then + + if [ -n `grep Xcursor.theme ~/.Xresources|sed -e "s/Xcursor\.theme:\ //g"` ]; then + default=`grep Xcursor.theme ~/.Xresources|sed -e "s/Xcursor\.theme:\ //g"` + fi + + + elif [ -r ~/.Xdefaults ]; then + + if [ -n `grep Xcursor.theme ~/.Xdefaults|sed -e "s/Xcursor\.theme:\ //g"` ]; then + default=`grep Xcursor.theme ~/.Xdefaults|sed -e "s/Xcursor\.theme:\ //g"` + fi + fi + + echo "$(nls 'Currently active:') $default" + +else + + if [ -r ~/.Xresources ]; then + + grep -v Xcursor.theme ~/.Xresources >> ~/.Xresources.tmp1 + echo "Xcursor.theme: $1" >> ~/.Xresources.tmp1 + mv -f ~/.Xresources.tmp1 ~/.Xresources + + elif [ -r ~/.Xdefaults ]; then + + grep -v Xcursor.theme ~/.Xdefaults >> ~/.Xdefaults.tmp1 + echo "Xcursor.theme: $1" >> ~/.Xdefaults.tmp1 + mv -f ~/.Xdefaults.tmp1 ~/.Xdefaults + + fi + + echo "$(nls 'Switched to theme:') $1." +fi diff --git a/XcursorTheme-cursorconfig.pl.po b/XcursorTheme-cursorconfig.pl.po new file mode 100644 index 0000000..bfafc68 --- /dev/null +++ b/XcursorTheme-cursorconfig.pl.po @@ -0,0 +1,25 @@ +# Polish translations for XFree86-Xcursors-pack cursorconfig +# Jakub Bogusz , 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: cursorconfig\n" +"POT-Creation-Date: 2003-02-26 23:54+0100\n" +"PO-Revision-Date: 2003-02-26 23:55+0100\n" +"Last-Translator: Jakub Bogusz \n" +"Language-Team: Polish\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8-bit\n" + +msgid "Welcome to the Xcursor theme configurator." +msgstr "Witamy w konfiguratorze motywów Xcursor." + +msgid "Available themes are:" +msgstr "Dostêpne s± motywy:" + +msgid "Currently active:" +msgstr "Teraz ustawiony motyw to:" + +msgid "Switched to theme:" +msgstr "Motyw zmieniono na:" -- 2.43.0