teaching message and fr

This commit is contained in:
Sander Land committed 2020-06-02 21:19:26 +02:00
1 parent 356838c3eb
commit fcb0eb98c3
10 files changed
+28 -8

No files matched your search

+4
View File
@@ -127,6 +127,10 @@ In addition to shortcuts mentioned above and those shown in the main menu:
## <a name="support"></a> Support / Contribute
![GitHub issues](https://img.shields.io/github/issues/sanderland/katrain)
![GitHub contributors](https://img.shields.io/github/contributors/sanderland/katrain?label=github%20contributors)
![Liberapay Patrons](https://img.shields.io/liberapay/patrons/KaTrain)
![Github sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=dcb424&link=https://github.com/sponsors/sanderland/)
* Donations for improving and promoting KaTrain are taken supported through [Liberapay](https://liberapay.com/KaTrain/).
* You also can contact me on [discord](https://discord.gg/AjTPFpN) (Sander#3278), [KakaoTalk](https://open.kakao.com/o/gTsMJCac)
+1 -4
View File
@@ -371,20 +371,17 @@ class Game:
while i < len(thresholds) and points_lost < thresholds[i]:
i += 1
num_undos = num_undo_prompts[i] if i < len(num_undo_prompts) else 0
xmsg = ". Please try once more"
if num_undos == 0:
undo = False
elif num_undos < 1: # probability
undo = int(node.undo_threshold < num_undos) and len(node.parent.children) == 1
else:
undo = len(node.parent.children) <= num_undos
if len(node.parent.children) < num_undos:
xmsg = ". Please try again (multiple tries remaining)."
node.auto_undo = undo
if undo:
self.undo(1)
self.katrain.controls.set_status(
f"Undid move {move.gtp()} as it lost {points_lost:.1f} points{xmsg}. Hover over the move to see expected refutation."
i18n._("teaching undo message").format(move=move.gtp(), points_lost=points_lost)
)
self.katrain.update_state()
Binary file not shown.
@@ -105,6 +105,11 @@ msgstr "Force AI Move"
msgid "pass-button-text"
msgstr "Pass"
msgid "teaching undo message"
msgstr ""
"Undid move {move} as it lost {points_lost:.1f} points. Hover over the move "
"to see expected refutation. Please try again."
msgid "ai-ponder"
msgstr ""
"This simply indicates the Engine status, going from green (idle) to orange "
Binary file not shown.
@@ -81,7 +81,7 @@ msgstr ""
msgid "analysis:policy"
msgstr ""
"Coups\n"
"instinctifs"
"intuitifs"
msgid "analysis:territory"
msgstr ""
@@ -205,7 +205,7 @@ msgstr "Séquence attendue : {pv}"
msgid "Info:policy rank"
msgstr ""
"Ce coup était classé n°{rank} d'un point de vue instinctif "
"Ce coup était classé n°{rank} d'un point de vue intuitif "
"({probability:.2%})."
msgid "Info:policy best"
@@ -501,7 +501,7 @@ msgstr ""
"target_score."
msgid "ai:scoreloss"
msgstr "Laxiste"
msgstr "Décontracté"
msgid "aihelp:scoreloss"
msgstr ""
@@ -512,7 +512,7 @@ msgstr ""
"(cf. Paramètres généraux)"
msgid "ai:policy"
msgstr "Instinctif"
msgstr "Intuitif"
msgid "aihelp:policy"
msgstr ""
@@ -588,3 +588,8 @@ msgstr ""
"TOUTES les options sont \n"
"sauvegardées dans : \n"
"{file}"
msgid "teaching undo message"
msgstr ""
"Le coup {move} a été annulé car il perdait {points_lost:.1f} points. "
"Survoler le coup pour voir la réfutation. Veuillez jouer un nouveau coup."
Binary file not shown.
@@ -521,3 +521,8 @@ msgstr ""
msgid "config file path"
msgstr "ㅋㅋAll options are saved in {file}"
msgid "teaching undo message"
msgstr ""
"ㅋㅋUndid move {move} as it lost {points_lost:.1f} points. Hover over the move"
" to see expected refutation. Please try again."
Binary file not shown.
@@ -531,3 +531,7 @@ msgid "aihelp:p:territory"
msgstr ""
"`threshold`선 밑의 수를 더 많이 뽑은 후 그 중 최선의 수를 둡니다. `line_weight`을 증가시키면 바둑판 중앙에 있는"
" 수를 더욱 꺼리게 됩니다. 판이 `endgame` 비율만큼 차면 평범하게 둡니다."
msgid "teaching undo message"
msgstr ""
"{points_lost:.1f}집 손해이므로 {move}을/를 물렀습니다. 커서를 올려 상대의 대응책을 보십시오. 다시 두어 주세요."