mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
implement all needed tr() for localization
* implement some pt-BR translations * remove legacy about module
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
Panel
|
||||
OptionCheckBox
|
||||
id: classicControl
|
||||
text: Classic control
|
||||
!text: tr('Classic control')
|
||||
|
||||
OptionCheckBox
|
||||
id: showInfoMessagesInConsole
|
||||
text: Show info messages in console
|
||||
!text: tr('Show info messages in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showEventMessagesInConsole
|
||||
text: Show event messages in console
|
||||
!text: tr('Show event messages in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showStatusMessagesInConsole
|
||||
text: Show status messages in console
|
||||
!text: tr('Show status messages in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showTimestampsInConsole
|
||||
text: Show timestamps in console
|
||||
!text: tr('Show timestamps in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showLevelsInConsole
|
||||
text: Show levels in console
|
||||
!text: tr('Show levels in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showPrivateMessagesInConsole
|
||||
text: Show private messages in console
|
||||
!text: tr('Show private messages in console')
|
||||
|
@@ -1,19 +1,19 @@
|
||||
Panel
|
||||
OptionCheckBox
|
||||
id: vsync
|
||||
text: Enable vertical synchronization
|
||||
tooltip: Limits FPS to 60
|
||||
!text: tr('Enable vertical synchronization')
|
||||
!tooltip: tr('Limits FPS to 60')
|
||||
|
||||
OptionCheckBox
|
||||
id: showfps
|
||||
text: Show frame rate
|
||||
!text: tr('Show frame rate')
|
||||
|
||||
OptionCheckBox
|
||||
id: fullscreen
|
||||
text: Fullscreen
|
||||
!text: tr('Fullscreen')
|
||||
|
||||
Label
|
||||
text: Frame rate limit
|
||||
!text: tr('Frame rate limit')
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
|
@@ -28,7 +28,7 @@ function Options.init()
|
||||
|
||||
optionsWindow = displayUI('options.otui')
|
||||
optionsWindow:hide()
|
||||
optionsButton = TopMenu.addLeftButton('optionsButton', tr('Options') .. ' (Ctrl+O)', 'options.png', Options.toggle)
|
||||
optionsButton = TopMenu.addLeftButton('optionsButton', tr('Options'), 'options.png', Options.toggle)
|
||||
optionsTabBar = optionsWindow:getChildById('optionsTabBar')
|
||||
optionsTabBar:setContentWidget(optionsWindow:getChildById('optionsTabContent'))
|
||||
optionsTabBar:addTab('General', loadUI('general.otui'))
|
||||
@@ -37,6 +37,7 @@ end
|
||||
|
||||
function Options.terminate()
|
||||
Keyboard.unbindKeyDown('Ctrl+P')
|
||||
Keyboard.unbindKeyDown('Ctrl+F')
|
||||
optionsWindow:destroy()
|
||||
optionsWindow = nil
|
||||
optionsButton:destroy()
|
||||
@@ -63,10 +64,6 @@ function Options.hide()
|
||||
optionsWindow:hide()
|
||||
end
|
||||
|
||||
function Options.openWebpage()
|
||||
displayErrorBox("Error", "Not implemented yet")
|
||||
end
|
||||
|
||||
function Options.toggleOption(key)
|
||||
Options.setOption(key, not Options.getOption(key))
|
||||
end
|
||||
|
@@ -16,7 +16,7 @@ OptionCheckBox < CheckBox
|
||||
|
||||
MainWindow
|
||||
id: optionsWindow
|
||||
text: Options
|
||||
!text: tr('Options')
|
||||
size: 286 230
|
||||
|
||||
@onEnter: Options.hide()
|
||||
@@ -37,7 +37,7 @@ MainWindow
|
||||
margin-top: 10
|
||||
|
||||
Button
|
||||
text: Ok
|
||||
!text: tr('Ok')
|
||||
width: 64
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
|
Reference in New Issue
Block a user