Overhauled text translations

This commit is contained in:
Maruno17
2023-01-08 17:11:38 +00:00
parent ae0d193bba
commit 632b0f8b4b
23 changed files with 757 additions and 710 deletions

View File

@@ -432,13 +432,13 @@ class Slider < UIControl
color = Color.new(120, 120, 120)
bitmap.fill_rect(x, y, width, height, Color.new(0, 0, 0, 0))
size = bitmap.text_size(self.label).width
leftarrows = bitmap.text_size(_INTL(" << "))
leftarrows = bitmap.text_size(_INTL("<<"))
numbers = bitmap.text_size(" XXXX ").width
rightarrows = bitmap.text_size(_INTL(" >> "))
rightarrows = bitmap.text_size(_INTL(">>"))
bitmap.font.color = color
shadowtext(bitmap, x, y, size, height, self.label)
x += size
shadowtext(bitmap, x, y, leftarrows.width, height, _INTL(" << "),
shadowtext(bitmap, x, y, leftarrows.width, height, _INTL("<<"),
self.disabled || self.curvalue == self.minvalue)
@leftarrow = Rect.new(x, y, leftarrows.width, height)
x += leftarrows.width
@@ -447,7 +447,7 @@ class Slider < UIControl
shadowtext(bitmap, x, y, numbers, height, " #{self.curvalue} ", false, 1)
end
x += numbers
shadowtext(bitmap, x, y, rightarrows.width, height, _INTL(" >> "),
shadowtext(bitmap, x, y, rightarrows.width, height, _INTL(">>"),
self.disabled || self.curvalue == self.maxvalue)
@rightarrow = Rect.new(x, y, rightarrows.width, height)
end
@@ -681,12 +681,12 @@ class TextSlider < UIControl
color = Color.new(120, 120, 120)
bitmap.fill_rect(x, y, width, height, Color.new(0, 0, 0, 0))
size = bitmap.text_size(self.label).width
leftarrows = bitmap.text_size(_INTL(" << "))
rightarrows = bitmap.text_size(_INTL(" >> "))
leftarrows = bitmap.text_size(_INTL("<<"))
rightarrows = bitmap.text_size(_INTL(">>"))
bitmap.font.color = color
shadowtext(bitmap, x, y, size, height, self.label)
x += size
shadowtext(bitmap, x, y, leftarrows.width, height, _INTL(" << "),
shadowtext(bitmap, x, y, leftarrows.width, height, _INTL("<<"),
self.disabled || self.curvalue == self.minvalue)
@leftarrow = Rect.new(x, y, leftarrows.width, height)
x += leftarrows.width
@@ -695,7 +695,7 @@ class TextSlider < UIControl
shadowtext(bitmap, x, y, @maxoptionwidth, height, " #{@options[self.curvalue]} ", false, 1)
end
x += @maxoptionwidth
shadowtext(bitmap, x, y, rightarrows.width, height, _INTL(" >> "),
shadowtext(bitmap, x, y, rightarrows.width, height, _INTL(">>"),
self.disabled || self.curvalue == self.maxvalue)
@rightarrow = Rect.new(x, y, rightarrows.width, height)
end