MFMessageComposeViewController中的接口语言(Interface language in MFMessageComposeViewController)

我正在尝试使用MFMessageComposeViewController从我的iphone发送短信。 它显示了一个带填充字段的模态对话框。 一切正常,但我想用俄语显示对话。 我希望用俄语看到所有值(例如“新消息”,“发送”等)。

我检查了默认语言:

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSArray *languages = [defaults objectForKey:@"AppleLanguages"];
NSString *currentLanguage = [languages objectAtIndex:0];

NSLog(@"Current Locale: %@", [[NSLocale currentLocale] localeIdentifier]);
NSLog(@"Current language: %@", currentLanguage);

它返回,那语言是ru-RU。

如何为此对话框设置lang?


I'm trying to send sms from my iphone using MFMessageComposeViewController. It shows a modal dialog with filled fields. everything work, but I want to show dialog in Russian Language. I want to see all values (such as "New message", "send", etc) in Russian.

I'v checked default language:

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSArray *languages = [defaults objectForKey:@"AppleLanguages"];
NSString *currentLanguage = [languages objectAtIndex:0];

NSLog(@"Current Locale: %@", [[NSLocale currentLocale] localeIdentifier]);
NSLog(@"Current language: %@", currentLanguage);

And it returns, that language is ru-RU.

How can I set a lang for this dialog?


原文:https://stackoverflow.com/questions/6094089
2023-01-20 17:01

满意答案

您的select语句有额外的; 在里面。 所以你的mysql_num_rows是0,它没有登录你。


Your select statement has an extra ; in it. So your mysql_num_rows is 0, which is not logging you in.

相关问答

更多

获取会话变量值(Get session variable value)

{{request.session.variable}} RequestContext将使您可以访问模板中的请求对象。 您必须将其添加到settings.py中: TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.request', ... ) 并且将RequestContext连接到模板,您可以在视图函数中使用这个习惯用法: from django.template import RequestCon...

检测Citrix XenDesktop会话(Detecting a Citrix XenDesktop Session)

如果您使用XenDesktop进行VDI,那么就应用程序而言,应用程序正在本地执行。 VDI或虚拟桌面基础架构包括将GUI从全功能桌面操作系统提供给远程设备。 通常,桌面O / S在数据中心中的管理程序上的虚拟机中执行,并且使用Citrix的ICA堆栈将GUI发送到远程设备。 例如,这发生在池桌面方案中。 XenApp提供虚拟桌面,这是一个略有不同的概念。 同样,桌面使用ICA堆栈传送到远程设备。 但是,桌面不再在专用O / S上运行。 相反,它是单个Windows Server上的许多用户会话之...

会话变量不显示(Session variable not displaying)

您需要在新文件的开头再次调用session_start(),如下所示: <?php session_start(); echo "My Name is " . $_SESSION['uName']; You need to call session_start() again at beginning of the new file, like so: <?php session_start(); echo "My Name is " . $_SESSION['uName'];

PHP会话变量(php session variable)

你的PHP脚本的开头是否有以下行? <?php session_start(); ... 看看你的Location类,listItems函数看起来非常糟糕,你试图做什么? 根据您的评论对Location类进行快速重构: class Location { private $locations; public static function instance($args = null) { return empty($_SESSION['locations'...

从会话PHP中获取价值(Getting value from session PHP)

fgmembersite是一个对象并拥有名为UserName的函数吗? 如果是,你只是错过了一个echo <?PHP echo $fgmembersite->UserName(); ?> Is fgmembersite an object and have it the function called UserName ? If yes, you simply miss an echo <?PHP echo $fgmembersite->UserName(); ?>

检测python变量值的变化(Detecting change in the value of python variables)

使用属性。 只有可变值可以更改为开头。 class Something(object): @property def some_value(self): return self._actual @some_value.setter def some_value(self, value): print "some_value changed to", value self._actual = value Use pro...

PHP没有正确检测会话变量值(PHP not detecting session variable value properly)

您的select语句有额外的; 在里面。 所以你的mysql_num_rows是0,它没有登录你。 Your select statement has an extra ; in it. So your mysql_num_rows is 0, which is not logging you in.

会话变量无法正常工作,我该如何改进(Session variable is not working properly how can i improve)

清除饼干,它必须工作一切都是正确的。 <div class="col-md-12"> <?php if(isset($_SESSION['profile_updated'])){ ?> <div class="confirmationmsgssg">Profile Updated successfully.</div> <?php unset($_SESSION['profile_updated']); } ?> <h3>Your personal info</h3> </div> Clear ...

检测PHP中是否正确设置了会话cookie(Detect if session cookie set properly in PHP)

你可以试试isset($_COOKIE[session_name()]); You could try isset($_COOKIE[session_name()]);

如何正确删除PHP会话?(How to properly delete a PHP session?)

如果你正在破坏会话,那么就不需要session_write_close(),就像在手册中它执行以下操作一样: 会话数据通常在脚本终止后存储而不需要调用session_write_close(),但是由于会话数据被锁定以防止并发写入,因此任何时候只有一个脚本可以在会话上运行。 If you are destroying the session then there isn't really a need to session_write_close(), as in the manual it do...

相关文章

更多

常用HQL(Hibernate Query Language)查询

查询一个对象(实体类必须有一个不带参数的构造方法),使用select查询,基于投影的查询,通过在列表中 ...

利用XUL(XML User-interface Language)是否能提高图形界面的开发效率?

本人使用Swing开发图形界面,最近了解到XUL技术,知道可以通过编辑XML文档来定义各种Swing组 ...

《C++程序设计语言 特别版 十周年纪念版》(The C++ Programming Language Special Edition)扫描版[PDF]

中文名: C++程序设计语言 特别版 十周年纪念版 原名: The C++ Programmin ...

必须会的十种语言

10 Programming Languages You Should Learn Right Now ...

JAVA设计模式学习1——统一建模语言UML

今天开始重温设计模式,我想把自己学习的过程分享给大家,同时希望大家多多留言来讨论,相互学习相互进步。 ...

.NET 微信开放平台接口

&lt;%@ WebHandler Language=&quot;C#&quot; Class=&qu ...

.NET 微信开放平台接口

&lt;%@ WebHandler Language=&quot;C#&quot; Class=&qu ...

.NET 微信开放平台接口

&lt;%@ WebHandler Language= &quot;C#&quot; Clas ...

Storm 多语言支持

Using non JVM languages with Storm https://github.c ...

实例讲解Hadoop中的hive查询(Python语言实现)

条件,假设配置好了 Hadoop和hive,并可以正常运行 首先,要外部查询 ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本