def eref_localities1(target, type, from, to, lang = "en")
      return l10n(eref_localities1_zh(target, type, from, to)) if lang == "zh"
      ret = ","
      loc = @locality[type] || type.sub(/^locality:/, "").capitalize
      ret += " #{loc}"
      ret += " #{from.text}" if from
      ret += "&ndash;#{to.text}" if to
      l10n(ret)
    end
def eref_localities1(target, type, from, to, lang = "en")
      return l10n(eref_localities1_zh(target, type, from, to)) if lang == "zh"
      ret = ","
      loc = @locality[type] || type.sub(/^locality:/, "").capitalize
      ret += " #{loc}"
      ret += " #{from.text}" if from
      ret += "&ndash;#{to.text}" if to
      l10n(ret)
    end
TODO: move to localization file