1
我在普通/消息的翻譯串/ EN-US /前端/ quicksignup爲:Yii2渲染翻譯字符串中的HTML標籤
return [
'AcceptTermsAndConditionLabel' => 'I confirm that I am more than 13 years old and accept the {terms and condition}, and {privacy policy} of this website',
];
我QuickSignupForm模型的樣子:
public function attributeLabels()
{
return [
'AcceptTermsAndCondition' => Yii::t('frontend/quicksignup','AcceptTermsAndConditionLabel'),
];
}
它呈現以下內容:
I confirm that I am more than 13 years old and accept the {terms and condition}, and {privacy policy} of this website
我想用鏈接替換{terms and condition}
和{privacy policy}
。但是,當我在我的可翻譯文件中嘗試這樣做時,例如common/messages/en-Us/frontend/quicksignup它會以字符串形式呈現。
下面是輸出的屏幕截圖。我如何呈現鏈接?有任何想法嗎?
工作就像魅力:)感謝你保存了我的一天! – Chinmay