jump to navigation

Android compiler grousing January 9, 2010

Posted by globalizer in Android.
trackback

I realize that it is important to always have a string entry in the default Android resource file for strings that are actually used in the code, since that is what will be used if an app is run in a locale you have not provided localized resources for.

However, I really wish the Android compiler would not complain if it finds strings in localized files that do not exist in the default strings.xml file:

aapt: warning: string ‘pref_name’ has no default translation in com/packages/apps/MyApp/res; found: pt_BR

Since it is common for localization to lag behind updates to the base version, and since hopefully developers will clean out unused strings periodically, it is very common to have strings in the localized files that do not exist in the default version. That should not cause compiler errors or warnings!

It would be incredibly useful to get an error if a string that is actually referenced in the code does not exist in the default strings.xml file – but the current setting is just an annoyance.

OK, done with today’s grumpiness.

Advertisements

Comments»

1. Android Phones - January 25, 2010

Nice inspiring blog, dude. I enjoy your posting. I am about to create blog about mobile phones, too.

Thanks!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: