Skip to content

Commit 5bb1279

Browse files
committed
update documentation and translations again
1 parent a4a0cf8 commit 5bb1279

File tree

13 files changed

+154
-50
lines changed

13 files changed

+154
-50
lines changed

docs/library/usocket.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,16 @@ Constants
138138
Note that you don't need to specify these in a call to `usocket.socket()`,
139139
because `SOCK_STREAM` socket type automatically selects `IPPROTO_TCP`, and
140140
`SOCK_DGRAM` - `IPPROTO_UDP`. Thus, the only real use of these constants
141-
is as an argument to `setsockopt()`.
141+
is as an argument to `usocket.socket.setsockopt()`.
142142

143143
.. data:: usocket.SOL_*
144144

145-
Socket option levels (an argument to `setsockopt()`). The exact
145+
Socket option levels (an argument to `usocket.socket.setsockopt()`). The exact
146146
inventory depends on a ``MicroPython port``.
147147

148148
.. data:: usocket.SO_*
149149

150-
Socket options (an argument to `setsockopt()`). The exact
150+
Socket options (an argument to `usocket.socket.setsockopt()`). The exact
151151
inventory depends on a ``MicroPython port``.
152152

153153
Constants specific to WiPy:

locale/circuitpython.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-10-11 17:02+1100\n"
11+
"POT-Creation-Date: 2018-10-11 22:08+1100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -2292,7 +2292,7 @@ msgstr ""
22922292
msgid "RTC calibration is not supported on this board"
22932293
msgstr ""
22942294

2295-
#: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2295+
#: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
22962296
msgid "no available NIC"
22972297
msgstr ""
22982298

locale/de_DE.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2018-10-11 14:16+1100\n"
10+
"POT-Creation-Date: 2018-10-11 22:08+1100\n"
1111
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
1212
"Last-Translator: Sebastian Plamauer\n"
1313
"Language-Team: \n"
@@ -2311,7 +2311,7 @@ msgstr ""
23112311
msgid "RTC calibration is not supported on this board"
23122312
msgstr ""
23132313

2314-
#: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2314+
#: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
23152315
msgid "no available NIC"
23162316
msgstr ""
23172317

locale/en_US.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2018-10-11 14:16+1100\n"
10+
"POT-Creation-Date: 2018-10-11 22:08+1100\n"
1111
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
1212
"Last-Translator: \n"
1313
"Language-Team: \n"
@@ -2292,7 +2292,7 @@ msgstr ""
22922292
msgid "RTC calibration is not supported on this board"
22932293
msgstr ""
22942294

2295-
#: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2295+
#: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
22962296
msgid "no available NIC"
22972297
msgstr ""
22982298

locale/es.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2018-10-11 14:16+1100\n"
10+
"POT-Creation-Date: 2018-10-11 22:08+1100\n"
1111
"PO-Revision-Date: 2018-08-24 22:56-0500\n"
1212
"Last-Translator: \n"
1313
"Language-Team: \n"
@@ -2340,7 +2340,7 @@ msgstr ""
23402340
msgid "RTC calibration is not supported on this board"
23412341
msgstr ""
23422342

2343-
#: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2343+
#: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
23442344
msgid "no available NIC"
23452345
msgstr ""
23462346

locale/fil.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2018-10-11 14:16+1100\n"
10+
"POT-Creation-Date: 2018-10-11 22:08+1100\n"
1111
"PO-Revision-Date: 2018-08-30 23:04-0700\n"
1212
"Last-Translator: Timothy <[email protected]>\n"
1313
"Language-Team: fil\n"
@@ -2358,7 +2358,7 @@ msgstr "Hindi supportado ang RTC sa board na ito"
23582358
msgid "RTC calibration is not supported on this board"
23592359
msgstr "RTC calibration ay hindi supportado ng board na ito"
23602360

2361-
#: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2361+
#: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
23622362
msgid "no available NIC"
23632363
msgstr ""
23642364

