[SOLVED] User preferences are not translated

Game development with Board Game Arena Studio
Post Reply
User avatar
Woodruff
Posts: 412
Joined: 08 March 2014, 00:53

[SOLVED] User preferences are not translated

Post by Woodruff »

Hi,

I have noticed that user preferences defined in the gameoptions.inc.php does not get translated on the prod, even if a translation was proposed by the community. I notice that as well in games which are already officially released (example: Dice Forge).
The code I use in my game:

Code: Select all

$game_preferences = array(
    100 => array(
        'name' => totranslate('Card style'),
        'needReload' => false,
        'values' => array(
            1 => array('name' => totranslate('Classic deck')),
            2 => array('name' => totranslate('Optimised for web')),
            3 => array('name' => totranslate('French deck: Grimaud')),
            4 => array('name' => totranslate('German deck: Turkish costumes')),
            5 => array('name' => totranslate('Belgian deck: Animals')),
            6 => array('name' => totranslate('French deck: Printmaking'))
        )
    ),
    
    101 => array(
        'name' => totranslate('Turn order'),
        'needReload' => false,
        'values' => array(
            1 => array('name' => totranslate('Counterclockwise')),
            2 => array('name' => totranslate('Clockwise'))
        )
    ),
);
Do you know any workaround?

I reported this problem in the bug management system of BGA, because I think it's a problem in the mainsite, but maybe am I missing something?
https://fr.boardgamearena.com/#!bug?id=10306

Thanks!

Tcheby
Last edited by Woodruff on 18 June 2018, 22:06, edited 1 time in total.
User avatar
Een
Posts: 3854
Joined: 16 June 2010, 19:52

Re: User preferences are not translated

Post by Een »

Confirmed, there is something missing to manage translations for game specific user preferences.
I'll prepare a patch for this.
User avatar
Woodruff
Posts: 412
Joined: 08 March 2014, 00:53

Re: User preferences are not translated

Post by Woodruff »

Thanks Een :)
I put the topic to solved then.
Post Reply

Return to “Developers”