Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rpm-groups.pot #3

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Conversation

alexminton
Copy link
Contributor

Updated from the latest tumbleweed repo

Updated from the latest tumbleweed repo
@stanislav-brabec
Copy link
Collaborator

The patch is OK. Do we have some automation for it?

@stanislav-brabec stanislav-brabec merged commit 771f89c into yast:master Oct 13, 2016
@alexminton alexminton deleted the patch-1 branch October 17, 2016 08:53
@alexminton
Copy link
Contributor Author

Sure, the actual parser is just a one-liner in Bash, everything else is .po header and syntax. I used this script:
#!/bin/bash
echo "# This file was automatically generated";
echo "msgid """
echo "msgstr """
echo ""Project-Id-Version: rpm-groups\n""
echo ""Report-Msgid-Bugs-To: bugzilla.opensuse.org\n""
echo ""POT-Creation-Date: $(date "+%F %R%z")\n""
echo ""PO-Revision-Date: $(date "+%F %R%z")\n""
echo ""Last-Translator: Automatically generated\n""
echo ""Language-Team: openSUSE opensuse-translation@opensuse.org\n""
echo ""Language: en\n""
echo ""MIME-Version: 1.0\n""
echo ""Content-Type: text/plain; charset=UTF-8\n""
echo ""Content-Transfer-Encoding: 8bit\n""
echo "";
curl -s http://downloadcontent.opensuse.org/tumbleweed/repo/oss/suse/setup/descr/packages.gz | gzip -c -d | grep "=Grp: " | sed -e 's/=Grp: //g' | sed -e 's///\n/g' | sort -u | while IFS='' read -r line; do
[ -n "$line" ] && echo "msgid "$line"" && echo "msgstr """ && echo ""
done
exit 0

@stanislav-brabec
Copy link
Collaborator

ef46bfe

@lnussel
Copy link
Collaborator

lnussel commented May 16, 2017

note the susetags format will be removed in the near future. we only have repomd then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants