translation-update-upstream/create-tlst-step1-list-all-po-projects.sh
Stanislav Brabec c97d19f7fc Accepting request 810690 from home:sbrabec:branches:Base:System
- Reset outdated translations and turn translate-update-upstream
  into dummy (bsc#1172337, boo#1172367).
- Drop SLE / Leap discrimination code.
- translation-update-upstream.in:
  * Disable msgmerge. Never cause translation regression, even at
    cost of superfluous strings (bsc#1160114).
  * Implement new heuristic: use xgettext. Make it the default
    (bsc#1160114).
  * translation-update-upstream-embedded.patch: Update.
- upstream-collect.sh supplementary script: Port
  translation-update-upstream.in changes.
- upstream-collect.sh supplementary script: Port meson support to
  the fallback pot extractor (bsc#1095368#c9).
- upstream-collect.sh, upstream-collect.conf supplementary script:
  Evaluate %is_opensuse for target system instead of host
  (bsc#1095368#c8).
- Update to version 20191002 (bsc#1095361, bsc#1095364,
  bsc#1095368, bsc#1095371, bsc#1095377, bsc#1095379):
  * Update configuration to be SLE15 SP1 Update compatible.
  * Add new upstream branches to tlst files.
  * Update create-tlst-step2-create-gnome_gtp.sh to cover new
    upstream branches.
  * Update all strings from upstream and LCN.
- upstream-collect.sh supplementary script: Make paths compatible
  with Tumbleweed.
- Update to version 20190328:
  * Translation updates.

OBS-URL: https://build.opensuse.org/request/show/810690
OBS-URL: https://build.opensuse.org/package/show/Base:System/translation-update-upstream?expand=0&rev=67
2020-06-02 00:40:50 +00:00

33 lines
768 B
Bash

#!/bin/bash
# This program searches for all active translations in the distro and
# does dumb guesses of project - domain relations.
#
# It needs access to distro RPMs.
#
set -o errexit
source ${0%create-tlst-step1-list-all-po-projects.sh}create-tlst.conf
for i in $BINARY_REPO/{$BINARY_ARCH,noarch}/*.rpm ; do rpm -q --queryformat=%{name} -p $i ; echo : ; rpm -qlp $i | grep LC_MESSAGES || : ; done |
sed "s~^$BINARY_REPO/($BINARY_ARCH|noarch)~~" >create-tlst-temp-all-po-files.lst
cat create-tlst-temp-all-po-files.lst |
sed '
/:$/ {
h
d
}
/LC_MESSAGES$/d
s:.*/LC_MESSAGES/::
/.*/ {
G
s/\(.*\)\.mo\n\(.*\):/\2 \1/
}
/kde3-i18n/d
' |
uniq |
LC_COLLATE=C LC_ALL= sort -u >create-tlst-temp-all-po-projects.lst
rm create-tlst-temp-all-po-files.lst