File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ namespace LanguageNarrow_pt_br {
41
41
LSTR MSG_MEDIA_ABORTING = _UxGT(" Abortando..." );
42
42
LSTR MSG_MEDIA_INSERTED = _UxGT(" CartΓ£o inserido" );
43
43
LSTR MSG_MEDIA_REMOVED = _UxGT(" CartΓ£o removido" );
44
- LSTR MSG_MEDIA_RELEASED = _UxGT(" CartΓ£o liberado" );
45
44
LSTR MSG_MEDIA_WAITING = _UxGT(" Aguardando cartΓ£o" );
46
45
LSTR MSG_MEDIA_READ_ERROR = _UxGT(" Erro de leitura" );
47
46
LSTR MSG_MEDIA_USB_REMOVED = _UxGT(" USB removido" );
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
'''
3
- languageExport.py
3
+ languageExport.py [--single]
4
4
5
5
Export LCD language strings to CSV files for easier translation.
6
- Use importTranslations .py to import CSV into the language files.
6
+ Use languageImport .py to import CSV into the language files.
7
7
8
+ Use --single to export all languages to a single CSV file.
8
9
'''
9
10
10
11
import re
11
12
from pathlib import Path
13
+ from sys import argv
12
14
from languageUtil import namebyid
13
15
14
16
LANGHOME = "Marlin/src/lcd/language"
15
17
16
18
# Write multiple sheets if true, otherwise write one giant sheet
17
- MULTISHEET = True
19
+ MULTISHEET = '--single' not in argv [ 1 :]
18
20
OUTDIR = 'out-csv'
19
21
20
22
# Check for the path to the language files
28
30
29
31
# A dictionary to contain strings for each language.
30
32
# Init with 'en' so English will always be first.
31
- language_strings = { 'en' : 0 }
33
+ language_strings = { 'en' : {} }
32
34
33
35
# A dictionary to contain all distinct LCD string names
34
36
names = {}
You canβt perform that action at this time.
0 commit comments