Merge pull request #3929 from ScottNZ/translation

Add translation support
This commit is contained in:
Paul Chote
2013-10-13 23:57:12 -07:00
29 changed files with 360 additions and 171 deletions

View File

@@ -279,8 +279,8 @@ Container@PLAYER_WIDGETS:
X:WINDOW_RIGHT - 204
Y:287
TooltipContainer:TOOLTIP_CONTAINER
ReadyText:Ready
HoldText:On Hold
ReadyText:@ready@
HoldText:@on-hold@
Background@FMVPLAYER:
Width:WINDOW_RIGHT
Height:WINDOW_BOTTOM

View File

@@ -3,7 +3,7 @@ Container@SETTINGS_PANEL:
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - 250)/2
Width:740
Height:535
Height:565
Children:
ColorPreviewManager@COLOR_MANAGER:
Label@TITLE:
@@ -15,7 +15,7 @@ Container@SETTINGS_PANEL:
Text:Settings
Background@GENERAL_CONTROLS:
Width:740
Height:290
Height:320
Background:panel-black
Children:
Label@TITLE:
@@ -66,35 +66,35 @@ Container@SETTINGS_PANEL:
Text:Shellmap Music
Label@DEBUG_TITLE:
X:15
Y:150
Y:180
Width:340
Font:Bold
Text:Debug
Align:Center
Checkbox@PERFTEXT_CHECKBOX:
X:15
Y:170
Y:200
Width:300
Height:20
Font:Regular
Text:Show Performance Text
Checkbox@PERFGRAPH_CHECKBOX:
X:15
Y:200
Y:230
Width:300
Height:20
Font:Regular
Text:Show Performance Graph
Checkbox@CHECKUNSYNCED_CHECKBOX:
X:15
Y:230
Y:260
Width:300
Height:20
Font:Regular
Text:Check Sync around Unsynced Code
Checkbox@SHOW_FATAL_ERROR_DIALOG_CHECKBOX:
X:15
Y:260
Y:290
Width:300
Height:20
Font:Regular
@@ -149,70 +149,82 @@ Container@SETTINGS_PANEL:
Width:45
Height:25
MaxLength:5
Label@LANGUAGE_LABEL:
X:375
Y:70
Width:75
Height:25
Align:Right
Text:Language:
DropDownButton@LANGUAGE_DROPDOWNBUTTON:
X:455
Y:70
Width:140
Height:25
Label@VIDEO_DESC:
X:375
Y:68
Y:100
Width:340
Height:25
Font:Tiny
Align:Center
Text:Mode/Resolution changes will be applied after the game is restarted
Text:Mode/Resolution/Language changes will be applied after the game is restarted
Checkbox@PIXELDOUBLE_CHECKBOX:
X:375
Y:110
Y:140
Width:200
Height:20
Font:Regular
Text:Enable Pixel Doubling
Label@AUDIO_TITLE:
X:375
Y:150
Y:180
Width:340
Font:Bold
Text:Sound
Align:Center
Label@SOUND_LABEL:
X:375
Y:164
Y:194
Width:95
Height:25
Align:Right
Text:Sound Volume:
Slider@SOUND_SLIDER:
X:475
Y:170
Y:200
Width:240
Height:20
Ticks:5
Label@MUSIC_LABEL:
X:375
Y:194
Y:224
Width:95
Height:25
Align:Right
Text:Music Volume:
Slider@MUSIC_SLIDER:
X:475
Y:200
Y:230
Width:240
Height:20
Ticks:5
Label@AUDIO_DEVICE_LABEL:
X:375
Y:229
Y:259
Width:75
Height:20
Text:Audio Device:
DropDownButton@AUDIO_DEVICE:
X:475
Y:230
Y:260
Width:240
Height:25
Font:Regular
Text:Default Device
Label@AUDIO_DESC:
X:375
Y:258
Y:288
Width:340
Height:25
Font:Tiny
@@ -296,20 +308,20 @@ Container@SETTINGS_PANEL:
Font:Regular
Text:Shift-Enter Toggles Team Chat
Button@GENERAL_BUTTON:
Y:289
Y:319
Width:140
Height:35
Text:General
Button@INPUT_BUTTON:
X:150
Y:289
Y:319
Width:140
Height:35
Text:Input
Button@BACK_BUTTON:
Key:escape
X:600
Y:289
Y:319
Width:140
Height:35
Text:Back

