tests/projects/svghmi_i18n/svghmi_0@svghmi/sl_SI.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:38+0100\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
    10
"Last-Translator: \n"
3132
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    11
"Language-Team: \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
    12
"Language: sl_SI\n"
3132
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"
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
    18
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100>=3 && 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
    19
"%100<=4 ? 2 : 3);\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
    20
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
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
    22
msgstr "To je celo število %d m"
3132
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    23
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    24
msgid "This is an integer value : %d"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    25
msgstr "To je celo število %d"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    26
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    27
msgid "Some \"other\" ČĆĐš english text"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    28
msgstr "En drug angleški tekt"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    29
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    30
msgid ""
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    31
"Some english text\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    32
"another line\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    33
"a third one"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    34
msgstr ""
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    35
"En angleški tekst\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    36
"druga vrstica\n"
a1e2eff0bc58 SVGHMI: Add a simple i18n test
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    37
"tretja vrstica"