Rename locale -> lang_text

This commit is contained in:
Insality
2020-02-22 15:24:52 +03:00
parent 2c0b100ab7
commit 640753c080
7 changed files with 46 additions and 43 deletions

View File

@@ -26,16 +26,16 @@ end
local function setup_texts(self)
self.druid:new_locale("text_button", "ui_section_button")
self.druid:new_locale("text_text", "ui_section_text")
self.druid:new_locale("text_timer", "ui_section_timer")
self.druid:new_locale("text_progress", "ui_section_progress")
self.druid:new_locale("text_slider", "ui_section_slider")
self.druid:new_locale("text_radio", "ui_section_radio")
self.druid:new_locale("text_checkbox", "ui_section_checkbox")
self.druid:new_lang_text("text_button", "ui_section_button")
self.druid:new_lang_text("text_text", "ui_section_text")
self.druid:new_lang_text("text_timer", "ui_section_timer")
self.druid:new_lang_text("text_progress", "ui_section_progress")
self.druid:new_lang_text("text_slider", "ui_section_slider")
self.druid:new_lang_text("text_radio", "ui_section_radio")
self.druid:new_lang_text("text_checkbox", "ui_section_checkbox")
self.druid:new_locale("text_translated", "ui_text_example")
self.druid:new_locale("text_button_lang", "ui_text_change_lang")
self.druid:new_lang_text("text_translated", "ui_text_example")
self.druid:new_lang_text("text_button_lang", "ui_text_change_lang")
self.druid:new_text("text_simple", "Simple")
end

View File

@@ -19,7 +19,7 @@ local function setup_texts(self)
self.druid:new_text("text_multiline", "Simple multiline text with smth")
local anchoring = self.druid:new_text("text_anchoring", "Anchoring")
self.druid:new_text("text_no_adjust", "Without adjust size", true)
self.druid:new_locale("text_locale", "ui_text_example")
self.druid:new_lang_text("text_locale", "ui_text_example")
local big_text = "Check max size"
local width = self.druid:new_text("text_max_width", big_text)