Merge branch 'master' into production

This commit is contained in:
Nick Winter 2014-12-28 15:28:56 -08:00
commit 1d6d5fb2d1
6 changed files with 1182 additions and 6 deletions

View file

@ -16,12 +16,13 @@ module.exports = class LevelSetupManager extends CocoClass
super() super()
@supermodel = @options.supermodel ? new SuperModel() @supermodel = @options.supermodel ? new SuperModel()
@session = @options.session @session = @options.session
@loadLevel()
if @session if @session
@fillSessionWithDefaults() @fillSessionWithDefaults()
else else
@loadSession() @loadSession()
loadSession: -> loadLevel: ->
levelURL = "/db/level/#{@options.levelID}" levelURL = "/db/level/#{@options.levelID}"
@level = new Level().setURL levelURL @level = new Level().setURL levelURL
@level = @supermodel.loadModel(@level, 'level').model @level = @supermodel.loadModel(@level, 'level').model
@ -32,7 +33,8 @@ module.exports = class LevelSetupManager extends CocoClass
@loadModals() @loadModals()
onLevelSync.call @ if @level.loaded onLevelSync.call @ if @level.loaded
sessionURL = "#{levelURL}/session" loadSession: ->
sessionURL = "/db/level/#{@options.levelID}/session"
#sessionURL += "?team=#{@team}" if @options.team # TODO: figure out how to get the teams for multiplayer PVP hero style #sessionURL += "?team=#{@team}" if @options.team # TODO: figure out how to get the teams for multiplayer PVP hero style
@session = new LevelSession().setURL sessionURL @session = new LevelSession().setURL sessionURL
onSessionSync = -> onSessionSync = ->

View file

@ -329,6 +329,7 @@ module.exports = nativeDescription: "Italiano", englishDescription: "Italian", t
inventory: inventory:
choose_inventory: "Equipaggiamento" choose_inventory: "Equipaggiamento"
equipped_item: "In dotazione" equipped_item: "In dotazione"
# required_purchase_title: "Required"
available_item: "Disponibile" available_item: "Disponibile"
restricted_title: "Vietato" restricted_title: "Vietato"
should_equip: "(doppio clic per prendere)" should_equip: "(doppio clic per prendere)"
@ -715,7 +716,6 @@ module.exports = nativeDescription: "Italiano", englishDescription: "Italian", t
diplomat_join_pref_github: "Trova il file locale della tua lingua " diplomat_join_pref_github: "Trova il file locale della tua lingua "
diplomat_github_url: "su GitHub" diplomat_github_url: "su GitHub"
diplomat_join_suf_github: ", modificalo online e invia una richiesta di pull. Ricordati di segnare la casella qui sotto per essere aggiornato sugli sviluppi delle traduzioni!" diplomat_join_suf_github: ", modificalo online e invia una richiesta di pull. Ricordati di segnare la casella qui sotto per essere aggiornato sugli sviluppi delle traduzioni!"
more_about_diplomat: "Leggi di più su cosa vuol dire diventare un grande Diplomatico"
diplomat_subscribe_desc: "Ricevi messaggi email sullo sviluppo i18n e i livelli da tradurre." diplomat_subscribe_desc: "Ricevi messaggi email sullo sviluppo i18n e i livelli da tradurre."
ambassador_introduction: "Stiamo costruendo questa comunità, e voi siete i collegamenti. Abbiamo chat Olark, email e reti sociali con tanta gente con cui parlare ed aiutare a familiarizzare con il gioco, e da cui imparare. Se vuoi aiutare le persone a farsi coinvolgere e a divertirsi; se sei entrato nello spirito di CodeCombat e di dove stiamo andando, questa categoria può essere per te." ambassador_introduction: "Stiamo costruendo questa comunità, e voi siete i collegamenti. Abbiamo chat Olark, email e reti sociali con tanta gente con cui parlare ed aiutare a familiarizzare con il gioco, e da cui imparare. Se vuoi aiutare le persone a farsi coinvolgere e a divertirsi; se sei entrato nello spirito di CodeCombat e di dove stiamo andando, questa categoria può essere per te."
# ambassador_attribute_1: "Communication skills. Be able to identify the problems players are having and help them solve them. Also, keep the rest of us informed about what players are saying, what they like and don't like and want more of!" # ambassador_attribute_1: "Communication skills. Be able to identify the problems players are having and help them solve them. Also, keep the rest of us informed about what players are saying, what they like and don't like and want more of!"

View file

@ -62,4 +62,5 @@ module.exports =
'ur': { nativeDescription: 'اُردُو', englishDescription: 'Urdu' } 'ur': { nativeDescription: 'اُردُو', englishDescription: 'Urdu' }
'ms': { nativeDescription: 'Bahasa Melayu', englishDescription: 'Bahasa Malaysia' } 'ms': { nativeDescription: 'Bahasa Melayu', englishDescription: 'Bahasa Malaysia' }
'ca': { nativeDescription: 'Català', englishDescription: 'Catalan' } 'ca': { nativeDescription: 'Català', englishDescription: 'Catalan' }
'gl': { nativeDescription: 'Galego', englishDescription: 'Galician' } 'gl': { nativeDescription: 'Galego', englishDescription: 'Galician' }
'mk-MK': { nativeDescription: 'Македонски', englishDescription: 'Macedonian' }

1168
app/locale/mk-MK.coffee Normal file

File diff suppressed because it is too large Load diff

View file

@ -125,7 +125,7 @@ module.exports = nativeDescription: "Tiếng Việt", englishDescription: "Vietn
send_password: "Gởi mật mã khôi phục" send_password: "Gởi mật mã khôi phục"
# recovery_sent: "Recovery email sent." # recovery_sent: "Recovery email sent."
# items: items:
# primary: "Primary" # primary: "Primary"
# secondary: "Secondary" # secondary: "Secondary"
# armor: "Armor" # armor: "Armor"

View file

@ -63,7 +63,7 @@
vertical-align: top vertical-align: top
#spell-palette-help-button #spell-palette-help-button
margin: 16px 0px 4px margin: 30px 0px 4px
&.hero .properties &.hero .properties
@include flexbox() @include flexbox()
@ -101,3 +101,8 @@
#spell-palette-view #spell-palette-view
// Make sure we have enough room for at least two columns // Make sure we have enough room for at least two columns
padding-left: 12px padding-left: 12px
@media only screen and (max-width: 1555px)
#spell-palette-view #spell-palette-help-button
// Save vertical space when we don't have three columns (#2005).
margin-top: 16px