什么是属性中的strings.xml“1 $”的含义? [英] What's the meaning of attribute 'msgid' in strings.xml?

查看:151
本文介绍了什么是属性中的strings.xml“1 $”的含义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是属性的含义中的strings.xml1 $?

What's the meaning of attribute 'msgid' in strings.xml ?

如何获得它的价值呢?

推荐答案

属性MSGID是present在strings.xml中,如果您使用的是本地化字符串。例如,如果您有西班牙交替应用字符串的文件夹值-ES,values​​.xml将包含MSGID。

Attribute "msgid" is present in strings.xml if you are using string localization. For example, if you have alternate application strings for Spanish in the folder values-es, values.xml will contain "msgid".

当我看的strings.xml西班牙我看到一些长的值,例如

When I look at the strings.xml for Spanish I see some long values like

8340973892742019101

8340973892742019101

什么是有趣的是,strings.xml中为意大利和其他语言包含相同的MSGID为相同的字符串。

What is interesting is that strings.xml for Italian and other languages contains the same msgid for the same string.

这在我脑海的唯一的事情是,它有一些独特的资源ID,由应用程序内部生产。所以,我不认为这是有道理的搜索在其中更多的含义。它们在应用中是唯一的,这是唯一重要的

The only thing that comes to my mind is that it are some unique resource IDs, produced internally by the application. So, I do not think it makes sense to search for additional meaning in them. They are unique within the application, and that is only important.

这篇关于什么是属性中的strings.xml“1 $”的含义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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