Android strings.xml 资源 - 阿拉伯语和动态格式化字符串 [英] Android strings.xml resource - arabic language and dynamic formatted strings

查看:59
本文介绍了Android strings.xml 资源 - 阿拉伯语和动态格式化字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个关于阿拉伯语格式的问题,我应该如何正确设置这些字符串的格式,似乎我无法解决这个问题:

Hello I have a question about arabic formatting how should I properly format this strings, it seems i can't manage this:

تحميل %1$s…

تم تحميل الكلمات. %1$d/%2$d!

这是在 sublime text 2 - 但我认为有从左到右的顺序

This is in sublime text 2 - but i think that there is Left-to-Right order

在 Eclipse 中,这个从 Sublime Text 复制的内容有点混乱.我聘请了一些人将英语翻译成阿拉伯语strings.xml.他使用了 Word 编辑器,但是在处理 eclipse 时事情变得一团糟,我建议在 Sublime Text 中更改它,我认为它会像在 Eclipse 中一样正确支持它并且是更轻量级的编辑器.我看到在 Sublime Text 中似乎是从左到右的顺序,这也是错误的.* 当我用这个乱七八糟的特殊字符运行应用程序时,它似乎运行正常.但是我怀疑是否有一些打断词也没有被弄乱,例如:Item 5/10 已被下载.将 Item 已下载.5/10 或类似的东西.*需要一种首选方法来让某人用英语编写 strings.xml,将其翻译,然后复制到/values-ar 并正常工作吗?

EDITED: In Eclipse this copied from Sublime Text gets messed up a little. I hire some person to translate from english to arabic strings.xml. He used Word editor but things get messed up when coping to eclipse and I suggested to changed it in Sublime Text, that I think will support it correctly like in Eclipse and is lighter editor. I see that in Sublime Text seems to be in Left-To-Right order which is also wrong. * When I run app with this messed up special characters it seems to run correctly. Bu I have doubt whether some interpunction words hasn't also messed up and for example: Item 5/10 has been downloaded. will be Item has been downloaded. 5/10 or something like this.* Need a preferred way to get someone english written strings.xml, get this translated, and then copied into /values-ar and working correctly?

推荐答案

尝试在文本开头添加 RIGHT-TO-LEFT MARK 字符 (\u200F).

Try adding a RIGHT-TO-LEFT MARK character (\u200F) at the start of your text.

类似类型的回答这里

这篇关于Android strings.xml 资源 - 阿拉伯语和动态格式化字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