mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
fix(l10n): fix strings extraction
- handle `SOURCES` recursively, rather than spelling all the paths out; most of them were outdated and some still missing - let the Python script skip existing translations (in case we need to manually add plurals) - updated qml_en.ts as a result of these changes Stats: ``` Updating '../../ui/i18n/qml_en.ts'... Found 1703 source text(s) (109 new and 1594 already existing) Kept 35 obsolete entries Same-text heuristic provided 35 translation(s) ```
This commit is contained in:
parent
89f42c9fc3
commit
639a70b611
@ -15,6 +15,7 @@ def fixupTranslations(enTsFile: str):
|
|||||||
for messageNode in messageNodes:
|
for messageNode in messageNodes:
|
||||||
enString = messageNode.find('source').text
|
enString = messageNode.find('source').text
|
||||||
trNode = messageNode.find('translation')
|
trNode = messageNode.find('translation')
|
||||||
|
if not trNode.text:
|
||||||
trNode.text = enString # add translation
|
trNode.text = enString # add translation
|
||||||
trNode.attrib = {} # remove 'type="unfinished"'
|
trNode.attrib = {} # remove 'type="unfinished"'
|
||||||
|
|
||||||
|
3310
ui/i18n/qml_en.ts
3310
ui/i18n/qml_en.ts
File diff suppressed because it is too large
Load Diff
@ -13,41 +13,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
lupdate_only{
|
lupdate_only{
|
||||||
SOURCES = *.qml \
|
SOURCES += $$files("$$PWD/*.qml", true)
|
||||||
app/*.qml \
|
SOURCES += $$files("$$PWD/*.js", true)
|
||||||
imports/*.qml \
|
|
||||||
imports/shared/*.qml \
|
|
||||||
imports/shared/controls/*.qml \
|
|
||||||
imports/shared/keycard/*.qml \
|
|
||||||
imports/shared/panels/*.qml \
|
|
||||||
imports/shared/popups/*.qml \
|
|
||||||
imports/shared/status/*.qml \
|
|
||||||
imports/shared/views/*.qml \
|
|
||||||
app/AppLayouts/*.qml \
|
|
||||||
app/AppLayouts/Browser/*.qml \
|
|
||||||
app/AppLayouts/Chat/*.qml \
|
|
||||||
app/AppLayouts/Chat/CommunityComponents/*.qml \
|
|
||||||
app/AppLayouts/Chat/ChatColumn/*.qml \
|
|
||||||
app/AppLayouts/Chat/ChatColumn/ChatComponents/*.qml \
|
|
||||||
app/AppLayouts/Chat/ChatColumn/MessageComponents/*.qml \
|
|
||||||
app/AppLayouts/Chat/ChatColumn/MessageComponents/TransactionComponents/*.qml \
|
|
||||||
app/AppLayouts/CommunitiesPortalLayout/*.qml \
|
|
||||||
app/AppLayouts/Chat/ContactsColumn/*.qml \
|
|
||||||
app/AppLayouts/Chat/components/*.qml \
|
|
||||||
app/AppLayouts/Node/*.qml \
|
|
||||||
app/AppLayouts/Profile/*.qml \
|
|
||||||
app/AppLayouts/Profile/LeftTab/*.qml \
|
|
||||||
app/AppLayouts/Profile/LeftTab/components/*.qml \
|
|
||||||
app/AppLayouts/Profile/Sections/*.qml \
|
|
||||||
app/AppLayouts/Profile/Sections/BrowserModals/*.qml \
|
|
||||||
app/AppLayouts/Profile/Sections/Contacts/*.qml \
|
|
||||||
app/AppLayouts/Profile/Sections/Data/*.qml \
|
|
||||||
app/AppLayouts/Profile/Sections/Ens/*.qml \
|
|
||||||
app/AppLayouts/Profile/Sections/Privileges/*.qml \
|
|
||||||
app/AppLayouts/Wallet/*.qml \
|
|
||||||
app/AppLayouts/Wallet/components/*.qml \
|
|
||||||
app/AppLayouts/Wallet/components/collectiblesComponents/*.qml \
|
|
||||||
app/AppLayouts/Wallet/data/Currencies.qml \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Other *.ts files will be provided by Lokalise platform
|
# Other *.ts files will be provided by Lokalise platform
|
||||||
|
Loading…
x
Reference in New Issue
Block a user