#!/bin/bash
[ "$1" == "" ] && exec echo "Usage: $0 <LANGUAGE>"

LANG=$1
L_LANG="${LANG,,}"
U_LANG="${LANG^^}"

MD5_LOCALIZE=$(md5sum /tmp/localize_LOCALIZE_${L_LANG}_md5 | awk -F" " '{print $1}')
MD5_CLIENT=$(md5sum /tmp/localize_CLIENT_${L_LANG}_md5 | awk -F" " '{print $1}')

if [ "${MD5_LOCALIZE}" == "${MD5_CLIENT}" ]; then
	echo "No tranlation file ( ${U_LANG} ) need to sync to Client"
else
	rm -f ~/.localize_ctime_${L_LANG}; ~/bin/ff_localize/localize_${L_LANG}_ff
fi
