Blame Scripts/Bash/Functions/Render/render_doTranslationMarkers.sh

7ac81d
#!/bin/bash
7ac81d
#
7ac81d
# render_doTranslationMarkers.sh -- This function standardizes
7ac81d
# replacements for common translation markers.  This function must be
7ac81d
# called from render_getIdentityDefs.sh function (after instance
7ac81d
# creation and before final file creation).  Raplacements are applied
7ac81d
# to temporal instances used to produced the final file.
7ac81d
#
7ac81d
# Copyright (C) 2009-2010 Alain Reguera Delgado
7ac81d
# 
7ac81d
# This program is free software; you can redistribute it and/or modify
7ac81d
# it under the terms of the GNU General Public License as published by
7ac81d
# the Free Software Foundation; either version 2 of the License, or
7ac81d
# (at your option) any later version.
7ac81d
# 
7ac81d
# This program is distributed in the hope that it will be useful, but
7ac81d
# WITHOUT ANY WARRANTY; without even the implied warranty of
7ac81d
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7ac81d
# General Public License for more details.
7ac81d
#
7ac81d
# You should have received a copy of the GNU General Public License
7ac81d
# along with this program; if not, write to the Free Software
7ac81d
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
7ac81d
# USA.
7ac81d
# 
7ac81d
# ----------------------------------------------------------------------
7ac81d
# $Id$
7ac81d
# ----------------------------------------------------------------------
7ac81d
7ac81d
function render_doTranslationMarkers {
7ac81d
7ac81d
    # Replace theme translation marker with appropriate theme name.
7ac81d
    grep "=THEME=" $INSTANCE > /dev/null
7ac81d
    if [[ $? -eq 0 ]];then
7ac81d
        sed -i -e "s!=THEME=!$(cli_getThemeName)!g" $INSTANCE
7ac81d
    fi
7ac81d
7ac81d
}