Html 如何使用XML更改多语言网站中的链接

Html 如何使用XML更改多语言网站中的链接,html,xml,portal,Html,Xml,Portal,我使用门户多语言,并通过xml控制出现的语言 但是我不知道如何用Xml管理链接 当我的语言是英语时,我有两个链接“en”和“fr”链接“en”,当我的语言是法语时,我有两个链接“en” <div class="row mx-0"> <div class=" col-2"> <img src=".

我使用门户多语言,并通过xml控制出现的语言 但是我不知道如何用Xml管理链接 当我的语言是英语时,我有两个链接“en”和“fr”链接“en”,当我的语言是法语时,我有两个链接“en”

           <div class="row mx-0">
                      <div class=" col-2">
                             <img src="./resources/_images/restaurant-fork-knife.png" class="logo-link" alt="">
                      </div>
                      <div class="col-lg-4 col-md-6 col-8 herf-restooo"> 
                             <a id="herf-resto" href="#"><h4 id="footer-restaurant">Restaurants</h4></a> 
                      </div>
                      <div class="col-2">
                               <a href="#"><img src="./resources/_images/arrow-link.png" class="arrow-link" alt=""></a>
                        </div>
              <hr class="line_link">
           </div>


XML文件

    <text>
<msgid>herf-restooo</msgid>
<fr>
<footer-restaurant>restaurant</footer-restaurant>
<herf-resto>https://www.........fr/fr/passengers/airport-shopping</herf-resto>
</fr>
<en>
<footer-restaurant>restaurants</footer-restaurant>
<herf-resto>https://w....fr/en/passengers/airport-shopping</herf-resto>
</en>
</text>

herf restooo
餐厅
https://www.........fr/fr/passengers/airport-shopping
餐厅
https://w....fr/en/passengers/airport-shopping