There wasn't always enough room for the Swedish strings in the text output.

This commit is contained in:
Adam Waldenberg 2013-06-26 03:23:58 +02:00
parent c19680dc39
commit 0d8c3534dc
2 changed files with 8 additions and 8 deletions

View file

@ -219,11 +219,11 @@ class BlameOutput(Outputable):
terminal.clear_row()
print(textwrap.fill(__blame_info_text__ + ":", width=terminal.get_size()[0]) + "\n")
terminal.printb(_("Author").ljust(21) + _("Rows").rjust(10) + _("% in comments").rjust(16))
terminal.printb(_("Author").ljust(21) + _("Rows").rjust(10) + _("% in comments").rjust(20))
for i in sorted(__blame__.get_summed_blames().items()):
print(i[0].ljust(20)[0:20], end=" ")
print(str(i[1].rows).rjust(10), end=" ")
print("{0:.2f}".format(100.0 * i[1].comments / i[1].rows).rjust(15))
print("{0:.2f}".format(100.0 * i[1].comments / i[1].rows).rjust(19))
def output_xml(self):
get(self.hard)

View file

@ -231,18 +231,18 @@ class ChangesOutput(Outputable):
if authorinfo_list:
print(textwrap.fill(__historical_info_text__ + ":", width=terminal.get_size()[0]) + "\n")
terminal.printb(_("Author").ljust(21) + "{0} {1} {2} {3}".format(_("Commits"), _("Insertions"),
_("Deletions"), _("% of changes")))
terminal.printb(_("Author").ljust(21) + _("Commits").rjust(13) + _("Insertions").rjust(14) +
_("Deletions").rjust(15) + _("% of changes").rjust(16))
for i in sorted(authorinfo_list):
authorinfo = authorinfo_list.get(i)
percentage = 0 if total_changes == 0 else (authorinfo.insertions + authorinfo.deletions) / total_changes * 100
print(i.ljust(20)[0:20], end=" ")
print(str(authorinfo.commits).rjust(7), end=" ")
print(str(authorinfo.insertions).rjust(12), end=" ")
print(str(authorinfo.deletions).rjust(11), end=" ")
print("{0:.2f}".format(percentage).rjust(14))
print(str(authorinfo.commits).rjust(13), end=" ")
print(str(authorinfo.insertions).rjust(13), end=" ")
print(str(authorinfo.deletions).rjust(14), end=" ")
print("{0:.2f}".format(percentage).rjust(15))
else:
print(__no_commited_files_text__ + ".")