我的网站使用谷歌翻译器时出现问题,问题是当我选择英语以外的其他语言时,我的国家/地区下拉列表中的所有记录都无法翻译吗?
以下250个国家/地区名称中的代码仅在顶部翻译了20个,在botton翻译了10-15个,但是在此之间没有任何翻译
<div>
<b>Sun Apr 1, 2020</b><br />
<b style="padding-left:20px">04:04 PM</b> <img src="https://img.icons8.com/emoji/48/000000/black-circle-emoji.png" style="height:20px;width:20px;" /> <a id="test1">Plot#1, Block H, Rd No. 11</a>
<br />
<b style="padding-left:20px">05:04 PM</b> <img src="https://img.icons8.com/material-outlined/24/000000/rectangle.png" style="height: 20px; width: 20px;" /> <a id="test1">Plot#2, Block H, Rd No. 15</a> <br /> <br />
<b>Sat Mar 30, 2020</b><br />
<b style="padding-left: 20px">08:04 PM</b> <img src="https://img.icons8.com/emoji/48/000000/black-circle-emoji.png" style="height:20px;width:20px;" /> <a id="test1">Plot#3, Block H, Rd No. 20</a> <br />
<b style="padding-left:20px">10:04 PM</b> <img src="https://img.icons8.com/emoji/48/000000/black-circle-emoji.png" style="height:20px;width:20px;" /> <a id="test1">Plot#4, Block H, Rd No. 30</a> <br />
<b style="padding-left:20px">05:04 PM</b> <img src="https://img.icons8.com/material-outlined/24/000000/rectangle.png" style="height: 20px; width: 20px;" /> <a id="test1">Plot#5, Block H, Rd No. 40</a>
</div>
但是,如果我使用size属性并将下拉列表变大,那么我尝试使选择字段size =“ 4”,那么一切都将得到翻译。
这个奇怪的问题是什么,如何使它有任何想法?
以这种方式工作,但我不希望将下拉列表的大小增大。
<div class="row form-group">
<div class="col-md-12">
<label class="sr-only" for="country">Your nationality? </label>
<select name="country" class="form-control">
<option value="" selected="selected" disabled="disabled">Your nationality? </option>
<?php
$stmt = $db->prepare('select * from country order by countryname asc');
$stmt->execute();
$row = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach($row as $rows){
?>
<option value="<?php echo $rows['countryname']; ?>" <?php if($country == ''.$rows['countryname'].'') echo 'selected="selected"'; ?>><?php echo $rows['countryname']; ?></option>
<?php
}
?>
</select>
</div>
</div>
谢谢