2012-08-28 15:31:44 +02:00
|
|
|
--- ./scripts/find-lang.sh.orig 2012-06-01 13:28:40.000000000 +0000
|
|
|
|
+++ ./scripts/find-lang.sh 2012-06-01 13:30:43.000000000 +0000
|
|
|
|
@@ -111,6 +111,23 @@ fi
|
2011-01-14 14:07:20 +01:00
|
|
|
MO_NAME_NEW=$MO_NAME.tmp.$$
|
|
|
|
rm -f $MO_NAME_NEW
|
|
|
|
|
|
|
|
+# remove languages we do not yet support - but give out statistics
|
2012-08-28 15:31:44 +02:00
|
|
|
+find "$TOP_DIR/usr/share/locale/" -maxdepth 1 -type d | sed 's:'"$TOP_DIR"/usr/share/locale/'::; /^$/d' | while read dir; do
|
2011-01-14 14:07:20 +01:00
|
|
|
+ if ! rpm -ql filesystem | egrep -q "/usr/share/locale/$dir"$; then
|
|
|
|
+ find $TOP_DIR/usr/share/locale/$dir -name *.mo | sed 's:'"$TOP_DIR"'::' | while read file; do
|
2012-08-28 15:31:44 +02:00
|
|
|
+ echo -n "removing translation $file: "
|
|
|
|
+ msgunfmt "$TOP_DIR/$file" | msgfmt --statistics -o /dev/null -
|
2011-01-14 14:07:20 +01:00
|
|
|
+ done
|
|
|
|
+ rm -rf $TOP_DIR/usr/share/locale/$dir
|
|
|
|
+ fi
|
|
|
|
+done
|
2012-03-14 11:19:44 +01:00
|
|
|
+find $TOP_DIR/usr/share/help/ -maxdepth 1 -type d | sed 's:'"$TOP_DIR"/usr/share/help/'::; /^$/d' | while read dir; do
|
|
|
|
+ if ! rpm -ql filesystem | egrep -q "/usr/share/help/$dir"$; then
|
2012-03-27 08:55:31 +02:00
|
|
|
+ echo "removing help translation /usr/share/help/$dir"
|
2012-03-14 11:19:44 +01:00
|
|
|
+ rm -rf $TOP_DIR/usr/share/help/$dir
|
|
|
|
+ fi
|
|
|
|
+done
|
2011-01-14 14:07:20 +01:00
|
|
|
+
|
2012-08-28 15:31:44 +02:00
|
|
|
find "$TOP_DIR" -type f -o -type l|sed '
|
2011-01-14 14:07:20 +01:00
|
|
|
s:'"$TOP_DIR"'::
|
2011-09-16 14:38:52 +02:00
|
|
|
'"$ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
|