Unable to update translations
I wanted to check if I can fix #30 (closed), but I can't build the project.
$ yarn install --pure-lockfile
Usage: yarn [options]
yarn: error: no such option: --pure-lockfile
I decided to skip that, since I'm only interested in the translation files right now. Building translations is failing too though, because the script is missing: gettext-extract: command not found
.
System: Linux Mint Mate 20.1
Command line log:
someuser@somepc:~/sources/joinpeertube (master)$ git remote add weblate https://weblate.framasoft.org/git/joinpeertube/main
someuser@somepc:~/sources/joinpeertube (master)$ git fetch weblate && git merge weblate/master
remote: Enumerating objects: 56, done.
remote: Counting objects: 100% (56/56), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 49 (delta 28), reused 0 (delta 0)
Unpacking objects: 100% (49/49), 120.18 KiB | 691.00 KiB/s, done.
From https://weblate.framasoft.org/git/joinpeertube/main
* [new branch] master -> weblate/master
* [new branch] weblate-joinpeertube-main -> weblate/weblate-joinpeertube-main
Updating 5e55027..a4fc652
Fast-forward
src/locale/gd/LC_MESSAGES/app.po | 3080 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/locale/it/LC_MESSAGES/app.po | 81 ++--
src/locale/sr_Cyrl/LC_MESSAGES/app.po | 3049 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/locale/sv/LC_MESSAGES/app.po | 94 ++++-
4 files changed, 6259 insertions(+), 45 deletions(-)
create mode 100644 src/locale/gd/LC_MESSAGES/app.po
create mode 100644 src/locale/sr_Cyrl/LC_MESSAGES/app.po
someuser@somepc:~/sources/joinpeertube (master)$ npm run i18n:update
> joinpeertube@0.1.0 i18n:update /media/someuser/Linux/sources/joinpeertube
> git fetch weblate && git merge weblate/master && rm -f src/locale/en_US/LC_MESSAGES/app.po && make clean && make makemessages && make translations
Already up to date.
rm -rf /tmp/template-someuser.pot
mkdir -p /tmp/
gettext-extract --removeHTMLWhitespaces --quiet --attribute v-translate --output /tmp/template-someuser.pot ./src/mixins/ContentSelectionsFR.js ./src/mixins/PluginSelectionsFR.js ./src/mixins/CommonMixins.js ./src/mixins/ContentSelectionsEN.js ./src/mixins/PluginSelectionsEN.js ./src/components/SepiaSearchImage.vue ./src/components/I18n.vue ./src/components/ContentSelection.vue ./src/components/Header.vue ./src/components/InstanceCard.vue ./src/components/AccordionElement.vue ./src/components/roadmap/ShareAndFollow.vue ./src/components/roadmap/MoreInfos.vue ./src/components/roadmap/DonateForm.vue ./src/components/roadmap/Team.vue ./src/components/PluginSelection.vue ./src/components/Footer.vue ./src/components/InstancesList.vue ./src/components/PluginsSelection.vue ./src/components/icons/IconRight.vue ./src/components/icons/IconFollowers.vue ./src/components/icons/IconAdd.vue ./src/components/icons/IconInstance.vue ./src/components/icons/IconQuota.vue ./src/components/icons/IconLogo.vue ./src/components/icons/IconChannel.vue ./src/components/icons/IconPlugin.vue ./src/components/icons/IconFollowing.vue ./src/components/icons/IconLanguages.vue ./src/components/icons/IconVideo.vue ./src/components/icons/IconSearch.vue ./src/components/ContentsSelection.vue ./src/App.vue ./src/views/NotFound.vue ./src/views/Hall-Of-Fame.vue ./src/views/All-Plugins-Selection.vue ./src/views/All-Contents-Selection.vue ./src/views/Roadmap-2020-Placeholder.vue ./src/views/Roadmap-2020.vue ./src/views/Home.vue ./src/views/Thank-You.vue ./src/views/Help.vue ./src/views/Instances.vue ./src/views/FAQ.vue ./src/views/News.vue ./src/data/coutries.js ./src/main.js
/bin/bash: gettext-extract: command not found
make: *** [Makefile:51: /tmp/template-someuser.pot] Error 127
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! joinpeertube@0.1.0 i18n:update: `git fetch weblate && git merge weblate/master && rm -f src/locale/en_US/LC_MESSAGES/app.po && make clean && make makemessages && make translations`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the joinpeertube@0.1.0 i18n:update script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/someuser/.npm/_logs/2021-03-04T11_49_19_099Z-debug.log