[jhbuild] translate command documentation when used, not on class definition
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] translate command documentation when used, not on class definition
- Date: Sat, 16 May 2009 08:21:01 -0400 (EDT)
commit b02d1a48f1072361347129ca2e5298d4ff08afa7
Author: Frédéric Péters <fpeters 0d be>
Date: Sat May 16 14:20:18 2009 +0200
translate command documentation when used, not on class definition
---
jhbuild/commands/__init__.py | 2 +-
jhbuild/commands/autobuild.py | 2 +-
jhbuild/commands/base.py | 18 +++++++++---------
jhbuild/commands/bootstrap.py | 2 +-
jhbuild/commands/bot.py | 2 +-
jhbuild/commands/checkbranches.py | 2 +-
jhbuild/commands/checkmodulesets.py | 2 +-
jhbuild/commands/gui.py | 2 +-
jhbuild/commands/info.py | 2 +-
jhbuild/commands/rdepends.py | 2 +-
jhbuild/commands/sanitycheck.py | 2 +-
jhbuild/commands/snapshot.py | 2 +-
jhbuild/commands/tinderbox.py | 2 +-
13 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/jhbuild/commands/__init__.py b/jhbuild/commands/__init__.py
index 2f795f6..bd375c3 100644
--- a/jhbuild/commands/__init__.py
+++ b/jhbuild/commands/__init__.py
@@ -46,7 +46,7 @@ class Command:
def parse_args(self, args):
self.parser = optparse.OptionParser(
usage='%%prog %s %s' % (self.name, _(self.usage_args)),
- description=self.doc)
+ description=_(self.doc))
self.parser.add_options(self.options)
return self.parser.parse_args(args)
diff --git a/jhbuild/commands/autobuild.py b/jhbuild/commands/autobuild.py
index 96925be..16851c3 100644
--- a/jhbuild/commands/autobuild.py
+++ b/jhbuild/commands/autobuild.py
@@ -24,7 +24,7 @@ from jhbuild.commands.base import Command, register_command
import jhbuild.frontends
class cmd_autobuild(Command):
- doc = _('Build modules non-interactively and upload results to JhAutobuild')
+ doc = N_('Build modules non-interactively and upload results to JhAutobuild')
name = 'autobuild'
diff --git a/jhbuild/commands/base.py b/jhbuild/commands/base.py
index c17154c..75301c8 100644
--- a/jhbuild/commands/base.py
+++ b/jhbuild/commands/base.py
@@ -41,7 +41,7 @@ def parse_relative_time(s):
class cmd_update(Command):
- doc = _('Update all modules from version control')
+ doc = N_('Update all modules from version control')
name = 'update'
usage_args = N_('[ options ... ] [ modules ... ]')
@@ -97,7 +97,7 @@ register_command(cmd_update)
class cmd_updateone(Command):
- doc = _('Update one or more modules from version control')
+ doc = N_('Update one or more modules from version control')
name = 'updateone'
usage_args = N_('[ options ... ] [ modules ... ]')
@@ -133,7 +133,7 @@ register_command(cmd_updateone)
class cmd_cleanone(Command):
- doc = _('Clean one or more modules')
+ doc = N_('Clean one or more modules')
name = 'cleanone'
usage_args = N_('[ options ... ] [ modules ... ]')
@@ -214,7 +214,7 @@ def check_bootstrap_updateness(config):
class cmd_build(Command):
- doc = _('Update and compile all modules (the default)')
+ doc = N_('Update and compile all modules (the default)')
name = 'build'
usage_args = N_('[ options ... ] [ modules ... ]')
@@ -337,7 +337,7 @@ register_command(cmd_build)
class cmd_buildone(Command):
- doc = _('Update and compile one or more modules')
+ doc = N_('Update and compile one or more modules')
name = 'buildone'
usage_args = N_('[ options ... ] [ modules ... ]')
@@ -420,7 +420,7 @@ register_command(cmd_buildone)
class cmd_run(Command):
- doc = _('Run a command under the JHBuild environment')
+ doc = N_('Run a command under the JHBuild environment')
name = 'run'
usage_args = N_('[ options ... ] program [ arguments ... ]')
@@ -473,7 +473,7 @@ register_command(cmd_run)
class cmd_shell(Command):
- doc = _('Start a shell under the JHBuild environment')
+ doc = N_('Start a shell under the JHBuild environment')
name = 'shell'
usage_args = ''
@@ -488,7 +488,7 @@ register_command(cmd_shell)
class cmd_list(Command):
- doc = _('List the modules that would be built')
+ doc = N_('List the modules that would be built')
name = 'list'
usage_args = N_('[ options ... ] [ modules ... ]')
@@ -555,7 +555,7 @@ register_command(cmd_list)
class cmd_dot(Command):
- doc = _('Output a Graphviz dependency graph for one or more modules')
+ doc = N_('Output a Graphviz dependency graph for one or more modules')
name = 'dot'
usage_args = N_('[ modules ... ]')
diff --git a/jhbuild/commands/bootstrap.py b/jhbuild/commands/bootstrap.py
index 358ea83..3c81ac7 100644
--- a/jhbuild/commands/bootstrap.py
+++ b/jhbuild/commands/bootstrap.py
@@ -31,7 +31,7 @@ from jhbuild.commands.base import cmd_build
from jhbuild.utils.cmds import check_version
class cmd_bootstrap(cmd_build):
- doc = _('Build required support tools')
+ doc = N_('Build required support tools')
name = 'bootstrap'
diff --git a/jhbuild/commands/bot.py b/jhbuild/commands/bot.py
index 6730127..c2e9306 100644
--- a/jhbuild/commands/bot.py
+++ b/jhbuild/commands/bot.py
@@ -50,7 +50,7 @@ except ImportError:
buildbot = None
class cmd_bot(Command):
- doc = _('Control buildbot')
+ doc = N_('Control buildbot')
name = 'bot'
usage_args = N_('[ options ... ]')
diff --git a/jhbuild/commands/checkbranches.py b/jhbuild/commands/checkbranches.py
index 07f04bd..8c91cc5 100644
--- a/jhbuild/commands/checkbranches.py
+++ b/jhbuild/commands/checkbranches.py
@@ -25,7 +25,7 @@ from jhbuild.utils.cmds import get_output
from jhbuild.errors import CommandError
class cmd_checkbranches(Command):
- doc = _('Check modules in GNOME subversion have the correct branch definition')
+ doc = N_('Check modules in GNOME subversion have the correct branch definition')
name = 'checkbranches'
def __init__(self):
diff --git a/jhbuild/commands/checkmodulesets.py b/jhbuild/commands/checkmodulesets.py
index 6ce4c1a..68a11cb 100644
--- a/jhbuild/commands/checkmodulesets.py
+++ b/jhbuild/commands/checkmodulesets.py
@@ -27,7 +27,7 @@ import jhbuild.moduleset
from jhbuild.commands import Command, register_command
class cmd_checkmodulesets(Command):
- doc = _('Check modules in jhbuild have the correct definition')
+ doc = N_('Check modules in jhbuild have the correct definition')
name = 'checkmodulesets'
def run(self, config, options, args):
diff --git a/jhbuild/commands/gui.py b/jhbuild/commands/gui.py
index a8f7937..194198c 100644
--- a/jhbuild/commands/gui.py
+++ b/jhbuild/commands/gui.py
@@ -24,7 +24,7 @@ from jhbuild.frontends.gtkui import Configuration
class cmd_gui(Command):
- doc = _('Build targets from a GUI app')
+ doc = N_('Build targets from a GUI app')
name = 'gui'
usage_args = ''
diff --git a/jhbuild/commands/info.py b/jhbuild/commands/info.py
index 3e50bda..1b7512d 100644
--- a/jhbuild/commands/info.py
+++ b/jhbuild/commands/info.py
@@ -34,7 +34,7 @@ from jhbuild.versioncontrol.tarball import TarballBranch
class cmd_info(Command):
- doc = _('Display information about one or more modules')
+ doc = N_('Display information about one or more modules')
name = 'info'
usage_args = N_('[ modules ... ]')
diff --git a/jhbuild/commands/rdepends.py b/jhbuild/commands/rdepends.py
index 0f1e1fe..0543398 100644
--- a/jhbuild/commands/rdepends.py
+++ b/jhbuild/commands/rdepends.py
@@ -25,7 +25,7 @@ from jhbuild.errors import UsageError, FatalError, CommandError
class cmd_rdepends(Command):
- doc = _('Display reverse-dependencies of a module')
+ doc = N_('Display reverse-dependencies of a module')
name = 'rdepends'
usage_args = N_('[ module ]')
diff --git a/jhbuild/commands/sanitycheck.py b/jhbuild/commands/sanitycheck.py
index c350674..b5399dc 100644
--- a/jhbuild/commands/sanitycheck.py
+++ b/jhbuild/commands/sanitycheck.py
@@ -46,7 +46,7 @@ def inpath(filename, path):
class cmd_sanitycheck(Command):
- doc = _('Check that required support tools are available')
+ doc = N_('Check that required support tools are available')
name = 'sanitycheck'
usage_args = ''
diff --git a/jhbuild/commands/snapshot.py b/jhbuild/commands/snapshot.py
index debdaeb..c2b8259 100644
--- a/jhbuild/commands/snapshot.py
+++ b/jhbuild/commands/snapshot.py
@@ -31,7 +31,7 @@ from jhbuild.utils.sxml import sxml, sxml_to_string
class cmd_snapshot(Command):
- doc = _('Print out a moduleset for the exact versions that are checked out')
+ doc = N_('Print out a moduleset for the exact versions that are checked out')
name = 'snapshot'
def __init__(self):
diff --git a/jhbuild/commands/tinderbox.py b/jhbuild/commands/tinderbox.py
index 3adc5e5..4a0743e 100644
--- a/jhbuild/commands/tinderbox.py
+++ b/jhbuild/commands/tinderbox.py
@@ -25,7 +25,7 @@ import jhbuild.frontends
class cmd_tinderbox(Command):
- doc = _('Build modules non-interactively and store build logs')
+ doc = N_('Build modules non-interactively and store build logs')
name = 'tinderbox'
usage_args = N_('[ options ... ] [ modules ... ]')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]