D30469: messages/websites-hugo-kde
Alexander Becker
noreply at phabricator.kde.org
Fri Aug 15 07:14:21 BST 2025
bxela requested changes to this revision.
bxela added a comment.
This revision now requires changes to proceed.
Ich habe doch noch was gefunden, was auf jeden Fall korrigiert werden muss (siehe meinen Kommentar).
INLINE COMMENTS
> hugo-kde._static_.po:2
> +# SPDX-FileCopyrightText: 2021 Burkhard Lück <lueck at hube-lueck.de>
> +# SPDX-FileCopyrightText: 2022 2023 Frederik Schwarzer <schwarzer at kde.org>
> +# SPDX-FileCopyrightText: 2025 Philipp Kiemle <l10n at prly.mozmail.com>
Komma zwischen Jahreszahlen fehlt. Zum Vergleich: Lokalize erzeugt folgende Zeile mit Kommas zwischen den Jahreszahlen:
# SPDX-FileCopyrightText: 2022, 2024, 2025 Alois Spitzbart <spitz234 at hotmail.com>
Ich habe nachtgeschaut, woher das kommt. Es ist die gsub-Zeile, sie muss weg:
https://invent.kde.org/daphipz/translation-utils/-/blob/master/publish.sh?ref_type=heads#L97
Um die bereits falsch formatierte Zeilen in eingespielten Dateien nachträglich zu korrigieren, kann awk-Aufruf wie folgt ergänzen:
awk '
BEGIN { header = 1 }
/^msgid ""/ { header = 0 }
{
if (header == 1) {
if (match($0, /^# ([^<]+)<([^>]+)>, ([0-9]{4}(, [0-9]{4})*)\./, arr)) {
years = arr[3]
printf "# SPDX-FileCopyrightText: %s %s<%s>\n", years, arr[1], arr[2]
} else {
if (match($0, /(^# SPDX-FileCopyrightText:) ([0-9]{4}( [0-9]{4})*) (.*$)/, arr)) {
years = arr[2]
gsub(/ /, ", ", years)
printf "%s %s %s\n", arr[1], years, arr[4]
} else {
print $0
}
}
next
}
print $0
}
' "$dst" > "$tmp_spdx" && mv "$tmp_spdx" "$dst"
REPOSITORY
R883 Subversion
REVISION DETAIL
https://phabricator.kde.org/D30469
To: daphipz, kde-i18n-de, bxela
Cc: bxela, kde-i18n-de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-i18n-de/attachments/20250815/2a56d3d8/attachment-0001.htm>
More information about the kde-i18n-de
mailing list