@@ -24,7 +26,9 @@ To get published a host must meet the following criteria:
Admin's approval isn't really necessary, it is only needed in
order to eliminate possible hijacking and mass registration attempts.
+{% endblocktrans %}
+{% blocktrans %}
Expiration
Hosts gets checked for availability every 12 hours. If the host is alive, registration period
@@ -35,13 +39,17 @@ When a host has expired, its name/key pair will be keept for 2 years but will no
published any longer. Until this period ends, it's impossible to register this hostname
again.
+{% endblocktrans %}
+{% blocktrans %}
Deletion of expired hosts
Hosts expired 2 years ago get completely deleted from our database and become
available for a new registration.
+{% endblocktrans %}
+{% blocktrans %}
Deletion of dead hosts
If a host was added from an external source and we've never seen it alive, it
@@ -49,4 +57,7 @@ will be deleted after 1 year since its adding date, and after 14 days if it is
was added through our registration service. Since these hosts were not published
through our service, we only grant them such a short grace period.
+{% endblocktrans %}
+
{% endblock %}
+
diff --git a/pyi2phosts/templates/index.html b/pyi2phosts/templates/index.html
index f45a8cb..83ba822 100644
--- a/pyi2phosts/templates/index.html
+++ b/pyi2phosts/templates/index.html
@@ -1,6 +1,9 @@
{% extends "base.html" %}
+{% load i18n %}
{% block content %}
+ {% url faq as faq_url %}
+ {% blocktrans %}
About
{{ title }} is a domain name registration service for I2P. Hostnames in I2P aren't
globally unique. {{ title }} doesn't act as "central authority", it only provides a
@@ -8,8 +11,9 @@
I2P naming works in the official
docs.
+
To find out how we're registering and publishing hosts, look at
- FAQ page.
+ FAQ page.
If you have any questions, feel free to ask here
@@ -17,7 +21,9 @@
using uxGqmWz4HxLqjPVm7eSGGRqaGInm5hh8lZYubYdUX4Cih4Qhna2tSSMrupbWdDj80zDNoXvBc-le0GsywgVulw
identity.
+ {% endblocktrans %}
+ {% blocktrans %}
Addressbook service
To start getting new hostnames from {{ title }}, add this
@@ -26,25 +32,31 @@
addressbook. Of course, you should add INR's destination before.
+ {% endblocktrans %}
+ {% url pyi2phosts.jump.views.jumper 'example.i2p' as jump_url %}
+ {% url pyi2phosts.jump.views.index as jump_index %}
+ {% blocktrans %}
Jump service
{{ title }} also provides a jump service. For accessing hosts through it,
use urls like
-
- http://{{ domain }}{% url pyi2phosts.jump.views.jumper "example.i2p" %}.
+
+ http://{{ domain }}{{ jump_url }}.
I2P since 0.8.3 gives possibility to add a custom jump-servers. Go to the i2ptunnel
eeproxy configuration page
- and add http://{{ domain }}{% url pyi2phosts.jump.views.index %} to "Jump URL List" section.
+ and add http://{{ domain }}{{ jump_index }} to "Jump URL List" section.
+ {% endblocktrans %}
+ {% url pyi2phosts.postkey.views.addkey as addkey_url %}
+ {% blocktrans %}
Registration service
If you are running an eepsite or another service and want a human-readable domain name
- for them, consider registering it.
+ for them, consider registering it.
+ {% endblocktrans %}
{% endblock %}
-{%block footer-addon %}
-b32 |
-
- add |
+{% block footer-addon %}
+ b32 | {% trans "add" %} |
{% endblock %}
diff --git a/pyi2phosts/templates/jump-error.html b/pyi2phosts/templates/jump-error.html
index dcf9a26..d165fcb 100644
--- a/pyi2phosts/templates/jump-error.html
+++ b/pyi2phosts/templates/jump-error.html
@@ -1,6 +1,7 @@
{% extends "base.html" %}
+{% load i18n %}
{% block content %}
-You are trying to access an invalid hostname. Maybe you're just mistyped it.
-Error: {{ error }}
+{% trans "You are trying to access an invalid hostname. Maybe you're just mistyped it." %}
+{% trans "Error:" %} {{ error }}
{% endblock %}
diff --git a/pyi2phosts/templates/jump-unknown.html b/pyi2phosts/templates/jump-unknown.html
index 493cc5e..5fa9757 100644
--- a/pyi2phosts/templates/jump-unknown.html
+++ b/pyi2phosts/templates/jump-unknown.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
+{% load i18n %}
{% block content %}
-You are trying to access an unknown hostname.
+{% trans "You are trying to access an unknown hostname." %}
{% endblock %}
diff --git a/pyi2phosts/templates/jump.html b/pyi2phosts/templates/jump.html
index c8336ff..be5cbb2 100644
--- a/pyi2phosts/templates/jump.html
+++ b/pyi2phosts/templates/jump.html
@@ -1,12 +1,15 @@
{% extends "base.html" %}
+{% load i18n %}
{% block head %}
{% endblock %}
{% block content %}
+{% blocktrans %}
Congratulations! We're found that host you're requesting. Redirecting in 5 secs...
We're suggesting to start use our subscription service. Find more...
+{% endblocktrans %}
{% endblock %}
diff --git a/pyi2phosts/templates/latest.html b/pyi2phosts/templates/latest.html
index 1e55664..4a60c2e 100644
--- a/pyi2phosts/templates/latest.html
+++ b/pyi2phosts/templates/latest.html
@@ -1,6 +1,9 @@
{% extends "browse.html" %}
+{% load i18n %}
{% block header %}
-Latest {{ hosts_count }} hosts added in {{ day_count }} days
+{% blocktrans %}
+Latest {{ hosts_count }} hosts added in {{ day_count }} days
+{% endblocktrans %}
{% endblock %}
diff --git a/pyi2phosts/templates/policy.html b/pyi2phosts/templates/policy.html
index 5f064d0..0c7f5e1 100644
--- a/pyi2phosts/templates/policy.html
+++ b/pyi2phosts/templates/policy.html
@@ -1,13 +1,15 @@
-Domain name registration policy
+{% load i18n %}
+
+{% trans "Domain name registration policy" %}
- - Domain name registration is free.
- - Anyone can register a domain name.
- - Domain names are available on a "first come, first serve" basis.
- - A domain name's destination must be active.
- Inactive destinations cannot be published.
- - Domain name hoarding through mass registration (cybersquatting) is not allowed.
- - Domain name registrations will not be rejected based on content.
- - Domain name registrations will stop propagating after some period of inactivity.
- - Temporary or test sites should not be registered. Use b32 address instead.
- - Changing key for existing domains is prohibited.
+ - {% trans "Domain name registration is free." %}
+ - {% trans "Anyone can register a domain name." %}
+ - {% trans "Domain names are available on a 'first come, first serve' basis." %}
+ - {% trans "A domain name's destination must be active." %}
+ {% trans "Inactive destinations cannot be published." %}
+ - {% trans "Domain name hoarding through mass registration (cybersquatting) is not allowed." %}
+ - {% trans "Domain name registrations will not be rejected based on content." %}
+ - {% trans "Domain name registrations will stop propagating after some period of inactivity." %}
+ - {% trans "Temporary or test sites should not be registered. Use b32 address instead." %}
+ - {% trans "Changing key for existing domains is prohibited." %}
diff --git a/pyi2phosts/templates/postkey.html b/pyi2phosts/templates/postkey.html
index c7ef63e..9946e4f 100644
--- a/pyi2phosts/templates/postkey.html
+++ b/pyi2phosts/templates/postkey.html
@@ -1,11 +1,12 @@
{% extends "base.html" %}
+{% load i18n %}
{% block content %}
{% include "policy.html" %}
You are trying to add a subdomain. Our policy permits subdomains registration only if you're own an
upper domain (2nd-level domain). Before subdomain will be added, we must ensure that you're own an upper-level
@@ -11,6 +13,8 @@ Unfortunately, we can verify a 2nd-level domain ownage only via http, so if you'
please run a webserver temporary. Create the following file in the webserver's document root and press "OK" button.
This file should be accessible via http://{{ topdomain }}/«filename» (without quotes).
+{% endblocktrans %}
+