Adding sublocality_name_type and locality_name_type handling

Involves new strings for translations, plus the logic to return those strings.
Implemented in Java and C++.

Tested: unit-tests in C++. Unit-tests in Java don't exist for the main UI class, but I tested it built.
Post Town is actually like this in the Fava version, it's the one
exception. But I guess it's because "Post town" looks odd..? I deferred to
David who added the label.


Did you need help with i18n? *Help us help you:* go/i18n-emea-feedback

2014-10-03 13:27 GMT+02:00 Andy Staudacher <notifications@github.com>:

> In java/res/values/address_strings.xml:
>
> > @@ -41,10 +41,32 @@
> >      <!-- A city or town, such as New York City [CHAR LIMIT=30] -->
> >      <string name="i18n_locality_label">City</string>
> >
> > +    <!-- The name of a town through which postal deliveries are routed, present
> > +         in UK addresses.
> > +         See: http://en.wikipedia.org/wiki/Post_town [CHAR LIMIT=30] -->
> > +    <string name="i18n_post_town">Post Town</string>
>
> I guess you went with this capitalization for consistency (within the
> Android version) and your follow up changes will change capitalization
> everywhere to be consistent with the Fava version.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/googlei18n/libaddressinput/pull/23/files#r18390327>.
>