Grammalecte  Check-in [86a861f07a]

Overview
Comment:[build] use fileFile with files copied from folders
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256: 86a861f07aadceeacde29bf12ad9c00c1ce21c57fa50ccad85c1a7ed2c973c3d
User & Date: olr on 2019-09-07 22:44:51
Original Comment: [build] use fileFile with files copied form folders
Other Links: manifest | tags
Context
2019-09-08
15:59
[graphspell] suggest: code simplification check-in: dbcb7ad1a9 user: olr tags: trunk, graphspell
2019-09-07
22:44
[build] use fileFile with files copied from folders check-in: 86a861f07a user: olr tags: trunk, build
22:44
[fr] ajustemets et faux positif check-in: bb69de77c9 user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/oxt/About/About.py from [fbcf41e9ef] to [eb41943f0c].

1
2
3
4
5
6
7
8

1
2
3
4
5
6
7
-







# -*- coding: utf8 -*-
# About dialog
# by Olivier R.
# License: MPL 2

import unohelper
import uno
import traceback

Modified gc_lang/fr/oxt/About/ab_strings.py from [251411e233] to [c192c50bdb].

1

2
3
4
5
6
7
8

1
2
3
4
5
6
7
8
-
+







# -*- encoding: UTF-8 -*-
# About strings

def getUI (sLang):
    if sLang in dStrings:
        return dStrings[sLang]
    return dStrings["fr"]

dStrings = {

Modified make.py from [47a1201999] to [b49201a58a].

1

2
3
4
5
6
7
8

1
2
3
4
5
6
7
8
-
+







 #!/usr/bin/env python3
#!/usr/bin/env python3
# coding: UTF-8

"""
Grammalecte builder
"""

import sys
122
123
124
125
126
127
128



129

130
131
132
133
134
135
136
122
123
124
125
126
127
128
129
130
131

132
133
134
135
136
137
138
139







+
+
+
-
+








    ## ADDONS OXT
    print("+ OXT: ", end="")
    for spfSrc, spfDst in dOxt.items():
        print(spfSrc, end=", ")
        if os.path.isdir(spLang+'/'+spfSrc):
            for sf in os.listdir(spLang+'/'+spfSrc):
                if sf.endswith(('.txt', '.py')):
                    hZip.writestr(spfDst+"/"+sf, helpers.fileFile(spLang+'/'+spfSrc+"/"+sf, dVars))
                else:
                hZip.write(spLang+'/'+spfSrc+"/"+sf, spfDst+"/"+sf)
                    hZip.write(spLang+'/'+spfSrc+"/"+sf, spfDst+"/"+sf)
        else:
            if spfSrc.endswith(('.txt', '.py')):
                hZip.writestr(spfDst, helpers.fileFile(spLang+'/'+spfSrc, dVars))
            else:
                hZip.write(spLang+'/'+spfSrc, spfDst)
    print()
    hZip.close()