improvements supplier translations

This commit is contained in:
2013-01-10 20:56:30 +01:00
parent 4d0d1b7dd1
commit f6b28f84f0
7 changed files with 113 additions and 14 deletions
+1
View File
@@ -77,6 +77,7 @@ class Section
w = width
h = height
n = tables.size
return unless w > 0 && h > 0 && n > 0
l = Math.sqrt((w*h).to_f/n)
epsilon = (10 ** -(Float::DIG - 1)).to_f
while (w/l).floor * (h/l).floor < n # find a fitting combination
+1 -1
View File
@@ -83,7 +83,7 @@ class Supplier
private
def add_section_on_create
@section = Section.create supplier: self, title: I18n.t('section.first_section_title')
@section = Section.create supplier: self, title: I18n.t('supplier.section.first_section_title')
end
end