Translate buttons#2
Conversation
pawel-lewtak
left a comment
There was a problem hiding this comment.
Parę zmian jest moim zdaniem koniecznych, część to po prostu sugestie innego tłumaczenia.
| called *inputs*. | ||
| Jak dotychczas utworzyliśmy kod umożliwiający urządzeniu pokazywanie czegoś. | ||
| Nazywa się to *wyjście*. Musimy też jednak umożliwić urządzeniu reagowanie na | ||
| zdarzenia. Nazywa się to *wejście*. |
There was a problem hiding this comment.
"Zdarzenia i wszystkie dane jakie dostaje urządzenie nazywamy wejściem" brzmi nieco lepiej.
| The most obvious means of input on the micro:bit are its two buttons, labelled | ||
| ``A`` and ``B``. Somehow, we need MicroPython to react to button presses. | ||
| Najbardziej oczywiste jest to, że wejściem będą dwa przyciski na mikrobicie, | ||
| które oznaczone są jako 'A' i 'B'. Potrzebujemy aby MicroPython jakoś |
There was a problem hiding this comment.
Zachowaj proszę formatowanie dla A i B
|
|
||
| The most obvious means of input on the micro:bit are its two buttons, labelled | ||
| ``A`` and ``B``. Somehow, we need MicroPython to react to button presses. | ||
| Najbardziej oczywiste jest to, że wejściem będą dwa przyciski na mikrobicie, |
There was a problem hiding this comment.
Najprostszym sposobem na dostarczenie informacji na wejściu są dwa przyciski...
There was a problem hiding this comment.
Raz jest "mikrobit", innym razem "micro:bit". Powinniśmy się trzymać jednej wersji.
There was a problem hiding this comment.
To zostawiam micro:bit, a dokładnie "na urządzeniu micro:bit"
| zareagował na naciśnięcie przycisku. | ||
|
|
||
| This is remarkably simple:: | ||
| To jest fenomenalnie proste: |
There was a problem hiding this comment.
"Jest to niezwykle proste"?
| All this script does is sleep for ten thousand milliseconds (i.e. 10 seconds) | ||
| and then scrolls the number of times you pressed button ``A``. That's it! | ||
| Cały skrypt jest uśpiony przez 10 000 milisekund (czyli 10 sekund) a po tym | ||
| czasie na wyświetlaczu przewinie się liczba ilości wciśnięć przycisku 'A'. |
|
|
||
| To jest podobne do języka angielskiego! | ||
|
|
||
| Metoda ``is_pressed`` generuje tylko dwa rezultaty: ``True`` albo ``False``. |
There was a problem hiding this comment.
generuje jeden z dwóch wyników
| To jest podobne do języka angielskiego! | ||
|
|
||
| Metoda ``is_pressed`` generuje tylko dwa rezultaty: ``True`` albo ``False``. | ||
| Jeżeli naciśniesz przycisk, to zwróci ``True``, w przeciwnym wypadku zwróci |
There was a problem hiding this comment.
Pierwszy przecinek zbędny.
| minę." Przerywamy wykonywanie pętli (zatrzymujemy uruchomiony w nieskończoność | ||
| program) za pomocą instrukcji ``braek``. | ||
|
|
||
| Na samym końcu, kiedy cyber-zwierzak nie żyje, wyczyśćmy ekran metodą |
There was a problem hiding this comment.
wyczyśćmy => czyścimy
| Na samym końcu, kiedy cyber-zwierzak nie żyje, wyczyśćmy ekran metodą | ||
| ``clear``. | ||
|
|
||
| Czy możesz pomyśleć o sposobie, aby ta gra była mniej tragiczna? Jak chciałbyś |
There was a problem hiding this comment.
chciałbyś => mógłbyś
| ``clear``. | ||
|
|
||
| Czy możesz pomyśleć o sposobie, aby ta gra była mniej tragiczna? Jak chciałbyś | ||
| sprawdzić, czy przyciski *both* zostały naciśnięte? (Podpowiedź: Python ma |
| All this script does is sleep for ten thousand milliseconds (i.e. 10 seconds) | ||
| and then scrolls the number of times you pressed button ``A``. That's it! | ||
| Cały skrypt jest uśpiony przez 10 000 milisekund (czyli 10 sekund) a po tym | ||
| czasie na wyświetlaczu przewinie się liczba ilości wciśnięć przycisku ``A``. |
There was a problem hiding this comment.
"liczba ilości" brzmi jak masło maślane. Sugeruję zostawić liczbę (bo tak jest moim zdaniem poprawnie: http://weekend.gazeta.pl/weekend/1,152121,16295932,Liczba_czy_ilosc__Zdania_sa_podzielone__Prof__Bralczyk.html), natomiast na pewno nie mogą być oba słowa obok siebie.
| displays characters, we need to convert the numeric value into a string of | ||
| characters. We do this with the ``str`` function (short for "string" ~ it | ||
| converts things into strings of characters). | ||
| #. Istnieje obiekt nazwany ``button_a`` i on pozwala ci pobrać liczbę |
There was a problem hiding this comment.
Powtórzenie "liczby", może: "...pozwala ci pobrać wartość określającą liczbę..."?
| This is called *nesting*. We use nesting to define blocks of code like this:: | ||
| Często potrzebujesz aby program poczekał na jakieś zdarzenie. Aby uzyskać | ||
| to musisz zamknąć odpowiedni kawałek kodu w pętli, który będzie miał | ||
| zdefiniowane w jaki sposób zareagować na oczekiwane zdarzenie takie, jak |
There was a problem hiding this comment.
Bez przecinku przed "jak"
| ``elif`` (short for "else if") and ``else``. These are called *conditionals* | ||
| and work like this:: | ||
| Czy widzisz jak sprawdzamy jakie przyciski są wciśnięte? Użyliśmy ``if`` (ang. jeśli), | ||
| ``elif`` (skrót od "else if") (ang. a jednak jeśli) oraz ``else`` (ang. inaczej). |
There was a problem hiding this comment.
Dziwnie brzmi tłumaczenie if/else w polskim języku, ale może dlatego że nie spotkałem się z nim do tej pory. Sprawdzałeś może jak to się tłumaczy w fachowej literaturze?
There was a problem hiding this comment.
Nie znalazłem, trochę szukałem i nic konkretnego. Sądzę, że może będzie to w jakichś książkach do podstaw Pythona. Tym czasem mam takie propozycje: "else if" to "jeśli jednak" oraz "else" to "w pozostałych przypadkach".
| przycisk A został naciśnięty, to pokaż szczęśliwą twarz, jeżeli przycisk B | ||
| został naciśnięty, to przerwij pętlę, a w przeciwnym wypadku pokaż smutną | ||
| minę." Przerywamy wykonywanie pętli (zatrzymujemy uruchomiony w nieskończoność | ||
| program) za pomocą instrukcji ``braek``. |
* Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Translation of gestures.rst (#1) * update gestures.rst - requested changes and minor corrections * update gestures.rst (#3) * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece.
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * Przetłumaczony plik radio.rst z dokumentacji (omyłkowo). Nie jestem pewnien lini 58 (preambuła) * Poprawione dwie literówki * Naniesione poprawki w pilku radio.rst
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * Przenioslem random.rst do wlasciwego brancza. * tlumaczenie tutoriala modulu Random * ziarno oraz literówki * poprawki od Radomira
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * Pierwsze tłumaczenie storage.rst. * poprawki od Radomira
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * Tłumaczenie dokumentacji bluetooth. * Trzy poprawki w ble.rst, według suestii Radomira.
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Translation of gestures.rst (#1) * update gestures.rst - requested changes and minor corrections * update gestures.rst (#3) * io.rst - first commit (#1) * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * translation of io.rst (#1) * literówki * poprawki od Radomira
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * Przetłumaczony plik direction, tym razem bez omułkowo dodanego pliku random.rst do gałęzi translate_direction. * literówka * literówka
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * First part * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Part two * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * kilka akapitów dalej * ostatnie akapity i poprawki. * poprawka formatowania * Poprawki od Radomira, zaakceptowane wszystkie oprócz jednej.
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * translate_movement ver 01 * translate_movement ver 01 poprawione literowki * brakujące słowo i podwójne spacje * Proponuję takie poprawki
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * translate_speech ver 01 * literówki * przetłumaczony jeden trudny akapit. * literówki i poprawki * kolejne poprawki * Poprawki od Radomira * Kolejne poprawki
* introduction for buttons * Translated 4 paragraphs of tutorial buttons * First translation for hello.rst * Few fixes for hello.rst * Final fixes * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Update hello.rst according to review comments Fixed as suggested by deshipu in deshipu#3 * Change translation of word "flash" * Grammar fix * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Translate buttons (#2) * introduction for buttons * Translated 4 paragraphs of tutorial buttons * half translated buttons page * next part of page buttons.rst * last part of translation buttons.rst * Corrections * one word chenged * changed; my propositions: else if -> jeśli jednak; else -> w pozostałych przypadkach * Poprawki od Radomira * Kolejne poprawki od Radomira + korekta literówek * Przywrócona właściwa wersja akapitu * tlumaczenie tutoriala modulu Random * Revert "tlumaczenie tutoriala modulu Random" This reverts commit fce2ece. * music _translate ver.01 * music _translate ver.01 poprawione literowki * mała poprawka formatowania i spacje * Poprawione według sugestii i 2 końcowe akapity zmieniłem. * Poprawki do dwóch końcowych akapitów * Jest "mówi po polsku" o to chodziło?
No description provided.