##// END OF EJS Templates
githelp: make several strings localizable
Matt Harbison -
r38132:16463278 default
parent child Browse files
Show More
@@ -67,7 +67,7 b' def githelp(ui, repo, *args, **kwargs):'
67
67
68 cmd = args[0]
68 cmd = args[0]
69 if not cmd in gitcommands:
69 if not cmd in gitcommands:
70 raise error.Abort("error: unknown git command %s" % (cmd))
70 raise error.Abort(_("error: unknown git command %s") % (cmd))
71
71
72 ui.pager('githelp')
72 ui.pager('githelp')
73 args = args[1:]
73 args = args[1:]
@@ -90,7 +90,7 b' def parseoptions(ui, cmdoptions, args):'
90 elif ('-' + ex.opt) in ex.msg:
90 elif ('-' + ex.opt) in ex.msg:
91 flag = '-' + ex.opt
91 flag = '-' + ex.opt
92 else:
92 else:
93 raise error.Abort("unknown option %s" % ex.opt)
93 raise error.Abort(_("unknown option %s") % ex.opt)
94 try:
94 try:
95 args.remove(flag)
95 args.remove(flag)
96 except Exception:
96 except Exception:
@@ -336,7 +336,7 b' def checkout(ui, repo, *args, **kwargs):'
336 cmd = Command('revert')
336 cmd = Command('revert')
337 cmd['--all'] = None
337 cmd['--all'] = None
338 else:
338 else:
339 raise error.Abort("a commit must be specified")
339 raise error.Abort(_("a commit must be specified"))
340
340
341 ui.status((bytes(cmd)), "\n")
341 ui.status((bytes(cmd)), "\n")
342
342
@@ -386,7 +386,7 b' def clone(ui, repo, *args, **kwargs):'
386 args, opts = parseoptions(ui, cmdoptions, args)
386 args, opts = parseoptions(ui, cmdoptions, args)
387
387
388 if len(args) == 0:
388 if len(args) == 0:
389 raise error.Abort("a repository to clone must be specified")
389 raise error.Abort(_("a repository to clone must be specified"))
390
390
391 cmd = Command('clone')
391 cmd = Command('clone')
392 cmd.append(args[0])
392 cmd.append(args[0])
@@ -776,7 +776,7 b' def rebase(ui, repo, *args, **kwargs):'
776 "\n\n"))
776 "\n\n"))
777 cmd['-d'] = convert(opts.get('onto'))
777 cmd['-d'] = convert(opts.get('onto'))
778 if len(args) < 2:
778 if len(args) < 2:
779 raise error.Abort("Expected format: git rebase --onto X Y Z")
779 raise error.Abort(_("Expected format: git rebase --onto X Y Z"))
780 cmd['-s'] = "'::%s - ::%s'" % (convert(args[1]), convert(args[0]))
780 cmd['-s'] = "'::%s - ::%s'" % (convert(args[1]), convert(args[0]))
781 else:
781 else:
782 if len(args) == 1:
782 if len(args) == 1:
General Comments 0
You need to be logged in to leave comments. Login now