Skip to content

Commit bd49363

Browse files
committed
πŸ§‘β€πŸ’» Language import adjustments
1 parent 4bb33a0 commit bd49363

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

β€ŽMarlin/src/lcd/language/language_pt_br.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ namespace LanguageNarrow_pt_br {
4141
LSTR MSG_MEDIA_ABORTING = _UxGT("Abortando...");
4242
LSTR MSG_MEDIA_INSERTED = _UxGT("CartΓ£o inserido");
4343
LSTR MSG_MEDIA_REMOVED = _UxGT("CartΓ£o removido");
44-
LSTR MSG_MEDIA_RELEASED = _UxGT("CartΓ£o liberado");
4544
LSTR MSG_MEDIA_WAITING = _UxGT("Aguardando cartΓ£o");
4645
LSTR MSG_MEDIA_READ_ERROR = _UxGT("Erro de leitura");
4746
LSTR MSG_MEDIA_USB_REMOVED = _UxGT("USB removido");

β€Žbuildroot/share/scripts/languageExport.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
#!/usr/bin/env python3
22
'''
3-
languageExport.py
3+
languageExport.py [--single]
44
55
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.
77
8+
Use --single to export all languages to a single CSV file.
89
'''
910

1011
import re
1112
from pathlib import Path
13+
from sys import argv
1214
from languageUtil import namebyid
1315

1416
LANGHOME = "Marlin/src/lcd/language"
1517

1618
# Write multiple sheets if true, otherwise write one giant sheet
17-
MULTISHEET = True
19+
MULTISHEET = '--single' not in argv[1:]
1820
OUTDIR = 'out-csv'
1921

2022
# Check for the path to the language files
@@ -28,7 +30,7 @@
2830

2931
# A dictionary to contain strings for each language.
3032
# Init with 'en' so English will always be first.
31-
language_strings = { 'en': 0 }
33+
language_strings = { 'en': {} }
3234

3335
# A dictionary to contain all distinct LCD string names
3436
names = {}

0 commit comments

Comments
Β (0)