View File

@@ -60,6 +60,7 @@ Background@PRODUCTION_TOOLTIP:
Y:19
Height:23
Font:TinyBold
Text:@requires@
Label@DESC:
X:5
Y:39

View File

@@ -0,0 +1,6 @@
english:
english: English
ready: Ready
on-hold: On Hold
requires: Requires {0}

View File

@@ -94,6 +94,9 @@ Movies:
mods/cnc/movies-gdi.yaml
mods/cnc/movies-nod.yaml
Translations:
mods/cnc/languages/english.yaml
Voices:
mods/cnc/voices.yaml

View File

@@ -155,9 +155,9 @@ Container@PLAYER_WIDGETS:
Y:280
Width:238
Height:500
ReadyText: READY
HoldText: ON HOLD
RequiresText: Requires
ReadyText:@ready@
HoldText:@on-hold@
RequiresText:@requires@
IconWidth: 60
IconHeight: 48
Columns: 3

View File

@@ -0,0 +1,6 @@
english:
english: English
ready: READY
on-hold: ON HOLD
requires: Requires {0}

View File

@@ -95,6 +95,9 @@ Music:
Movies:
Translations:
mods/d2k/languages/english.yaml
LoadScreen: DefaultLoadScreen
Image: mods/d2k/uibits/loadscreen.png
InstallerMenuWidget: INSTALL_PANEL

View File

@@ -148,16 +148,16 @@ Container@PLAYER_WIDGETS:
SupportPowerBin@INGAME_POWERS_BIN:
X:0
Y:25
ReadyText: READY
HoldText: ON HOLD
ReadyText: @ready@
HoldText: @on-hold@
BuildPalette@INGAME_BUILD_PALETTE:
X:WINDOW_RIGHT - 250
Y:280
Width:250
Height:500
ReadyText: READY
HoldText: ON HOLD
RequiresText: Requires
ReadyText: @ready@
HoldText: @on-hold@
RequiresText: @requires@
Container@OBSERVER_WIDGETS:
Children:

View File

@@ -138,7 +138,7 @@ Background@SETTINGS_MENU:
Label@SOUND_VOLUME_LABEL:
X:0
Y:10
Text: Sound Volume
Text: Sound Volume
Slider@SOUND_VOLUME:
X:100
Y:0
@@ -255,7 +255,7 @@ Background@SETTINGS_MENU:
Height:25
Font:Tiny
Align:Center
Text:Renderer/Mode/Resolution changes will be applied after the game is restarted.
Text:Mode/Resolution changes will be applied after the game is restarted.
Checkbox@PIXELDOUBLE_CHECKBOX:
Y:60
Width:200
@@ -274,6 +274,24 @@ Background@SETTINGS_MENU:
Width:45
Height:25
MaxLength:3
Label@LANGUAGE_LABEL:
X:0
Y:130
Width:75
Height:25
Text:Language:
DropDownButton@LANGUAGE_DROPDOWNBUTTON:
X:80
Y:130
Width:140
Height:25
Label@LANGUAGE_DESC:
Y:160
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text:Language changes will be applied after the game is restarted.
Container@KEYS_PANE:
X:37
Y:100

View File

@@ -0,0 +1,6 @@
english:
english: English
ready: READY
on-hold: ON HOLD
requires: Requires {0}

View File

@@ -113,6 +113,9 @@ Movies:
mods/ra/movies1.yaml
mods/ra/movies2.yaml
Translations:
mods/ra/languages/english.yaml
LoadScreen: DefaultLoadScreen
Image: mods/ra/uibits/loadscreen.png
InstallerMenuWidget: INSTALL_PANEL

View File

@@ -0,0 +1,6 @@
english:
english: English
ready: READY
on-hold: ON HOLD
requires: Requires {0}

View File

@@ -136,6 +136,9 @@ Music:
Movies:
Translations:
mods/ts/languages/english.yaml
LoadScreen: DefaultLoadScreen
Image: mods/ts/uibits/loadscreen.png
InstallerMenuWidget: INSTALL_PANEL