Stanislav Brabec changed bug 1158957
What Removed Added
CC   sbrabec@suse.com

Comment # 2 on bug 1158957 from
Created attachment 825916 [details]
MIME types not covered by shared-mime-info

Here is a pot file that contains MIME types not covered by shared-mime-info.

Note that it does not mean that string are not covered by shared-mime-info (and
indeed some of them are covered, just the MIME type has a different name).

There can still be an upstream source for these that could be as complete as
SUSE in-house translation.

It was generated by:
msgfilter -i mimeinfo.pot -o mimei.pot ./filter.sh 
msgattrib --untranslated mimei.pot -o mimeinfo-rest.pot

---- filter.sh ----
#!/bin/bash
MIMEL="${MSGFILTER_LOCATION##*:}"
let MIMEL-=3
if test $MIMEL -gt 3 ; then
    MIME="$(sed -n "${MIMEL}p" mimeinfo.pot)"
    MIME="${MIME#\#: }"
    MIME="${MIME%:*}"
    if test "$MIME" = "${MIME#/usr/share/mime}" ; then
        echo >&2 "line off"
        let MIMEL--
        MIME="$(sed -n "${MIMEL}p" mimeinfo.pot)"
        MIME="${MIME#\#: }"
        MIME="${MIME%:*}"
    fi
    if test "$MIME" = "${MIME#/usr/share/mime}" ; then
        echo >&2 "second line off"
        let MIMEL--
        MIME="$(sed -n "${MIMEL}p" mimeinfo.pot)"
        MIME="${MIME#\#: }"
        MIME="${MIME%:*}"
    fi
    echo >&2 "$MIME"
    if test "$(rpm -qf --queryformat %{name} "$MIME")" = shared-mime-info ;
then
        cat >/dev/null
        echo -n "DROP"
    else
        cat
    fi
else
    cat
fi
-------------------


You are receiving this mail because: