简体   繁体   English

按下按钮时更改语言Xcode

[英]Change language when button pressed Xcode

I want to make my app multi-language. 我想使我的应用程序为多语言。 I know how to do this. 我知道该怎么做。 But the problem is that, the user should first change the phones languages before the translation will work. 但是问题在于,用户应先更改电话语言,然后翻译才能正常工作。

What I want to do is the following: I have 3 buttons. 我要执行的操作如下:我有3个按钮。 Dutch,English,French. 荷兰文,英文,法文。 When a user presses a button. 用户按下按钮时。 The language of the app is changed to the appropriate language. 应用程序的语言已更改为适当的语言。 But the phone's language keeps the same. 但是电话的语言保持不变。

Hope anyone can help me! 希望任何人都能帮助我!

Kind regards 亲切的问候

But the different translations into different files. 但是不同的翻译成不同的文件。 Load the needed file according to the button the user touched. 根据用户触摸的按钮加载所需的文件。

If this does not answer your question, please be more specific what exactly you problem is. 如果这不能回答您的问题,请更确切地说明问题所在。

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

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