Open Surge Forum

A fun 2D retro platformer inspired by Sonic games and a game creation system

You are not logged in.

Announcement

Our community has moved to Discord! https://discord.gg/w8JqM7m

#1 2012-10-08 20:38:28

MatheusRRR
Member
From: Rio de Janeiro, Brazil
Registered: 2012-10-05
Posts: 335
Website

[Suggestion] New Comand "on_language"

on_language
on_language language new state

This command would be very useful in the scene "donate" and early in the game. Even using other languages, these cutscenes is in English.

example

object ".Donate_Cutscene"
{
    requires 0.2.0

    state "main"
    {
        on_language "english" "1"
        on_language "cestina" "2"
        on_language "portugues" "3"
        ...
    }

    state "1"
    {
        ...
    }

    state "2"
    {
        ...
    }

    state "3"
    {
        ...
    }
}

Last edited by MatheusRRR (2012-10-08 22:50:28)

Offline

#2 2012-10-09 12:54:04

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: [Suggestion] New Comand "on_language"

I don't understand the motivation behind the request.

MatheusRRR wrote:

This command would be very useful in the scene "donate" and early in the game. Even using other languages, these cutscenes is in English.

It wouldn't.

The reason why the cutscenes are in english is because they simply haven't been translated yet.

Offline

#3 2012-10-09 17:06:10

MatheusRRR
Member
From: Rio de Janeiro, Brazil
Registered: 2012-10-05
Posts: 335
Website

Re: [Suggestion] New Comand "on_language"

Alexandre wrote:

I don't understand the motivation behind the request.

MatheusRRR wrote:

This command would be very useful in the scene "donate" and early in the game. Even using other languages, these cutscenes is in English.

It wouldn't.

The reason why the cutscenes are in english is because they simply haven't been translated yet.

ok

Offline

#4 2012-10-09 18:27:16

KZR
Member
Registered: 2010-07-14
Posts: 1,447
Website

Re: [Suggestion] New Comand "on_language"

yeah, every phrase in the game has a string defined in the language file, so for example:

english.lng

$HELLO_WORLD "hello world"

portuguese.lng

$HELLO_WORLD "olá mundo"

as you can see the string name is the same in both languages, only the text changes.


SD_sml.pngSeD_sml.pngLTot_W_sml.png
https://discord.gg/w8JqM7m ---> Open Surge's Discord server

Offline

#5 2012-10-09 21:02:49

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: [Suggestion] New Comand "on_language"

Offline

#6 2012-10-21 13:41:36

CharlyTx
Member
From: Wesnoth
Registered: 2011-01-15
Posts: 144
Website

Re: [Suggestion] New Comand "on_language"

MatheusRRR wrote:

on_language
on_language language new state

This command would be very useful in the scene "donate" and early in the game. Even using other languages, these cutscenes is in English.

example
object ".Donate_Cutscene"
{
    requires 0.2.0

    state "main"
    {
        on_language "english" "1"
        on_language "cestina" "2"
        on_language "portugues" "3"
        ...
    }

    state "1"
    {
        ...
    }

    state "2"
    {
        ...
    }

    state "3"
    {
        ...
    }
}
                        Last edited by MatheusRRR (2012-10-08 20:50:28)

                         Official Sonic X Blog Brazil

i think also it is not necessary because there are the language files that are used for this

the only reason i could see in the donation screen is in a situation where an user decides to donate, according to the language he/she speaks is the page/locale web address the game send to

Offline

#7 2012-10-22 00:44:23

svgmovement
Member
Registered: 2011-11-24
Posts: 209

Re: [Suggestion] New Comand "on_language"

CharlyTx wrote:

i think also it is not necessary because there are the language files that are used for this
the only reason i could see in the donation screen is in a situation where an user decides to donate, according to the language he/she speaks is the page/locale web address the game send to

Even then, the donate page could have a language select area. hmm


-- svgmovement

Offline

#8 2012-10-22 01:27:47

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: [Suggestion] New Comand "on_language"

when the game is run for the first time (try unpacking it to a new place), the game asks the user which language he or she prefers

Offline

#9 2012-10-22 14:45:44

CharlyTx
Member
From: Wesnoth
Registered: 2011-01-15
Posts: 144
Website

Re: [Suggestion] New Comand "on_language"

svgmovement wrote:
CharlyTx wrote:

i think also it is not necessary because there are the language files that are used for this
the only reason i could see in the donation screen is in a situation where an user decides to donate, according to the language he/she speaks is the page/locale web address the game send to

Even then, the donate page could have a language select area.

                        -- svgmovement

Certo! the donate web could have a lang select combobox

I tell you again I think the on_language command isn't necessary

Offline

#10 2012-10-22 14:47:11

CharlyTx
Member
From: Wesnoth
Registered: 2011-01-15
Posts: 144
Website

Re: [Suggestion] New Comand "on_language"

Alexandre wrote:

when the game is run for the first time (try unpacking it to a new place), the game asks the user which language he or she prefers

                        My homepage | Rapid brickset editor 2

I  computer science.

simply try erasing preferences.dat and the language select screens appears

Offline

Board footer

Powered by FluxBB  hosted by tuxfamily.org