[PATCH] Use the new Fedora GeoIP API (#963531)

Chris Lumens clumens at redhat.com
Tue Jun 4 21:10:40 UTC 2013


> @@ -343,6 +375,10 @@ class LocationResult(object):
>      def __str__(self):
>          if self.territory_code:
>              result_string = "territory: %s" % self.territory_code
> +            if self.timezone:
> +                result_string += "\ntime zone: %s (from %s)" % (
> +                    self.timezone, self._timezone_source
> +                )
>              if self.public_ip_address:
>                  result_string += "\npublic IP address: "
>                  result_string += "%s" % self.public_ip_address

Does this string ever get translated before being displayed?  If so,
it's going to be awful difficult to translate in its current form.

- Chris


More information about the anaconda-patches mailing list