X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=5e22966abf2fdb9f815627f076b962b95a03e8bc;hp=76e3c72bd3a4028ee9b20d017f8572d4d4dd37e1;hb=e8cc9359e0330a4951224fbe1f2bc9bba02d7c7a;hpb=4504fa6c9ae69cbe9322e28fba9d98d1a6c08cc1 diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 76e3c72..5e22966 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -83,9 +83,11 @@ function multoval($mult) function dom_select_rules() { + GLOBAL $G_lang; + $ret = "\n"; @@ -262,6 +264,7 @@ class Bin5_table extends Table { function spawn(&$from) { + GLOBAL $G_lang; if (($thiz =& new Bin5_table()) == FALSE) return (FALSE); @@ -603,6 +606,8 @@ class Bin5_table extends Table { function rules_change(&$bri, $user, $rules_id_s) { + GLOBAL $G_lang; + // // Rules: update version following loaded tcode // @@ -657,7 +662,7 @@ class Bin5_table extends Table { if ($i < BIN5_PLAYERS_N) { // FIXME_LANG $msg = sprintf("L'utente %s voleva già usare le %s.", - xcape($user_cur->name), xcape(rules_id2descr($user_cur->rules_get()))); + xcape($user_cur->name), xcape(rules_id2descr($user_cur->rules_get(), $G_lang))); break; } @@ -669,7 +674,7 @@ class Bin5_table extends Table { if ($rules_tot < BIN5_PLAYERS_N) { // FIXME_LANG $msg = sprintf("L'utente %s vorrebbe usare le %s.", - xcape($user->name), xcape(rules_id2descr($rules_id))); + xcape($user->name), xcape(rules_id2descr($rules_id, $G_lang))); break; } @@ -1796,7 +1801,7 @@ function show_table_info(&$bri, &$table, $table_pos) // TAG: POINTS_MANAGEMENT $pnt_min = $table->points_n - MAX_POINTS < 0 ? 0 : $table->points_n - MAX_POINTS; - $noty = sprintf('

%s.

\n', xcape(ucfirst(rules_id2descr($table->rules->id_get())))); + $noty = sprintf('

%s.

\n', xcape(ucfirst(rules_id2descr($table->rules->id_get(), $G_lang)))); $noty .= sprintf(''); // Names.