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
#
9f5f2e
# Copyright (C) 2009-2011 Alain Reguera Delgado
7ac81d
# 
7cd8e9
# This program is free software; you can redistribute it and/or
7cd8e9
# modify it under the terms of the GNU General Public License as
7cd8e9
# published by the Free Software Foundation; either version 2 of the
7cd8e9
# License, or (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.
71bbcd
    sed -i -e "s!=THEME=!$(cli_getThemeName)!g" $INSTANCE
7ac81d
7ac81d
}