Bump Cockpit pkg/lib to 249

Cockpit 247 changed cockpit-po-plugin.js to always expect a line number
in msgid references [1]. Also sync manifest2po from Cockpit 249 to
generate that reference for manifests, so that they keep getting
included into the translation js.

[1] 0ecc3a705d
This commit is contained in:
Martin Pitt 2021-07-23 08:23:42 +02:00 committed by Katerina Koukiou
parent 0016765d01
commit 3d227bcb36
3 changed files with 5 additions and 5 deletions

View file

@ -154,7 +154,7 @@ test/common:
# checkout Cockpit's PF/React/build library; again this has no API stability guarantee, so check out a stable tag # checkout Cockpit's PF/React/build library; again this has no API stability guarantee, so check out a stable tag
$(LIB_TEST): $(LIB_TEST):
flock Makefile sh -ec '\ flock Makefile sh -ec '\
git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 242; \ git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 249; \
git checkout --force FETCH_HEAD -- pkg/lib; \ git checkout --force FETCH_HEAD -- pkg/lib; \
git reset -- pkg/lib' git reset -- pkg/lib'
mv pkg/lib src/ && rmdir -p pkg mv pkg/lib src/ && rmdir -p pkg

View file

@ -22,7 +22,7 @@ msgstr "Cockpit Bausatz"
msgid "Running on $0" msgid "Running on $0"
msgstr "Läuft auf $0" msgstr "Läuft auf $0"
#: src/manifest.json #: src/manifest.json:0
msgid "Starter Kit" msgid "Starter Kit"
msgstr "Bausatz" msgstr "Bausatz"

View file

@ -100,7 +100,7 @@ function process_keywords(keywords) {
v.matches.forEach(keyword => v.matches.forEach(keyword =>
push({ push({
msgid: keyword, msgid: keyword,
locations: [ filename ] locations: [ filename + ":0" ]
}) })
); );
}); });
@ -110,7 +110,7 @@ function process_docs(docs) {
docs.forEach(doc => { docs.forEach(doc => {
push({ push({
msgid: doc.label, msgid: doc.label,
locations: [ filename ] locations: [ filename + ":0" ]
}) })
}); });
} }
@ -120,7 +120,7 @@ function process_menu(menu) {
if (menu[m].label) { if (menu[m].label) {
push({ push({
msgid: menu[m].label, msgid: menu[m].label,
locations: [ filename ] locations: [ filename + ":0" ]
}); });
} }
if (menu[m].keywords) if (menu[m].keywords)