我在一个西班牙网站上工作。我想将搜索栏中的文本从英语更新为西班牙语。
目前,搜索栏是英文的(参考下图):
我能够找到搜索表单cfm文件(它是在coldfusion中完成的):
<cfoutput>
<form name="searchForm" id="searchForm" class="#this.searchFormClass#" role="search">
<#variables.$.getHeaderTag('subHead1')#>
<label for="search">#variables.$.rbKey('search.search')#</label>
</#variables.$.getHeaderTag('subHead1')#>
<div class="#this.searchFormInputWrapperClass#">
<input type="text" name="Keywords" id="txtKeywords" class="#this.searchFormInputClass#" value="#HTMLEditFormat($.event('keywords'))#" placeholder="#variables.$.rbKey('search.search')#">
<span class="#this.searchFormSubmitWrapperClass#">
<button type="submit" class="#this.searchFormSubmitClass#">
#$.rbKey('search.search')#
</button>
</span>
</div>
<input type="hidden" name="display" value="search">
<input type="hidden" name="newSearch" value="true">
<input type="hidden" name="noCache" value="1">
</form>
</cfoutput>
但是,我不确定是否可以通过添加文本来更新上面的代码?或者,如果我需要找到变量“rbKey”所在的位置并操纵输出?
任何帮助,将不胜感激。