Exemple from own experience:
Translation contained a mistyped word: entsprevhende
which should be. entsprechende
It is anywhere in one of the many petget__ mo files.
Using momanager only to search for the location of this mistyped word
But the following code (2 lines) has detected the affected file petget___downloadpkgs.sh.mo
# cd /usr/share/locale/${LANG%_*}/LC_MESSAGES
# for f in `ls petget*`; do echo $f;msgunfmt $f | grep entsprevh ;done
----
edited 2913-03-07:
I have scripted something usefu:
example "find Barry Kauler":my /root/my-applications/find_in_mo wrote:#!/bin/sh
#20130307 L18L find text in .mo files
#
. gettext.sh # need this for eval_gettext amd eval_ngettext
export TEXTDOMAIN=find_in_mo # for momanager
TEXTDOMAINDIR=/usr/share/locale
myLANG=${LANG%_*}
read -p "$(eval_gettext 'pattern to search for in all $TEXTDOMAINDIR/${myLANG}/LC_MESSAGES/*mo files? ')" p
echo
cd $TEXTDOMAINDIR/$myLANG
num_files=0
for f in `ls LC_MESSAGES/*.mo`
do
msgunfmt $f > dummy
if [ "`grep "$p" dummy`" ]
then
num_files=$(( $num_files + 1 ))
echo "${f#*/}";grep -n "$p" dummy;echo
fi
done
eval_ngettext 'Search pattern "$p" was found in $num_files file.' \
'Search pattern "$p" was found in $num_files files.' num_files
echo
cd - >/dev/null
# end
# ./find_in_mo
Textmuster, nach dem in allen Dateinen /usr/share/locale/de/LC_MESSAGES/*mo gesucht werden soll? Barry Kauler
bcrypt_gui_help.mo
47:"Bcrypt_gui based on Pcrypt, by Barry Kauler, April 2009.\n"
83:"Bcrypt_gui basiert auf Pcrypt, von Barry Kauler, April 2009.\n"
connectwizard_2nd.mo
80:"The Network Wizard was originally developed by Barry Kauler, with "
msgunfmt: file "LC_MESSAGES/jwm.mo" is truncated
read-mo.c:240: internationalized messages should not contain the `\v' escape sequence
read-mo.c:240: internationalized messages should not contain the `\v' escape sequence
msgunfmt: file "LC_MESSAGES/net-setup.mo" is not in GNU .mo format
msgunfmt: file "LC_MESSAGES/pcdripper.mo" is not in GNU .mo format
pupdial_init_hotpluggable.mo
484:"Welcome to PupDial, written by Barry Kauler, with\n"
490:"Willkommen bei PupDial, geschrieben von Barry Kauler, mit\n"
497:"Welcome to PupDial, written by Barry Kauler, with\n"
508:"Willkommen bei PupDial, geschrieben von Barry Kauler, mit\n"
pupdial.mo
222:"Welcome to PupDial, written by Barry Kauler, with\n"
228:"Willkommen bei PupDial, geschrieben von Barry Kauler, mit\n"
235:"Welcome to PupDial, written by Barry Kauler, with\n"
246:"Willkommen bei PupDial, geschrieben von Barry Kauler, mit\n"
remasterpup2x.mo
25:"(If this program has missed something important, let me know -- Barry Kauler)"
28:"Barry Kauler)"
39:"should be burnt into /root on the CD, please let me know -- Barry Kauler)"
42:"CD gebrannt werden sollte, will ich das wissen -- Barry Kauler)"
xdelta_gui.mo
98:"Tridgell and Paul Mackerras. The GUI is written by Barry Kauler. Licence is "
118:"Mackerras. Dieses Grafische Benutzerprogramm ist von Barry Kauler "
Textmuster "Barry Kauler" wurde in 6 Dateien gefunden
#
end of edited 2013-03-07
--------------------------------------------------
petget___check_deps.sh.mo
petget___configure.sh.mo
petget___dependencies.sh.mo
petget___downloadpkgs.sh.mo
"...schau in die entsprevhende Kategorie im Menü (unten-links am Bildschirm) "
petget___fetchinfo.sh.mo
petget___filterpkgs.sh.mo
petget___findnames.sh.mo
petget___installpkg.sh.mo
petget___installpreview.sh.mo
petget___petget.mo
petget___pkg_chooser.sh.mo
petget___removepreview.sh.mo
petget___ui_Classic.mo
petget___ui_Ziggy.mo
petget___versiondiffs.mo
#
Hope this helps other translators