Grammalecte  Check-in [86a861f07a]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

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 2019-09-07 22:44:51
Original Comment: [build] use fileFile with files copied form folders
Context
2019-09-08
15:59
[graphspell] suggest: code simplification check-in: dbcb7ad1a9 user: olr tags: graphspell, trunk
2019-09-07
22:44
[build] use fileFile with files copied from folders check-in: 86a861f07a user: olr tags: build, trunk
22:44
[fr] ajustemets et faux positif check-in: bb69de77c9 user: olr tags: fr, trunk
Changes

Changes to gc_lang/fr/oxt/About/About.py.

1
2
3
4
5
6
7
8
# -*- coding: utf8 -*-
# About dialog
# by Olivier R.
# License: MPL 2

import unohelper
import uno
import traceback
<








1
2
3
4
5
6
7

# About dialog
# by Olivier R.
# License: MPL 2

import unohelper
import uno
import traceback

Changes to gc_lang/fr/oxt/About/ab_strings.py.

1
2
3
4
5
6
7
8
# -*- encoding: UTF-8 -*-

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

dStrings = {
|







1
2
3
4
5
6
7
8
# About strings

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

dStrings = {

Changes to make.py.

1
2
3
4
5
6
7
8
...
122
123
124
125
126
127
128



129
130
131
132
133
134
135
136
 #!/usr/bin/env python3
# coding: UTF-8

"""
Grammalecte builder
"""

import sys
................................................................................

    ## 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):



                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()
|







 







>
>
>
|







1
2
3
4
5
6
7
8
...
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/usr/bin/env python3
# coding: UTF-8

"""
Grammalecte builder
"""

import sys
................................................................................

    ## 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)
        else:
            if spfSrc.endswith(('.txt', '.py')):
                hZip.writestr(spfDst, helpers.fileFile(spLang+'/'+spfSrc, dVars))
            else:
                hZip.write(spLang+'/'+spfSrc, spfDst)
    print()
    hZip.close()