diff --git a/i2p2www/legacy.py b/i2p2www/legacy.py index d8d18c24..cbd778b5 100644 --- a/i2p2www/legacy.py +++ b/i2p2www/legacy.py @@ -41,6 +41,7 @@ LEGACY_PAGES_MAP={ 'donate': 'get-involved/donate', 'faq': 'support/faq', 'getinvolved': 'get-involved', + 'geoip': 'docs/spec/geoip', 'glossary': 'support/glossary', 'halloffame': 'about/hall-of-fame', 'how': 'docs', diff --git a/i2p2www/pages/site/docs/index.html b/i2p2www/pages/site/docs/index.html index 3cc69411..3a95ba2f 100644 --- a/i2p2www/pages/site/docs/index.html +++ b/i2p2www/pages/site/docs/index.html @@ -184,7 +184,7 @@ Traditionally used only by Java applications and higher-level APIs.
  • {{ _('Configuration File Format') }}
  • -GeoIP File Format
  • +GeoIP File Format

    {% trans %}Developer's Guides and Resources{% endtrans %}

    diff --git a/www.i2p2/pages/geoip.html b/i2p2www/pages/site/docs/spec/geoip.html similarity index 76% rename from www.i2p2/pages/geoip.html rename to i2p2www/pages/site/docs/spec/geoip.html index b3cd1cb3..4a233942 100644 --- a/www.i2p2/pages/geoip.html +++ b/i2p2www/pages/site/docs/spec/geoip.html @@ -1,20 +1,21 @@ -{% extends "_layout.html" %} -{% block title %}GeoIP File Specification{% endblock %} +{% extends "global/layout.html" %} +{% block title %}{% trans %}GeoIP File Specification{% endtrans %}{% endblock %} +{% block lastupdated %}{% trans %}May 2013{% endtrans %}{% endblock %} +{% block accuratefor %}0.9.6{% endblock %} {% block content %} -Updated May 2013, current as of router version 0.9.6 - -

    Overview

    -

    +

    {% trans %}Overview{% endtrans %}

    +

    {% trans -%} This page specifies the format of the various GeoIP files, used by the router to look up a country for an IP. -

    +{%- endtrans %}

    -

    Country Name (countries.txt) Format

    -

    +

    {% trans %}Country Name (countries.txt) Format{% endtrans %}

    +

    {% trans -%} This format is easily generated from data files available from many public sources. For example: +{%- endtrans %}

     # wget http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
     # unzip GeoIPCountryCSV.zip
    @@ -29,10 +30,11 @@ For example:
     
     
     
    -

    IPv4 (geoip.txt) Format

    -

    +

    {% trans %}IPv4 (geoip.txt) Format{% endtrans %}

    +

    {% trans -%} This format is borrowed from Tor and is easily generated from data files available from many public sources. For example: +{%- endtrans %}

     # wget http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
     # unzip GeoIPCountryCSV.zip
    @@ -49,10 +51,11 @@ For example:
     
     
     
    -

    IPv6 (geoipv6.dat.gz) Format

    -

    +

    {% trans %}IPv6 (geoipv6.dat.gz) Format{% endtrans %}

    +

    {% trans -%} This is a compressed binary format designed for I2P. The file is gzipped. Ungzipped format: +{%- endtrans %}

        Bytes 0-9: Magic number "I2PGeoIPv6"
        Bytes 10-11: Version (0x0001)
    @@ -65,8 +68,7 @@ The file is gzipped. Ungzipped format:
            8 byte to (/64)
            2 byte ISO country code LOWER case (ASCII)
     
    -

    -NOTES: +

    {% trans %}NOTES:{% endtrans %}