imposition 0.9.4.6 → 0.9.4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/impostor +1 -1
- data/lib/imposition/metodos.rb +6 -1
- data/lib/locales/en.yml +2 -2
- metadata +3 -2
data/bin/impostor
CHANGED
@@ -129,7 +129,7 @@ nPliegos_=input(I18n.t(:nSheets)+":")
|
|
129
129
|
cuadernillos = enBooklets()
|
130
130
|
#
|
131
131
|
def recursivo(w_,h_,wP_,hP_,nX,nY,nPaginas,nPliegos,cuadernillos, preguntas)
|
132
|
-
impostor=Metodos.funcionar(w_,h_,wP_,hP_,nX,nY,nPaginas,nPliegos,cuadernillos,preguntas,$temp)
|
132
|
+
impostor=Metodos.funcionar(w_,h_,wP_,hP_,nX,nY,nPaginas,nPliegos,cuadernillos,preguntas,$temp,nil)
|
133
133
|
if impostor.preguntasOk then
|
134
134
|
if impostor.valido then
|
135
135
|
puts I18n.t(:msgs)#blink blink
|
data/lib/imposition/metodos.rb
CHANGED
@@ -4,7 +4,12 @@
|
|
4
4
|
module Metodos
|
5
5
|
|
6
6
|
#WORK
|
7
|
-
def funcionar(w_,h_,wP_,hP_,nX,nY,nPaginas,nPliegos,cuadernillos,preguntas,temp)
|
7
|
+
def funcionar(w_,h_,wP_,hP_,nX,nY,nPaginas,nPliegos,cuadernillos,preguntas,temp,locale)
|
8
|
+
if locale!=nil then
|
9
|
+
I18n.locale=locale
|
10
|
+
else
|
11
|
+
locale=:en
|
12
|
+
end
|
8
13
|
impostor=Clases::Imposicion.new(w_,h_,wP_,hP_,nX,nY,nPaginas,nPliegos,cuadernillos)
|
9
14
|
pdfinfo(impostor,temp)
|
10
15
|
retorno=validacion(impostor, preguntas)
|
data/lib/locales/en.yml
CHANGED
@@ -5,7 +5,7 @@ en:
|
|
5
5
|
WnX: "You didn't specify Page width but you specified Sheet width and how many Pages per Sheet"
|
6
6
|
horizontalmente: "horizontally"
|
7
7
|
verticalmente: "vertically"
|
8
|
-
HnY: "You didn't specify Page height
|
8
|
+
HnY: "You didn't specify Page height but you specified Sheet height and how many Pages per Sheet"
|
9
9
|
scale: "¿Do you really wanna scale %{tp} ? (y/n)"
|
10
10
|
excesscXC: "Last group of %{cXC} booklets will have extra %{p} pages"
|
11
11
|
reducecXC: "We can reduce it to %{nCuad} booklets, to have extra %{sobranMenos} pages. ¿0K? (y/n)"
|
@@ -53,7 +53,7 @@ en:
|
|
53
53
|
nYhhPno: "%{nY} pages %{h} high don't fit into a %{hP} high sheet"
|
54
54
|
hPXL: "%{n} high leftover"
|
55
55
|
bookltsblink: "::::::::::booklets:::::::::::\n"
|
56
|
-
bookltsxplain: "
|
56
|
+
bookltsxplain: "ordered for Booklets in "
|
57
57
|
nUpblink: "::::::::::::cut&Stack::::::::::::\n"
|
58
58
|
nUpxplain: "imposed for Cut & Stack in "
|
59
59
|
s: "seconds"
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imposition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 4
|
10
10
|
- 6
|
11
|
-
|
11
|
+
- 1
|
12
|
+
version: 0.9.4.6.1
|
12
13
|
platform: ruby
|
13
14
|
authors:
|
14
15
|
- numerico
|