当前位置:  开发笔记 > Android > 正文

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

如何解决《如何翻译字符串数组中的项目?》经验,为你挑选了1个好方法。

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


    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.

    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.

    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

    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.

    
        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.
    

这些项目不会出现在"翻译编辑器"窗口中.那我怎么翻译呢?还有其他方法吗?



1> 小智..:

在res中创建不同的文件夹结构,如上面的值valuse-fr values-sv创建值文件夹,用于您要支持的语言.将strings.xml放在每个文件夹中,并使用该特定语言中的值.

现在,无论何时在xml中使用它们,都将它们作为@ string/string_name访问.从java访问它们时使用context.getString(R.string.string_name).

将工作 .希望能帮助到你.

推荐阅读
mobiledu2402852413
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有