Re: [qet] Dump of untranslated elements

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Le samedi 7 janvier 2012 09:48:17, scorpio@xxxxxxxxxxxxxxxx a écrit :
> Le samedi 7 janvier 2012 08:54:34, Pavel Fric a écrit :
> > Hi Xavier,
> > 
> > I have some problem with detection of untranslated elements:
> > 
> > [pavel@localhost elements]$ bash detect_non_translated_elements.sh cs
> > bash: detect_non_translated_elements.sh: Adresář nebo soubor neexistuje
> > [pavel@localhost elements]$
> > 
> > I used that command surely before, also have you any idea, or could you
> > send the copy of your terminal with the list of Czech untranslated
> > elements?
> > 
> > Thanks, Pavel Fric
> 
> Hi Pavel ,
> 
> change line in your script bash
> grep '<name lang="en"' $elmt > /dev/null 2>&1
> by
> grep '<name lang="cs"' $elmt > /dev/null 2>&1
> 
> put your script in element directory
> run
> ./detect_non_translated_elements2.sh > pavel_list.txt
> 
> Best regards
> laurent

script 

#!/bin/bash

# detecte les elements sans traduction anglaise
for elmt in $(find . -name "*.elmt" -o -name "qet_directory"); do
	grep '<name lang="cs"' $elmt > /dev/null 2>&1
	retour=$?
	if [ $retour -ne 0 ]; then
		echo $elmt
	fi
done



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/