简体   繁体   English

为什么Camera API仅使用英语? (“取消”,“自动”,“重新拍摄”,“使用”按钮;以及“移动和缩放”标签。)

[英]Why is the Camera API only in English? (The “Cancel”, “Auto”, “Retake”, “Use” buttons; and “Move and Scale” label.)

I'm using UIImagePickerController to pop up a camera that allows minor editing (moving and scaling) of the image afterwards. 我正在使用UIImagePickerController弹出相机,此后可以对图像进行较小的编辑(移动和缩放)。

My question is: How can I customize the “Cancel”, “Auto”, “Retake”, “Use” buttons—and “Move and Scale” label—to appear in another language? 我的问题是:如何自定义“取消”,“自动”,“重拍”,“使用”按钮以及“移动和缩放”标签,以另一种语言显示?

I tried changing the iPhone's language settings to another language, but the camera in my app remains in English. 我曾尝试将iPhone的语言设置更改为另一种语言,但我的应用程序中的相机仍为英语。 (But in any case, I don't really want users to have to change system languages; my app comes in one and only one language and it's not English—even if their iPhone system language is set to English.) (但是无论如何,我并不是真的希望用户不必更改系统语言;即使我的iPhone系统语言设置为英语,我的应用程序也只有一种语言,并且不是英语。)

Any ideas? 有任何想法吗?

Go to your project Settings > Info and change Localization native development region from English to your Language. 转到项目的设置>信息,然后将Localization native development region从英语更改为您的语言。 It will change the language of Apple Componants. 它将更改Apple Componants的语言。

you can localise camera cancel button, done button by adding this key in info.plist 您可以通过在info.plist中添加此键来本地化相机取消按钮,完成按钮

 <key>CFBundleDevelopmentRegion</key>
    <string>en,ru</string>    

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

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