Skip to content Skip to sidebar Skip to footer

What's The Meaning Of Attribute 'msgid' In Strings.xml?

What's the meaning of attribute 'msgid' in strings.xml ? How to get its value?

Solution 1:

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".

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

8340973892742019101

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

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.

Solution 2:

These are operating system's strings and come from the com.android.support:appcompat-v7 package. You can see them defined here

Post a Comment for "What's The Meaning Of Attribute 'msgid' In Strings.xml?"