[RESOLVED] Studio error with "Display dummy translations"

Game development with Board Game Arena Studio
Post Reply
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

[RESOLVED] Studio error with "Display dummy translations"

Post 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}
Last edited by thoun on 18 January 2021, 11:38, edited 1 time in total.
User avatar
Nivvdiy
Posts: 13
Joined: 17 July 2018, 08:47

Re: Studio error with "Display dummy translations"

Post by Nivvdiy »

Hello,

How have you used the translation?
Can you show the part where you used the translation?
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: Studio error with "Display dummy translations"

Post 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.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Studio error with "Display dummy translations"

Post 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.
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: Studio error with "Display dummy translations"

Post by thoun »

It's fine now, thanks !
Post Reply

Return to “Developers”