tools/check_engine_locale_files.sh
changeset 13967 a04c86dc685f
parent 13965 fa9b22311390
child 14221 6b7997406121
equal deleted inserted replaced
13966:c409af570f87 13967:a04c86dc685f
    86 	# Start the tests
    86 	# Start the tests
    87 	echo "== $CHECKED_LANG_FILE ==";
    87 	echo "== $CHECKED_LANG_FILE ==";
    88 	MISSING_STRINGS=0;
    88 	MISSING_STRINGS=0;
    89 	HAS_PROBLEMS=0;
    89 	HAS_PROBLEMS=0;
    90 
    90 
    91 	# Find duplicate placeholders
       
    92 	for i in 0 1 2 3 4 5 6 7 8 9
       
    93 	do
       
    94 		grep -G "%$i.*%$i" $CHECKED_LANG_FILE > $TEMP_CHECK;
       
    95 		if [ -s $TEMP_CHECK ]
       
    96 		then
       
    97 			echo "ERROR! Duplicate placeholders found:";
       
    98 			cat $TEMP_CHECK;
       
    99 			HAS_PROBLEMS=1;
       
   100 		fi
       
   101 	done;
       
   102 
       
   103 	if [ $CHECKED_LANG_FILE != en.txt ]
    91 	if [ $CHECKED_LANG_FILE != en.txt ]
   104 	then
    92 	then
   105 		grep -o "^[0-9][0-9]:[0-9][0-9]=" $CHECKED_LANG_FILE | cut -c1-5 | sort | uniq > $TEMP_SYMBOLS;
    93 		grep -o "^[0-9][0-9]:[0-9][0-9]=" $CHECKED_LANG_FILE | cut -c1-5 | sort | uniq > $TEMP_SYMBOLS;
   106 
    94 
   107 		# Find strings with missing placeholders
    95 		# Find strings with missing placeholders