Skip to content

Commit ee3322d

Browse files
committed
Follow Transifex docs to prepare XLIFF source
1 parent a748782 commit ee3322d

File tree

3 files changed

+236
-1291
lines changed

3 files changed

+236
-1291
lines changed

src/Makefile.qt.include

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,9 @@ translate: $(srcdir)/qt/bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCO
360360
@test -n $(LUPDATE) || echo "lupdate is required for updating translations"
361361
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) -no-obsolete -I $(srcdir) -locations relative $^ -ts $(srcdir)/qt/locale/bitcoin_en.ts
362362
@test -n $(LCONVERT) || echo "lconvert is required for updating translations"
363-
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LCONVERT) -o $(srcdir)/qt/locale/bitcoin_en.xlf -i $(srcdir)/qt/locale/bitcoin_en.ts
363+
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LCONVERT) -drop-translations -o $(srcdir)/qt/locale/bitcoin_en.xlf -i $(srcdir)/qt/locale/bitcoin_en.ts
364+
@$(SED) -i.old -e 's|source-language="en" target-language="en"|source-language="en"|' -e '/<target xml:space="preserve"><\/target>/d' $(srcdir)/qt/locale/bitcoin_en.xlf
365+
@rm -f $(srcdir)/qt/locale/bitcoin_en.xlf.old
364366

365367
$(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
366368
@test -f $(RCC)

src/qt/locale/bitcoin_en.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Signing is only possible with addresses of the type &apos;legacy&apos;.</source>
317317
<context>
318318
<name>BitcoinApplication</name>
319319
<message>
320-
<location filename="../bitcoin.cpp" line="+420"/>
320+
<location filename="../bitcoin.cpp" line="+421"/>
321321
<source>Runaway exception</source>
322322
<translation type="unfinished"></translation>
323323
</message>
@@ -3197,7 +3197,7 @@ For more information on using this console, type %6.
31973197
<context>
31983198
<name>RecentRequestsTableModel</name>
31993199
<message>
3200-
<location filename="../recentrequeststablemodel.cpp" line="+30"/>
3200+
<location filename="../recentrequeststablemodel.cpp" line="+32"/>
32013201
<source>Date</source>
32023202
<translation type="unfinished">Date</translation>
32033203
</message>
@@ -4624,7 +4624,7 @@ Go to File &gt; Open Wallet to load a wallet.
46244624
<translation type="unfinished">Send Coins</translation>
46254625
</message>
46264626
<message>
4627-
<location line="+279"/>
4627+
<location line="+260"/>
46284628
<location line="+52"/>
46294629
<location line="+13"/>
46304630
<location line="+5"/>

0 commit comments

Comments
 (0)