1
0
Fork 0
python-docs-fr/library/plistlib.po

223 lines
6.0 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
2022-03-23 17:40:12 +00:00
"POT-Creation-Date: 2022-03-23 18:39+0100\n"
2016-10-30 09:46:26 +00:00
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: library/plistlib.rst:2
2020-07-20 08:56:42 +00:00
msgid ":mod:`plistlib` --- Generate and parse Apple ``.plist`` files"
2016-10-30 09:46:26 +00:00
msgstr ""
#: library/plistlib.rst:11
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/plistlib.py`"
msgstr "**Code source :** :source:`Lib/plistlib.py`"
#: library/plistlib.rst:19
2016-10-30 09:46:26 +00:00
msgid ""
2022-03-23 17:40:12 +00:00
"This module provides an interface for reading and writing the \"property "
"list\" files used by Apple, primarily on macOS and iOS. This module supports "
2020-07-20 08:56:42 +00:00
"both binary and XML plist files."
2016-10-30 09:46:26 +00:00
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:23
2016-10-30 09:46:26 +00:00
msgid ""
"The property list (``.plist``) file format is a simple serialization "
"supporting basic object types, like dictionaries, lists, numbers and "
"strings. Usually the top level object is a dictionary."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:27
2016-10-30 09:46:26 +00:00
msgid ""
"To write out and to parse a plist file, use the :func:`dump` and :func:"
"`load` functions."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:30
2016-10-30 09:46:26 +00:00
msgid ""
"To work with plist data in bytes objects, use :func:`dumps` and :func:"
"`loads`."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:33
2016-10-30 09:46:26 +00:00
msgid ""
"Values can be strings, integers, floats, booleans, tuples, lists, "
2020-07-20 08:56:42 +00:00
"dictionaries (but only with string keys), :class:`bytes`, :class:`bytearray` "
"or :class:`datetime.datetime` objects."
2016-10-30 09:46:26 +00:00
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:37
2016-10-30 09:46:26 +00:00
msgid "New API, old API deprecated. Support for binary format plists added."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:40
2019-09-04 09:35:23 +00:00
msgid ""
"Support added for reading and writing :class:`UID` tokens in binary plists "
"as used by NSKeyedArchiver and NSKeyedUnarchiver."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:44
msgid "Old API removed."
msgstr ""
#: library/plistlib.rst:49
2016-10-30 09:46:26 +00:00
msgid ""
2018-06-28 13:32:56 +00:00
"`PList manual page <https://developer.apple.com/library/content/"
"documentation/Cocoa/Conceptual/PropertyLists/>`_"
2016-10-30 09:46:26 +00:00
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:50
2016-10-30 09:46:26 +00:00
msgid "Apple's documentation of the file format."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:53
2016-10-30 09:46:26 +00:00
msgid "This module defines the following functions:"
msgstr "Ce module définit les fonctions suivantes :"
2016-10-30 09:46:26 +00:00
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:57
2016-10-30 09:46:26 +00:00
msgid ""
"Read a plist file. *fp* should be a readable and binary file object. Return "
"the unpacked root object (which usually is a dictionary)."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:61
2016-10-30 09:46:26 +00:00
msgid "The *fmt* is the format of the file and the following values are valid:"
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:63
2016-10-30 09:46:26 +00:00
msgid ":data:`None`: Autodetect the file format"
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:65
2016-10-30 09:46:26 +00:00
msgid ":data:`FMT_XML`: XML file format"
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:67
2016-10-30 09:46:26 +00:00
msgid ":data:`FMT_BINARY`: Binary plist format"
msgstr ""
#: library/plistlib.rst:69
2016-10-30 09:46:26 +00:00
msgid ""
"The *dict_type* is the type used for dictionaries that are read from the "
2018-06-28 13:32:56 +00:00
"plist file."
2016-10-30 09:46:26 +00:00
msgstr ""
#: library/plistlib.rst:72
2016-10-30 09:46:26 +00:00
msgid ""
"XML data for the :data:`FMT_XML` format is parsed using the Expat parser "
"from :mod:`xml.parsers.expat` -- see its documentation for possible "
"exceptions on ill-formed XML. Unknown elements will simply be ignored by "
"the plist parser."
msgstr ""
#: library/plistlib.rst:77
2016-10-30 09:46:26 +00:00
msgid ""
"The parser for the binary format raises :exc:`InvalidFileException` when the "
"file cannot be parsed."
msgstr ""
#: library/plistlib.rst:85
2016-10-30 09:46:26 +00:00
msgid ""
"Load a plist from a bytes object. See :func:`load` for an explanation of the "
"keyword arguments."
msgstr ""
#: library/plistlib.rst:93
2016-10-30 09:46:26 +00:00
msgid ""
"Write *value* to a plist file. *Fp* should be a writable, binary file object."
msgstr ""
#: library/plistlib.rst:96
2016-10-30 09:46:26 +00:00
msgid ""
"The *fmt* argument specifies the format of the plist file and can be one of "
"the following values:"
msgstr ""
#: library/plistlib.rst:99
2016-10-30 09:46:26 +00:00
msgid ":data:`FMT_XML`: XML formatted plist file"
msgstr ""
#: library/plistlib.rst:101
2016-10-30 09:46:26 +00:00
msgid ":data:`FMT_BINARY`: Binary formatted plist file"
msgstr ""
#: library/plistlib.rst:103
2016-10-30 09:46:26 +00:00
msgid ""
"When *sort_keys* is true (the default) the keys for dictionaries will be "
"written to the plist in sorted order, otherwise they will be written in the "
"iteration order of the dictionary."
msgstr ""
#: library/plistlib.rst:107
2016-10-30 09:46:26 +00:00
msgid ""
"When *skipkeys* is false (the default) the function raises :exc:`TypeError` "
"when a key of a dictionary is not a string, otherwise such keys are skipped."
msgstr ""
#: library/plistlib.rst:110
2016-10-30 09:46:26 +00:00
msgid ""
"A :exc:`TypeError` will be raised if the object is of an unsupported type or "
"a container that contains objects of unsupported types."
msgstr ""
#: library/plistlib.rst:113
2016-10-30 09:46:26 +00:00
msgid ""
"An :exc:`OverflowError` will be raised for integer values that cannot be "
"represented in (binary) plist files."
msgstr ""
#: library/plistlib.rst:121
2016-10-30 09:46:26 +00:00
msgid ""
"Return *value* as a plist-formatted bytes object. See the documentation for :"
"func:`dump` for an explanation of the keyword arguments of this function."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:128
2016-10-30 09:46:26 +00:00
msgid "The following classes are available:"
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:132
2019-09-04 09:35:23 +00:00
msgid ""
"Wraps an :class:`int`. This is used when reading or writing NSKeyedArchiver "
"encoded data, which contains UID (see PList manual)."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:135
2019-09-04 09:35:23 +00:00
msgid ""
"It has one attribute, :attr:`data`, which can be used to retrieve the int "
"value of the UID. :attr:`data` must be in the range ``0 <= data < 2**64``."
2019-09-04 09:35:23 +00:00
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:141
2016-10-30 09:46:26 +00:00
msgid "The following constants are available:"
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:145
2016-10-30 09:46:26 +00:00
msgid "The XML format for plist files."
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:152
2016-10-30 09:46:26 +00:00
msgid "The binary format for plist files"
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:158
2016-10-30 09:46:26 +00:00
msgid "Examples"
msgstr "Exemples"
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:160
2016-10-30 09:46:26 +00:00
msgid "Generating a plist::"
msgstr ""
2020-07-20 08:56:42 +00:00
#: library/plistlib.rst:180
2016-10-30 09:46:26 +00:00
msgid "Parsing a plist::"
msgstr ""