rpms/control-center/devel apply-extra-translations, NONE, 1.1 extra-translations, NONE, 1.1 control-center.spec, 1.492, 1.493

Matthias Clasen mclasen at fedoraproject.org
Tue Sep 29 02:22:34 UTC 2009


Author: mclasen

Update of /cvs/pkgs/rpms/control-center/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31312

Modified Files:
	control-center.spec 
Added Files:
	apply-extra-translations extra-translations 
Log Message:
Steal translations



--- NEW FILE apply-extra-translations ---
#! /bin/bash

# This script is a hack to extract translations for "Make Default" from
# the gnome-power-manager translations and append them to the
# gnome-control-center translations.
#
# To apply translations, use:
# ./apply-extra-translations --apply gnome-control-center-2.28.0 extra-translations
#
# To update the translations, use:
# ./apply-extra-translations --update gnome-control-center-2.28.0 extra-translations

if [ $# -ne 3 ]; then
  echo "Usage: apply-extra-translations [--update|--apply] DIRECTORY FILE"
  exit 1
fi

mode=$1
dir=$2
translations=$3

if [ "$mode" = "--update" ]; then
  if ! rpm -q gnome-power-manager >/dev/null ; then
    echo "Please install gnome-power-manager"
    exit 1
  fi
  for i in `cat $dir/po/LINGUAS`; do
    msgstr=`env LANGUAGE="$i.UTF-8" gettext --domain=gnome-power-manager "Make Default"`
    echo "$i:$msgstr"
  done >$translations

elif [ "$mode" = "--apply" ]; then

  for i in `cat $dir/po/LINGUAS`; do
    msgstr=`grep "^$i:" $translations | cut -d: -f2`
    if [ "$msgstr" != "Make Default" ]; then
      cat >>$dir/po/$i.po <<EOF

msgid "Make Default"
msgstr "$msgstr"
EOF
    fi
  done

fi

exit


--- NEW FILE extra-translations ---
ar:اجعله المبدئي
as:ডিফল্ট
ast:Facer predeterminao
be:Прадвызначыць
be at latin:Прадвызначыць
bg:Да е стандартно
bn:ডিফল্ট হিসাবে চিহ্নিত করুন
bn_IN:ডিফল্ট হিসাবে চিহ্নিত করুন
ca:Marca com a predeterminat
ca at valencia:Marca com a predeterminat
cs:Nastavit jako výchozí
da:Gør til forvalg
de:Als Vorgabe verwenden
el:Να γίνει προεπιλεγμένο
es:Hacer predeterminado
et:Määra vaikimisi
eu:Lehenetsi
fi:Aseta oletukseksi
fr:Définir par défaut
ga:Socraigh mar Réamhshocrú
gl:Definir como predeterminado
gu:મૂળભૂત બનાવો
he:הפוך לברירת מחדל
hi:मूलभूत बनाएं
hu:Beállítás alapértelmezettként
it:Rendi predefinito
ja:デフォルト値にする
kn:ಪೂರ್ವನಿಯೋಜಿತವಾಗಿಸು
ko:기본값으로 하기
lt:Padaryti numatytąja
lv:Padarīt par noklusēto
mai:मूलभूत बनाबू
ml:സഹജമാക്കുക
mr:मुलभूत बनवा
nb:Sett til forvalg
nl:Als standaard instellen
or:ଡିଫଲଟ ତିଆରି କର
pa:ਡਿਫਾਲਟ ਬਣਾਓ
pl:Ustaw domyślnym
pt:Tornar Omissão
pt_BR:Tornar padrão
ro:Configurează ca implicit
ru:Установить по умолчанию
sl:Naredi privzeto
sr:Постави као подразумевано
sr at latin:Постави као подразумевано
sv:Gör till standard
ta:முன்னிருப்பு ஆக்கு
te:అప్రమేయ చేయి
th:ใช้เป็นค่าปริยาย
tr:Ö_ntanımlı Yap
uk:Зробити типовим
vi:Làm mặc định
zh_CN:设为默认
zh_HK:成為預設值
zh_TW:成為預設值


Index: control-center.spec
===================================================================
RCS file: /cvs/pkgs/rpms/control-center/devel/control-center.spec,v
retrieving revision 1.492
retrieving revision 1.493
diff -u -p -r1.492 -r1.493
--- control-center.spec	29 Sep 2009 00:10:54 -0000	1.492
+++ control-center.spec	29 Sep 2009 02:22:33 -0000	1.493
@@ -24,12 +24,14 @@
 Summary: Utilities to configure the GNOME desktop
 Name: control-center
 Version: 2.28.0
-Release: 10%{?dist}
+Release: 11%{?dist}
 Epoch: 1
 License: GPLv2+ and GFDL
 Group: User Interface/Desktops
 Source: http://download.gnome.org/sources/gnome-control-center/2.28/gnome-control-center-%{version}.tar.bz2
 Source1: org.gnome.control-center.defaultbackground.policy
+Source2: apply-extra-translations
+Source3: extra-translations
 
 Patch3: control-center-2.19.3-no-gnome-common.patch
 # http://bugzilla.gnome.org/536531
@@ -215,6 +217,9 @@ sed -i -e 's/@ENABLE_SK_TRUE at _s/_s/' hel
 # libtool doesn't make this easy, so we do it the hard way
 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/      func_append compile_command " -Wl,-O1,--as-needed"\n      func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
 
+# patch in translations for "Make Default", taken from gnome-power-manager
+%{SOURCE2} --apply . %{SOURCE3}
+
 make %{?_smp_mflags}
 
 %install
@@ -377,6 +382,9 @@ fi
 
 
 %changelog
+* Mon Sep 28 2009 Matthias Clasen <mclasen at redhat.com> 2.28.0-11
+- Steal translations for "Make Default" from gnome-power-manager
+
 * Mon Sep 28 2009 Matthias Clasen <mclasen at redhat.com> 2.28.0-10
 - Fix tooltips on the background tab
 




More information about the fedora-extras-commits mailing list