old_contents: import re
  
  from tower import ugettext_lazy as _
  
  from versions.compare import version_int as vint
  
  
  # These are the minimum versions required for `navigator.mozApps` support.
  APP_PLATFORMS = [
      # Firefox for Desktop.
      (
          [
              re.compile('Firefox/([\d.]+)')
          ],
          vint('16.0')
      ),
      # Firefox for Android.
      (
          [
              re.compile('Fennec/([\d.]+)'),
              re.compile('Android; Mobile; rv:([\d.]+)'),
              re.compile('Mobile; rv:([\d.]+)')
          ],
          vint('17.0')
      )
  ]
  
  
  def FREE_PLATFORMS():
      return (
          ('free-firefoxos', _('Firefox OS')),
          ('free-desktop', _('Firefox')),
          ('free-android-mobile', _('Firefox Mobile')),
          ('free-android-tablet', _('Firefox Tablet')),
      )
  
  
  def PAID_PLATFORMS(request=None):
      import waffle
      platforms = (
          ('paid-firefoxos', _('Firefox OS')),
      )
      if request and waffle.flag_is_active(request, 'android-payments'):
          platforms += (
              ('paid-android-mobile', _('Firefox Mobile')),
              ('paid-android-tablet', _('Firefox Tablet')),
          )
      return platforms
  
  
  # Extra information about those values for display in the page.
  DEVICE_LOOKUP = {
      'free-firefoxos': _('Fully open mobile ecosystem'),
      'free-desktop': _('Windows, Mac and Linux'),
      'free-android-mobile': _('Android smartphones'),
      'free-android-tablet': _('Android tablets'),
      'paid-firefoxos': _('Fully open mobile ecosystem'),
      'paid-android-mobile': _('Android smartphones'),
      'paid-android-tablet': _('Android tablets'),
  }
  
new_contents: import re
  
  from tower import ugettext_lazy as _
  
  from versions.compare import version_int as vint
  
  
  # These are the minimum versions required for `navigator.mozApps` support.
  APP_PLATFORMS = [
      # Firefox for Desktop.
      (
          [
              re.compile('Firefox/([\d.]+)')
          ],
          vint('16.0')
      ),
      # Firefox for Android.
      (
          [
              re.compile('Fennec/([\d.]+)'),
              re.compile('Android; Mobile; rv:([\d.]+)'),
              re.compile('Mobile; rv:([\d.]+)')
          ],
          vint('17.0')
      )
  ]
  
  
  def FREE_PLATFORMS():
      return (
          ('free-firefoxos', _('Firefox OS')),
          ('free-desktop', _('Firefox')),
          ('free-android-mobile', _('Firefox Mobile')),
          ('free-android-tablet', _('Firefox Tablet')),
      )
  
  
  def PAID_PLATFORMS(request=None):
      import waffle
      platforms = (
          ('paid-firefoxos', _('Firefox OS')),
      )
      if request and waffle.flag_is_active(request, 'android-payments'):
          platforms += (
              ('paid-android-mobile', _('Firefox Mobile')),
              ('paid-android-tablet', _('Firefox Tablet')),
          )
      return platforms
  
  
  # Extra information about those values for display in the page.
  DEVICE_LOOKUP = {
      'free-firefoxos': _('Fully open mobile ecosystem'),
      'free-desktop': _('Windows, Mac and Linux'),
      'free-android-mobile': _('Android smartphones'),
      'free-android-tablet': _('Tablets'),
      'paid-firefoxos': _('Fully open mobile ecosystem'),
      'paid-android-mobile': _('Android smartphones'),
      'paid-android-tablet': _('Tablets'),
  }
  
subject: rename "Android tablets" to "Tablets"