From 65876b7f028946a7003ca5db25816879333e3edf Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 16 Dec 2008 17:43:04 -0600 Subject: [PATCH] committing a set of translation/localization changes --- debian/changelog | 7 ++++--- debian/control | 2 +- debian/rules | 5 ++++- po4a/po/screen-profiles.pot | 37 +++++++++++++++++++++++++++++++++++++ po4a/po/screen-utils.pot | 17 +++++++++++++++++ po4a/po4a.conf | 2 ++ select-screen-profile | 11 +++++++---- 7 files changed, 72 insertions(+), 9 deletions(-) create mode 100644 po4a/po/screen-profiles.pot create mode 100644 po4a/po/screen-utils.pot create mode 100644 po4a/po4a.conf diff --git a/debian/changelog b/debian/changelog index 91b569a1..27e2e538 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,14 +1,15 @@ screen-profiles (1.0) UNRELEASED; urgency=low [ Dustin Kirkland ] - * Initial upload + * Initial upload (LP: #308789) - ubuntu, debian, redhat, fedora profiles - select-screen-profile utility - - add dependency on gettext-base (LP: #308509) + - add dependency on gettext-base (LP: #308509), add translation framework - define 10,000 lines of scrollback - ctrl-a c opens new window and prompts for name + - don't display ominous red 0! when no updates available (LP: #308215) [ Nicolas Barcet ] * Allow local modification of .screenrc (LP: #308216) * Add some nice defaults to ubuntu.screenrc - -- Dustin Kirkland Tue, 16 Dec 2008 15:31:47 -0600 + -- Dustin Kirkland Tue, 16 Dec 2008 17:42:52 -0600 diff --git a/debian/control b/debian/control index 6d9e8685..0afb2391 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: misc Priority: optional Maintainer: Dustin Kirkland Standards-Version: 3.8.0 -Build-Depends: debhelper (>= 6.0) +Build-Depends: debhelper (>= 6.0), gettext, po4a Homepage: http://launchpad.net/screen-profiles Vcs-Bzr: http://bazaar.launchpad.net/~kirkland/screen-profiles/main diff --git a/debian/rules b/debian/rules index 6403b90c..dd811395 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,9 @@ get-orig-source: [ -d ../../${PACKAGE} ] && mv ../../${PACKAGE} ../../${PACKAGE}-${VER} || true tar -C ../../ --exclude .bzr --exclude debian -zcvf ../../${PACKAGE}_${VER}.orig.tar.gz ${PACKAGE}-${VER} +prebuild: + cd po4a && po4a --no-backups po4a.conf + build: clean: @@ -45,6 +48,6 @@ binary-indep: build install dh_builddeb binary: binary-indep -.PHONY: build clean binary-indep binary install +.PHONY: build clean binary-indep binary install prebuild binary-arch: diff --git a/po4a/po/screen-profiles.pot b/po4a/po/screen-profiles.pot new file mode 100644 index 00000000..38e7b2c0 --- /dev/null +++ b/po4a/po/screen-profiles.pot @@ -0,0 +1,37 @@ +# screen-profiles translations +# Copyright (C) 2008 Canonical, Ltd. +# This file is distributed under the same license as the screen-profiles package. +# Dustin Kirkland , 2008. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: screen-profiles 1.0\n" +"Report-Msgid-Bugs-To: https://bugs.launchpad.net/screen-profiles\n" +"POT-Creation-Date: 2008-12-16 17:21-0600\n" +"PO-Revision-Date: 2008-12-16 17:22-6\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: select-screen-profile:12 +msgid "Error:" +msgstr "" + +#: select-screen-profile:12 +msgid " file exists, but is not a symlink" +msgstr "" + +#: select-screen-profile:19 +msgid "Select a screen profile: " +msgstr "" + +#: select-screen-profile:26 +msgid "recommended" +msgstr "" + +#: select-screen-profile:37 select-screen-profile:39 +msgid "Choose: " +msgstr "" diff --git a/po4a/po/screen-utils.pot b/po4a/po/screen-utils.pot new file mode 100644 index 00000000..61a4b627 --- /dev/null +++ b/po4a/po/screen-utils.pot @@ -0,0 +1,17 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2008-12-16 17:27-0600\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: ENCODING" + diff --git a/po4a/po4a.conf b/po4a/po4a.conf new file mode 100644 index 00000000..0e7d2a21 --- /dev/null +++ b/po4a/po4a.conf @@ -0,0 +1,2 @@ +# location of input files +[po4a_paths] po/screen-utils.pot diff --git a/select-screen-profile b/select-screen-profile index 4c89fea8..0daf28a5 100755 --- a/select-screen-profile +++ b/select-screen-profile @@ -1,19 +1,22 @@ #!/bin/sh -e +# To generate localization information, run: +# xgettext -o - -L Shell select-screen-profile + BASE_DIR="/usr/share/screen-profiles" PROFILE_DIR="$BASE_DIR/profiles" # Ensure that ~/.screenrc-profile is a symbolic link if [ -e "$HOME/.screenrc-profile" ]; then if [ ! -L "$HOME/.screenrc-profile" ]; then - echo `gettext 'Error:'` $HOME/.screenrc-profile `gettext 'exists, but is not a symlink'` + echo `gettext 'Error:'` $HOME/.screenrc-profile `gettext ' file exists, but is not a symlink'` exit 1 fi fi # Prompt the user to choose among the available profiles echo -echo "Select a screen profile: " +echo `gettext "Select a screen profile: "` i=0 profiles=$(ls $PROFILE_DIR) for x in $profiles; do @@ -31,9 +34,9 @@ while /bin/true; do if [ -z "$selected" -a ! -z "$simple" ]; then selected="$simple" elif ! test $selected -gt 0 2>/dev/null; then - read -p "`gettext 'Choose'` 1-$i [$simple]: " -r selected + read -p "`gettext 'Choose: '` 1-$i [$simple]: " -r selected elif ! test $selected -le $i 2>/dev/null; then - read -p "`gettext 'Choose'` 1-$i [$simple]: " -r selected + read -p "`gettext 'Choose: '` 1-$i [$simple]: " -r selected else break fi