add more translations
This commit is contained in:
parent
b162ab7ebb
commit
2e1b150812
@ -17,28 +17,31 @@ fi
|
|||||||
mode=$1
|
mode=$1
|
||||||
dir=$2
|
dir=$2
|
||||||
translations=$3
|
translations=$3
|
||||||
strings=("Find" "_Search for: " "_Match case" "Match _entire word only" "Match as _regular expression" "Search _backwards" "_Wrap around")
|
gedit_strings=("_Search" "_Find..." "Find Ne_xt" "Find Pre_vious" "Find" "_Search for: " "_Match case" "Match _entire word only" "Match as _regular expression" "Search _backwards" "_Wrap around")
|
||||||
|
our_strings=("_Search" "_Find..." "Find Ne_xt" "Find Pre_vious" "Find" "_Search for:" "_Match case" "Match _entire word only" "Match as _regular expression" "Search _backwards" "_Wrap around")
|
||||||
|
|
||||||
if [ "$mode" = "--update" ]; then
|
if [ "$mode" = "--update" ]; then
|
||||||
if ! rpm -q gedit >/dev/null ; then
|
if ! rpm -q gedit >/dev/null ; then
|
||||||
echo "Please install gedit"
|
echo "Please install gedit"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
for i in `grep -v "^#" $dir/po/LINGUAS`; do
|
for l in `grep -v "^#" $dir/po/LINGUAS`; do
|
||||||
for s in "${strings[@]}"; do
|
for s in "${gedit_strings[@]}"; do
|
||||||
msgstr=`env LANGUAGE="$i.UTF-8" gettext --domain=gedit "$s"`
|
msgstr=`env LANGUAGE="$l.UTF-8" gettext --domain=gedit "$s"`
|
||||||
echo "$i:$s:$msgstr"
|
echo "$l@$s@$msgstr"
|
||||||
done
|
done
|
||||||
done >$translations
|
done >$translations
|
||||||
|
|
||||||
elif [ "$mode" = "--apply" ]; then
|
elif [ "$mode" = "--apply" ]; then
|
||||||
|
|
||||||
for i in `grep -v "^#" $dir/po/LINGUAS`; do
|
for l in `grep -v "^#" $dir/po/LINGUAS`; do
|
||||||
for s in "${strings[@]}"; do
|
for (( i = 0; i < ${#our_strings[@]}; i++ )) ; do
|
||||||
msgstr=`grep "^$i:$s:" $translations | cut -d: -f3`
|
s=${gedit_strings[$i]}
|
||||||
cat >>$dir/po/$i.po <<EOF
|
msgid=${our_strings[$i]}
|
||||||
|
msgstr=`grep "^$l@$s@" $translations | cut -d@ -f3`
|
||||||
|
cat >>$dir/po/$l.po <<EOF
|
||||||
|
|
||||||
msgid "$s"
|
msgid "$msgid"
|
||||||
msgstr "$msgstr"
|
msgstr "$msgstr"
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
|
1566
extra-translations
1566
extra-translations
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,7 @@
|
|||||||
Summary: Terminal emulator for GNOME
|
Summary: Terminal emulator for GNOME
|
||||||
Name: gnome-terminal
|
Name: gnome-terminal
|
||||||
Version: 2.31.2
|
Version: 2.31.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2+ and GFDL
|
License: GPLv2+ and GFDL
|
||||||
Group: User Interface/Desktops
|
Group: User Interface/Desktops
|
||||||
URL: http://www.gnome.org/
|
URL: http://www.gnome.org/
|
||||||
@ -120,6 +120,9 @@ rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
|
|||||||
%{_sysconfdir}/gconf/schemas/gnome-terminal.schemas
|
%{_sysconfdir}/gconf/schemas/gnome-terminal.schemas
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 4 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.2-2
|
||||||
|
- Add more translations for search UI
|
||||||
|
|
||||||
* Tue May 4 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.2-1
|
* Tue May 4 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.2-1
|
||||||
- Update to 2.31.2
|
- Update to 2.31.2
|
||||||
- Add translations for search UI
|
- Add translations for search UI
|
||||||
|
Loading…
Reference in New Issue
Block a user