Page 1 of 1

[RESOLVED] Studio error with "Display dummy translations"

Posted: 17 January 2021, 15:33
by thoun
Hi !
I wanted to test translations before sending my first game to Alpha, but the test mechanism resulted in an error. Is it a problem on my game, or on the framework ?
Error while processing SQL request (Localhost via UNIX socket): INSERT INTO w_translation_history (trk_id, locale, str_translated, str_translation_date, validated) VALUES (27657, 'en_US', 'mow', NOW(), 1) Field 'str_translation_comment' doesn't have a default value

#0 /var/tournoi/release/tournoi-210114-1340/www/game/utility/scanSourceCodeForTranslations.game.php(201): APP_DbObject::DbQuery('INSERT INTO w_t...')
#1 /var/tournoi/release/tournoi-210114-1340/www/action/admin/studio.action.php(703): scanSourceCodeForTranslations->generate('mow')
#2 /var/tournoi/release/tournoi-210114-1340/www/include/webActionCore.inc.php(189): action_studio->generateDummyTranslations()
#3 /var/tournoi/release/tournoi-210114-1340/www/index.php(242): launchWebAction('admin', 'action_studio', 'generateDummyTr...', false, false, NULL, true, false)
#4 {main}

Re: Studio error with "Display dummy translations"

Posted: 17 January 2021, 18:05
by Nivvdiy
Hello,

How have you used the translation?
Can you show the part where you used the translation?

Re: Studio error with "Display dummy translations"

Posted: 18 January 2021, 10:37
by thoun
I don't have the translations yet, I just used

Code: Select all

self::_("My hand");
or

Code: Select all

clienttranslate('${player_name} plays ${displayedNumber} ${precision}')

with english sentences as written in the doc.
The pre-release checklist ask to use the "Display dummy translations" so I tried it, even if I don't have translations yet. I seems translations will be done after beta release, so I supposed this button should work even if the game doesn't have translation.

Re: Studio error with "Display dummy translations"

Posted: 18 January 2021, 10:42
by Een
The str_translation_comment column was set to not null by mistake after a column type conversion.
It has been fixed and should run fine now.

Re: Studio error with "Display dummy translations"

Posted: 18 January 2021, 11:38
by thoun
It's fine now, thanks !