Search found 5 matches

by BaronBeule
12 October 2024, 11:53
Forum: Developers
Topic: clienttranslate does not work in php
Replies: 4
Views: 137

Re: clienttranslate does not work in php

thanks all for your quick reply, and yes 'wood' is a typo, it is a php variable and should be $wood ;-)
by BaronBeule
11 October 2024, 22:19
Forum: Developers
Topic: clienttranslate does not work in php
Replies: 4
Views: 137

clienttranslate does not work in php

I need no generate complex text by concatenation, but nothing works. I tried sprintf str_replace or this: self::notifyAllPlayers( "notifLog", clienttranslate( '${player_name} earns 1 x') . ' ' . wood . ' '. clienttranslate( 'Wood.') , array(... but it only works, if I use it in a static wa...
by BaronBeule
07 October 2024, 20:58
Forum: Developers
Topic: Translation Problem between material.inc.php and #game#.js
Replies: 3
Views: 143

Re: Translation Problem between material.inc.php and #game#.js

clienttranslate marks the text as translatable. Using it in the front with _(desc) should work, but desc alone isn't translated. thanks for your quick reply, but is it not translated twice? First time in the material.inc.php and the second time in the js-file (desc) ? What ever, i give it a try :-)
by BaronBeule
06 October 2024, 21:21
Forum: Developers
Topic: Translation Problem between material.inc.php and #game#.js
Replies: 3
Views: 143

Translation Problem between material.inc.php and #game#.js

In material.inc.php I have an array of cards: "desc" => clienttranslate("6 Points and 2 Special Points"). If I access this array in the js file with this.gamedatas.cards and render the "desc" in a div, the translation does not work?! Second question: How can I test tran...
by BaronBeule
15 September 2024, 21:44
Forum: "Alpha" games
Topic: Top 5 New games wanted: BZ
Replies: 1272
Views: 185089

Re: Top 5 New games wanted: BZ

I'm the developer of Lorenzo il Magnifico on bga. It is in private alpha since last week. So stay tuned ;-) It is coming soon..

Go to advanced search