implement all needed tr() for localization

* implement some pt-BR translations
* remove legacy about module
This commit is contained in:
Eduardo Bart
2012-04-26 16:54:16 -03:00
parent ca0e1bd38b
commit 34091bc48e
47 changed files with 480 additions and 419 deletions

View File

@@ -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')

View File

@@ -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

View File

@@ -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

View File

@@ -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