From 3fe40c223c987c3162b8dd80694ad2902692f6b3 Mon Sep 17 00:00:00 2001
From: Sunil Mohan Adapa
Date: Thu, 10 Apr 2014 10:33:21 +0530
Subject: [PATCH] Minor i18n fixes for pagekite
---
modules/installed/router/pagekite.py | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/modules/installed/router/pagekite.py b/modules/installed/router/pagekite.py
index be767560b..666d1a0fe 100644
--- a/modules/installed/router/pagekite.py
+++ b/modules/installed/router/pagekite.py
@@ -41,7 +41,7 @@ class PageKite(PagePlugin):
self.register_page("router.setup.pagekite")
self.register_page("router.setup.pagekite.configure")
cfg.html_root.router.setup.menu.add_item(
- "Public Visibility (PageKite)", "icon-flag",
+ _("Public Visibility (PageKite)"), "icon-flag",
"/router/setup/pagekite", 50)
@cherrypy.expose
@@ -51,15 +51,15 @@ class PageKite(PagePlugin):
del kwargs # Unused
main = _("""
-PageKite is a system for exposing FreedomBox services when you
+
PageKite is a system for exposing {box_name} services when you
don't have a direct connection to the Internet. You only need this
-service if your FreedomBox services are unreachable from the rest of
+service if your {box_name} services are unreachable from the rest of
the Internet. This includes the following situations:
- - FreedomBox is behind a restricted firewall.
+ - {box_name} is behind a restricted firewall.
- - FreedomBox is connected to a (wireless) router which you don't
+
- {box_name} is connected to a (wireless) router which you don't
control.
- Your ISP does not provide you an external IP address and instead
@@ -76,20 +76,20 @@ using a combination of tunnels and reverse proxies. Currently,
exposing web server and SSH server are supported. An intermediary
server with direct Internet access is required. Currently, only
pagekite.net server is supported and you will need an account
-there. In future, it might be possible to use your buddy's FreedomBox
+there. In future, it might be possible to use your buddy's {box_name}
for this.
Configure
PageKite
-""".format(server_dir=cfg.server_dir))
+""").format(box_name=cfg.box_name, server_dir=cfg.server_dir)
sidebar_right = _('''
PageKite
Configure
-PageKite
'''.format(server_dir=cfg.server_dir))
+PageKite ''').format(server_dir=cfg.server_dir)
- return self.fill_template(title="Public Visibility (PageKite)",
+ return self.fill_template(title=_("Public Visibility (PageKite)"),
main=main, sidebar_right=sidebar_right)
@@ -157,9 +157,9 @@ $('#pagekite-enable').change(function() {
if not status:
return _('''
PageKite is not installed, please install it. PageKite comes
-pre-installed with FreedomBox. On any Debian based system (such as
-FreedomBox) you may install it using the command 'aptitude install
-pagekite'
''')
+pre-installed with {box_name}. On any Debian based system (such as
+{box_name}) you may install it using the command 'aptitude install
+pagekite'''').format(box_name=cfg.box_name)
try:
message = kwargs['message'].text