As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
./script.sh webclient.properties-v11 webclient.properties-v111 webclient_fr_FR.properties-v11 webclient_fr_FR.properties-v111
grep ^${FIELD}= $TRANSLATED_FILE |uniq >> $DST_FILE
cat yourfile.properties |cut -d= -f1|sort |uniq -c|grep -v " 1 "
#!/bin/sh usage() { echo "Usage : $0 old_EN_Message_file New_EN_Message_file Old_translated_Message_file Output_file" exit 1 } if [ $# -lt 4 ]; then usage fi OLD_EN_FILE=$1 NEW_EN_FILE=$2 TRANSLATED_FILE=$3 DST_FILE=$4 # temp file, deleted at the end TMP_FILE=all_terms #Find all modified messages diff $OLD_EN_FILE $NEW_EN_FILE |awk '{print $2}' |cut -d= -f1 |sort -u|grep -v "^#"|grep -v "^\$" > $TMP_FILE put_message() { TMPSTR=`grep ^${1}= $2` if [ \! -z "$TMPSTR" ]; then echo "##$3#$TMPSTR" >> $DST_FILE fi } #Parse each line from the new EN message file cat $NEW_EN_FILE | while read line; do #If the line is not a message, put it in the new file if [ "X`echo $line |grep =`" = "X" ]; then echo "$line" >> $DST_FILE else FIELD=`echo $line|cut -d= -f1` #If the line contains a message which is unmodified since last version, put it in the new file if [ "X`grep ^${FIELD}\$ $TMP_FILE`" = "X" ]; then grep ^${FIELD}= $TRANSLATED_FILE |uniq >> $DST_FILE else #If the line contains a message modified since last version, then #Put the old translated message if not empty put_message $FIELD $TRANSLATED_FILE "oldTR" #Then Put the old EN message if not empty (to compare old and new EN message) put_message $FIELD $OLD_EN_FILE "oldEN" #Then put the new message put_message $FIELD $NEW_EN_FILE "newEN" fi fi done rm $TMP_FILE
title_export=Exporttitle_import=Import##oldTR#title_admin_store_browser=Administration du navigateur d'Espaces##oldEN#title_admin_store_browser=Admin Store Browser##newEN#title_admin_store_browser=Alfresco Store Browser##oldTR#title_admin_node_browser=Administration du navigateur d'\u00e9l\u00e9ments##oldEN#title_admin_node_browser=Admin Node Browser##newEN#title_admin_node_browser=Alfresco Node Browser##oldTR#title_admin_search_results=Administration des r\u00e9sultats de recherche##oldEN#title_admin_search_results=Admin Search Results##newEN#title_admin_search_results=Node Browser Search Results##newEN#title_forums=Forums##newEN#title_forum=Forum