简体   繁体   English

位智如何通过其定位来改变对象的位置?

[英]How does waze change objects location with their localization?

The first image is when the language is set to Hebrew, the second is in English. 第一个图像是将语言设置为希伯来语时,第二个图像是英语。 Look at the word " Thanks: " in the image. 查看图片中的“谢谢:”一词。 How Waze managed to change the location of the word to a Right To Left language? 位智如何设法将单词的位置更改为从右到左的语言? With regular localization 定期本地化

Thanks:x 谢谢:x

should have been 本来应该

תודות:X תודות:X

That's just one example. 那只是一个例子。 Waze does that a lot. 位智做了很多。

Waze supports iOS 4.3 and later so AutoLayout is out of the question. 位智支持iOS 4.3及更高版本,因此自动布局是不可能的。 With regular localization I know you can change the content of the word but location? 通过常规的本地化,我知道您可以更改单词的内容,但可以更改位置? that's a first. 这是第一。

Can I set an if iphone language is English then change the layout to..? 我可以设置的if iphone语言是英语then改变布局..? (if so that's a lot of ifs.." Thanks (如果这样的话,那么很多。。”谢谢

希伯来语英语

Frankly, I do not know if there is any standarized way of doing that. 坦白说,我不知道是否有任何标准化的方法。 But I see several options: 1. Using localized .xib files or even full storyboards. 但是我看到几个选择:1.使用本地化的.xib文件,甚至使用完整的故事板。 2. Changing that programmatically. 2.以编程方式进行更改。 Get the current localization and add some IFs to the view controller and re-arrange the items. 获取当前的本地化并将一些IF添加到视图控制器中,然后重新排列各项。 If this is in a custom UITableViewCell subclass then overwrite the layoutSubViews (or so) and change the layout accoring to the locale settings. 如果这在自定义UITableViewCell子类中,请覆盖layoutSubViews(或如此),并根据语言环境设置更改布局。 If you layout it within cellForRowAtIndexPath then apply the localization there. 如果将其布置在cellForRowAtIndexPath中,则在此处应用本地化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM