Use tde_l10n_prepare_xml macro instead of extractrc script #10

已合併
SlavekB 5 年之前 將 1 次代碼提交從 feat/replace-extractrc-by-macro 合併至 master
所有者

Because the new macro tde_l10n_prepare_xml provides the same extraction of strings, only in a way other than the extractrc script, there is the option to replace the extractrc script with the macro tde_l10n_prepare_xml.

The advantage is that xgettext will then generate location information corresponding directly to rows in the original XML file.

For interest: For multiple line strings, extractrc generates a location information, that points to the last line of text, while with the tde_10n_prepare_xml macro is generated location information, that points to the first line of text.

Because the new macro tde_l10n_prepare_xml provides the same extraction of strings, only in a way other than the extractrc script, there is the option to replace the extractrc script with the macro tde_l10n_prepare_xml. The advantage is that xgettext will then generate location information corresponding directly to rows in the original XML file. For interest: For multiple line strings, extractrc generates a location information, that points to the last line of text, while with the tde_10n_prepare_xml macro is generated location information, that points to the first line of text.
MicheleC approved these changes 5 年之前
MicheleC left a comment
所有者

looks good. I like the fact that the reference points to the first line instead of the last line 👍

looks good. I like the fact that the reference points to the first line instead of the last line :+1:
發佈者
所有者

Note0: For this PR, it is required that #9 be already merged.

Note1: If you want to test #8, #9 and #10 together, there are two small conflicts between #8 and #10, because #10 removes some of the parts that were changed in #8.

Note0: For this PR, it is required that #9 be already merged. Note1: If you want to test #8, #9 and #10 together, there are two small conflicts between #8 and #10, because #10 removes some of the parts that were changed in #8.
SlavekB closed this pull request 5 年之前
SlavekB 刪除分支 feat/replace-extractrc-by-macro 5 年之前
SlavekB 新增至R14.0.6 release 里程碑 5 年之前
The pull request has been merged as 3c40942680.
登入 才能加入這對話。
No reviewers
未選擇里程碑
No Assignees
2 參與者
訊息
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tde-cmake#10
Loading…
尚未有任何內容