locale/fr.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: 0.1\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2018-10-11 17:02+1100\n"
10+
"POT-Creation-Date: 2018-10-11 22:08+1100\n"
1111
"PO-Revision-Date: 2018-08-14 11:01+0200\n"
1212
"Last-Translator: Pierrick Couturier <[email protected]>\n"
1313
"Language-Team: fr\n"
@@ -2354,7 +2354,7 @@ msgstr "RTC non supportée sur cette carte"
23542354
msgid "RTC calibration is not supported on this board"
23552355
msgstr "calibration de la RTC non supportée sur cette carte"
23562356

2357-
#: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2357+
#: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
23582358
#, fuzzy
23592359
msgid "no available NIC"
23602360
msgstr "busio.UART n'est pas disponible"
@@ -2522,10 +2522,10 @@ msgstr "'S' et 'O' ne sont pas des types de format supportés"
25222522
msgid "too many arguments provided with the given format"
25232523
msgstr "trop d'arguments fournis avec ce format"
25242524

2525-
#, fuzzy
2526-
#~ msgid "palette must be displayio.Palette"
2527-
#~ msgstr "la palette doit être longue de 32 octets"
2528-
25292525
#, fuzzy
25302526
#~ msgid "value_size must be power of two"
25312527
#~ msgstr "'len' doit être un multiple de 4"
2528+
2529+
#, fuzzy
2530+
#~ msgid "palette must be displayio.Palette"
2531+
#~ msgstr "la palette doit être longue de 32 octets"

locale/it_IT.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-10-11 14:15+1100\n"
11+
"POT-Creation-Date: 2018-10-11 22:08+1100\n"
1212
"PO-Revision-Date: 2018-10-02 16:27+0200\n"
1313
"Last-Translator: Enrico Paganin <[email protected]>\n"
1414
"Language-Team: \n"
@@ -2344,7 +2344,7 @@ msgstr "RTC non supportato su questa scheda"
23442344
msgid "RTC calibration is not supported on this board"
23452345
msgstr "calibrazione RTC non supportata su questa scheda"
23462346

2347-
#: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2347+
#: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
23482348
#, fuzzy
23492349
msgid "no available NIC"
23502350
msgstr "busio.UART non ancora implementato"

locale/pt_BR.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-10-11 14:17+1100\n"
11+
"POT-Creation-Date: 2018-10-11 22:08+1100\n"
1212
"PO-Revision-Date: 2018-10-02 21:14-0000\n"
1313
"Last-Translator: \n"
1414
"Language-Team: \n"
@@ -2299,7 +2299,7 @@ msgstr "O RTC não é suportado nesta placa"
22992299
msgid "RTC calibration is not supported on this board"
23002300
msgstr "A calibração RTC não é suportada nesta placa"
23012301

2302-
#: shared-bindings/socket/__init__.c:428 shared-module/network/__init__.c:64
2302+
#: shared-bindings/socket/__init__.c:516 shared-module/network/__init__.c:64
23032303
msgid "no available NIC"
23042304
msgstr ""
23052305

shared-bindings/network/__init__.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,23 @@
3636

3737
#include "shared-bindings/network/__init__.h"
3838

39+
#if MICROPY_PY_NETWORK
40+
3941
//| :mod:`network` --- Network Interface Management
4042
//| ===============================================
4143
//|
4244
//| .. module:: network
4345
//| :synopsis: Network Interface Management
4446
//| :platform: SAMD
45-
46-
#if MICROPY_PY_NETWORK
47-
48-
/// \module network - network configuration
49-
///
50-
/// This module provides a registry of configured NICs.
47+
//|
48+
//| This module provides a registry of configured NICs.
49+
//| It is used by the 'socket' module to look up a suitable
50+
//| NIC when a socket is created.
51+
//|
52+
//| .. function:: route
53+
//|
54+
//| Returns a list of all configured NICs.
55+
//|
5156

5257
STATIC mp_obj_t network_route(void) {
5358
return MP_OBJ_FROM_PTR(&MP_STATE_PORT(mod_network_nic_list));

0 commit comments

Comments
 (0)