Page 1 of 1

[SOLVED] User preferences are not translated

Posted: 17 June 2018, 12:14
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

Re: User preferences are not translated

Posted: 18 June 2018, 16:28
by Een
Confirmed, there is something missing to manage translations for game specific user preferences.
I'll prepare a patch for this.

Re: User preferences are not translated

Posted: 18 June 2018, 22:06
by Woodruff
Thanks Een :)
I put the topic to solved then.