Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

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

How to get its value?

like image 497
Jason Avatar asked Jan 20 '11 03:01

Jason


1 Answers

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.

like image 62
Zelimir Avatar answered Oct 20 '22 14:10

Zelimir