Find a (translated) string?

Malcolm malcolm.parsons at gmail.com
Wed Oct 11 14:35:48 BST 2006


On 10/5/06, Matthias Urlichs <smurf at smurf.noris.de> wrote:

> The major problem is that "Databank" is just plain wrong. I would like
> to find the packages where this occurs so that I may correct this
> nonsense before somebody actually uses it in a "real" translation by
> mistake.

scrollkeeper:
msgid "Database"
msgstr "Databank"

> Ditto "Formula", which somebody seems to have translated as "Formular". :-(

atk10:
msgid "form"
msgstr "Formular"

gedit:
msgid "Form"
msgstr "Formular"
...

"Formula" isn't translated as "Formular" anywhere.


I use a script to find translated strings in langpacks:

#!/bin/bash
string="^_:"

if [ "$1" != "" ] ; then
    string=$1
fi

for i in /usr/share/locale-langpack/de*/LC_MESSAGES/*.mo
do
    if msgunfmt $i 2> /dev/null | msggrep --msgstr -e "$string"
2>/dev/null | grep "." ; then
        echo $i
        echo
    fi
done

-- 
Malcolm Parsons



More information about the rosetta-users mailing list