Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/node/stats.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-07-12 16:48:47 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-07-12 16:48:47 (GMT)
commitd2de7687a273ea035fe7c9c94c178d43e268e9ab (patch)
treea52b583f97c9b0d6464c72c00ff52bfb61130d15 /sugar_network/node/stats.py
parent7d4b62b95eee940dbd1b1b9e5a110060b0183b6e (diff)
Get rid of gettext, it is an overkil for system messages
Diffstat (limited to 'sugar_network/node/stats.py')
-rw-r--r--sugar_network/node/stats.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/sugar_network/node/stats.py b/sugar_network/node/stats.py
index 2d1aa1b..1ae18e4 100644
--- a/sugar_network/node/stats.py
+++ b/sugar_network/node/stats.py
@@ -13,31 +13,29 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from gettext import gettext as _
-
from active_toolkit.options import Option
stats = Option(
- _('enable stats collecting'),
+ 'enable stats collecting',
default=False, type_cast=Option.bool_cast, action='store_true')
stats_root = Option(
- _('path to the root directory for placing stats'),
+ 'path to the root directory for placing stats',
default='/var/lib/sugar-network/stats')
stats_step = Option(
- _('step interval in seconds for RRD databases'),
+ 'step interval in seconds for RRD databases',
default=60, type_cast=int)
stats_server_rras = Option(
- _('space separated list of RRAs for RRD databases on a server side'),
+ 'space separated list of RRAs for RRD databases on a server side',
default='RRA:AVERAGE:0.5:1:4320 RRA:AVERAGE:0.5:5:2016',
type_cast=lambda x: [i for i in x.split() if i],
type_repr=lambda x: ' '.join(x))
stats_client_rras = Option(
- _('space separated list of RRAs for RRD databases on client side'),
+ 'space separated list of RRAs for RRD databases on client side',
default='RRA:AVERAGE:0.5:1:4320 RRA:AVERAGE:0.5:5:2016',
type_cast=lambda x: [i for i in x.split() if i],
type_repr=lambda x: ' '.join(x))