tests/projects/svghmi_i18n/svghmi_0@svghmi/fr_FR.po
author Edouard Tisserant <edouard@beremiz.fr>
Thu, 05 Dec 2024 13:56:59 +0100
changeset 4060 d2f5eb3c7d6e
parent 3416 53c66c4aefa3
permissions -rw-r--r--
py_ext: fix CSV Writer

fix POU logic :
- SAVE is a BOOL
- invocation of py_eval on rising edge of SAVE
- remove save python argument

fix python:
- use no encoding for file open (python2)
- re-use detected dialect if any
- use no "rt+" and truncate since no need to re-sniff dialect for output file
- return "OK" instead of "#SUCCESS", preventing POU logic to ACK result
- support creating new line if writing just after last line
- support appending data on short rows

fix example:
- use a HMI:Button to trigger CSV write instead of HMI:Input +1
- reload CSVs on on each new CSV opened in file browser
- add display of CSV write output
3132
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     1
# SOME DESCRIPTIVE TITLE.
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     2
# Copyright (C) YEAR ORGANIZATION
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     4
#
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     5
msgid ""
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     6
msgstr ""
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     7
"Project-Id-Version: \n"
3142
2637bb6a6bb0 SVGHMI: allow i18n of formated strings of HMI:Messages. This was by construction impossible since formating was given as an argument. Now added optional "format" labelled element in HMI:Display, so that it can be translated, when labelled "_format".
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 3132
diff changeset
     8
"POT-Creation-Date: 2021-02-14 18:36+CET\n"
2637bb6a6bb0 SVGHMI: allow i18n of formated strings of HMI:Messages. This was by construction impossible since formating was given as an argument. Now added optional "format" labelled element in HMI:Display, so that it can be translated, when labelled "_format".
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 3132
diff changeset
     9
"PO-Revision-Date: 2021-02-14 18:37+0100\n"
3132
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    10
"Last-Translator: \n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    11
"Language-Team: \n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    12
"Language: fr_FR\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    13
"MIME-Version: 1.0\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    14
"Content-Type: text/plain; charset=UTF-8\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    15
"Content-Transfer-Encoding: 8bit\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    16
"Generated-By: SVGHMI 1.0\n"
3142
2637bb6a6bb0 SVGHMI: allow i18n of formated strings of HMI:Messages. This was by construction impossible since formating was given as an argument. Now added optional "format" labelled element in HMI:Display, so that it can be translated, when labelled "_format".
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 3132
diff changeset
    17
"X-Generator: Poedit 2.4.2\n"
3132
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    18
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    19
3142
2637bb6a6bb0 SVGHMI: allow i18n of formated strings of HMI:Messages. This was by construction impossible since formating was given as an argument. Now added optional "format" labelled element in HMI:Display, so that it can be translated, when labelled "_format".
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 3132
diff changeset
    20
msgid "height is %d meters"
2637bb6a6bb0 SVGHMI: allow i18n of formated strings of HMI:Messages. This was by construction impossible since formating was given as an argument. Now added optional "format" labelled element in HMI:Display, so that it can be translated, when labelled "_format".
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 3132
diff changeset
    21
msgstr "la hauteur est de %d metres"
2637bb6a6bb0 SVGHMI: allow i18n of formated strings of HMI:Messages. This was by construction impossible since formating was given as an argument. Now added optional "format" labelled element in HMI:Display, so that it can be translated, when labelled "_format".
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 3132
diff changeset
    22
3132
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    23
msgid "This is an integer value : %d"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    24
msgstr "C'est un nombre entier : %d"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    25
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    26
msgid "Some \"other\" ČĆĐš english text"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    27
msgstr "De l'\"autre\" texte en français žfšŽŠĐĆČ"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    28
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    29
msgid ""
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    30
"Some english text\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    31
"another line\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    32
"a third one"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    33
msgstr ""
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    34
"Trois lignes en francais\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    35
"blah\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    36
"blah"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    37
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    38
#~ msgid "Some english text"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    39
#~ msgstr "Du texte en français"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    40
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    41
#~ msgid "Blah"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    42
#~ msgstr "Blup"