Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何翻译字符串数组中的项?_Android_Arrays_Xml_Translation - Fatal编程技术网

Android 如何翻译字符串数组中的项?

Android 如何翻译字符串数组中的项?,android,arrays,xml,translation,Android,Arrays,Xml,Translation,我有一些字符串数组和许多字符串项,无法使用翻译编辑器进行翻译 <string-array name="miocene_infos_list"> <item>The Miocene era was mostly characterized by arrival of a bizarre array of mammalian megafauna. Astrapotherium was a hooved ungulate that looked like

我有一些字符串数组和许多字符串项,无法使用翻译编辑器进行翻译

<string-array name="miocene_infos_list">
    <item>The Miocene era was mostly characterized by arrival of a bizarre array of mammalian megafauna. Astrapotherium was a
        hooved ungulate that looked like a cross between an elephant, a tapir and a rhinoceros. It was a distance relative
        of horse. It had short, prehensile trunk and powerful tusks. It\'s hind limbs were significantly weaker than the fore limbs.
        The nostrils of Astrapotherium were also set unusually high which shows that this prehistoric herbivore may have adapted
        partly amphibious lifestyle, like a modern hippopotamus. The Greek meaning for Astrapotherium was \' Lighting Beast \' which
        is inappropriate for such an animal that might have been a slow plant eater.</item>

    <item>Barbourofelis was the only member of its Sabre Tooth Cats breed to colonize late Miocene North America. This megafauna
        mammal possessed some of the largest canines of any saber toothed cat. This cat was heavily muscled and was big as the modern
        Lion. These cats might have walked in a Bear like fashion.</item>

    <item>The largest prehistoric dog that ever lived, Epicyon was a true \'Canid\' and belonged to the same speiceis as wolves,
        hyenas and modern dogs. Some of the largest species of Epicyon weighed more than a full grown human. I had unusually powerful
        jaws and teeth. Due to this reason, it\'s head looked more like that of a big cat than that of a dog or wolf. It may have
        hunted alone or in packs and also might have fed on dead carcasses. All of the species of Epicyon were discovered in
        western North America</item>

    <item>Brygmophyseter was an opportunistic predator, chomping down on penguins, sharks, seals and even other prehistoric whales.
        was pretty large in size. Brygmophyseter would also have lived in social groups called pods, and probably hunted in packs,
        like modern Orcas. Brygmophyseter was likely among the apex predators of its time. It teeth were 14 cm long. It may have
        also possessed Sonar capabilities to detect underwater preys. Its large head might have been used to ram opponents during
        fights.</item>

    <item>
        Megalodon was the largest prehistoric shark and also the largest marine predator in the history of planet. It outweighs ancient reptiles like
        Liopleurodon and Kronosaurus. It may have looked like an over sized Great White Shark. It fed on dolphins, squids, fish, and even giant turtles.
        Megalodon may even have attacked the giant whale Leviathan. Megalodon\'s biting power was very large and delivered 1.8 tons of force. This amount of
        force is enough to cursh the skull of a prehistoric whale as easy as a a grape. The teeth of this prehistoric shark were over half a foot long,
        serrated, and heart-shaped. No wonder why it is named Big Tooth. However there is no evidence on how this enormous creature was vanished off from
        the face of Earth. What a wonder it is.
    </item>
</string-array>

中新世的主要特征是出现了一系列奇异的哺乳动物巨型动物群。黄芪属
有蹄有蹄类动物,看起来像大象、貘和犀牛的杂交。这是一个相对的距离
一匹马。它有短而可缠绕的躯干和有力的獠牙。它的后肢明显弱于前肢。
黄芪的鼻孔也被设置得异常高,这表明这种史前食草动物可能已经适应了
部分两栖生活方式,如现代河马。Astrapotherium在希腊语中的意思是“发光的野兽”
对于这种可能是慢食植物的动物来说是不合适的。
Barbourofeis是中新世晚期北美殖民地的唯一剑齿猫品种。这是大型动物群
这种哺乳动物拥有一些剑齿猫中最大的犬齿。这只猫肌肉发达,和现代猫一样大
狮子。这些猫可能走起路来像熊一样。
Epicyon是有史以来最大的史前狗,是一只真正的“犬科动物”,与狼属于同一个种族,
鬣狗和现代狗。一些最大的Epicyon物种的体重超过了一个成年的人类。我有异乎寻常的力量
下巴和牙齿。由于这个原因,它的头看起来更像一只大猫,而不是狗或狼的头。可能有
单独或成群捕猎,也可能以死尸为食。所有的表面体物种都是在年发现的
北美洲西部
Brygmophyster是一个机会主义的捕食者,大嚼企鹅、鲨鱼、海豹甚至其他史前鲸鱼。
它的尺寸相当大。Brygmophyster也会生活在称为豆荚的社会群体中,可能会成群结队地狩猎,
就像现代的虎鲸。Brygmophyster很可能是当时的顶级捕食者之一。它的牙齿有14厘米长。可能有
还拥有探测水下猎物的声纳能力。它的大头可能被用来在比赛中猛击对手
打架。
Megalodon是史前最大的鲨鱼,也是地球历史上最大的海洋捕食者。它超过了古代的爬行动物,比如
狮子龙和克罗龙。它可能看起来像一条体型过大的大白鲨。它以海豚、乌贼、鱼甚至巨型海龟为食。
梅加洛顿甚至可能袭击了巨鲸利维坦。Megalodon的咬人能力非常强大,能提供1.8吨的力量。这个数量
力量足以轻易地诅咒史前鲸鱼的头骨。这条史前鲨鱼的牙齿有半英尺长,
锯齿状,心形。难怪它被命名为“大牙齿”。然而,没有证据表明这种巨大的生物是如何从地球上消失的
地球的表面。真是个奇迹。
这些项目不会出现在翻译编辑器窗口中。那我怎么翻译呢?还有别的办法吗

res/values/array.xml
res/values-fr/array.xml
res/values-ja/array.xml

根据

在res中创建不同的文件夹结构 喜欢 价值观 重视fr sv值 如上所述为要支持的语言创建值文件夹。 将strings.xml与该特定语言中的值放在每个文件夹中

现在,无论何时在xml中使用它们,都可以将它们作为@string/string\u name访问。 从java访问它们时,请使用context.getString(R.string.string\u name)


会有用的。希望有帮助。

您在不同的
文件夹中提供了不同的资源文件。这个答案意味着数组将在strings.xml文件的任何翻译版本中具有相同的名称。例如,在默认目录下的strings.xml中:english-french…这个答案意味着数组在strings.xml文件的任何翻译版本中都具有相同的名称。例如,在默认目录下的strings.xml中:english-french。。。。现在,在目录中的文件:es/strings.xml中,用于翻译为西班牙语,例如:inglés francés…如果您尚未创建包含字符串的西班牙语版本的strings.xml的西班牙语目录,则可以在翻译字符串术语时自动创建该目录,例如:“名称:”通过使用菜单进行翻译。为了保持数组及其翻译版本的一致性,请将它们全部复制到电子表格程序(如Excel),每个数组占用一列,并且每行都将与正确的翻译版本匹配。修改、添加或删除行时,更改将影响正确位置的所有阵列。干杯