Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Xfce scripts
#!/bin/bash
STARTTAG="$1"
ENDTAG="${2:-HEAD}"
git log --pretty=format:%s $1..$2 | \
grep "^I18n" | sed -E "s/.*translation (\w+) \(.*/\1/g" | sort | \
uniq | python -c "from icu import Locale
from fileinput import input
en = Locale('en')
list = []
for line in input():
list.append(Locale(line.strip()).getDisplayName(en))
list.sort()
for i in list:
print(i, end=', ')
print('\b\b ')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.