committing a set of translation/localization changes

This commit is contained in:
Dustin Kirkland 2008-12-16 17:43:04 -06:00
commit 65876b7f02
7 changed files with 72 additions and 9 deletions

7
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Tue, 16 Dec 2008 15:31:47 -0600
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Dec 2008 17:42:52 -0600

2
debian/control vendored
View file

@ -3,7 +3,7 @@ Section: misc
Priority: optional
Maintainer: Dustin Kirkland <kirkland@ubuntu.com>
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

5
debian/rules vendored
View file

@ -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:

View file

@ -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 <kirkland@canonical.com>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

17
po4a/po/screen-utils.pot Normal file
View file

@ -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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING"

2
po4a/po4a.conf Normal file
View file

@ -0,0 +1,2 @@
# location of input files
[po4a_paths] po/screen-utils.pot

View file

@ -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