fixed POTFILES.in; updated italian translation

parent e1a8ee82
Pipeline #228111 passed with stage
in 10 minutes and 9 seconds
......@@ -5,7 +5,10 @@ data/ui/article_right_click_popover_content.glade
data/ui/empty_state.glade
data/ui/extra_popover_menu.glade
data/ui/headerbar.glade
data/ui/manage_tags_listbox_row_content.glade
data/ui/manage_tags_popover_content.glade
data/ui/menu.xml
data/ui/scrolled_label.glade
data/ui/shortcutsWindow.xml
data/ui/spinner_button.glade
data/ui/webview_filler.glade
......@@ -24,6 +27,7 @@ gfeeds/opml_manager.py
gfeeds/rss_parser.py
gfeeds/settings_window.py
gfeeds/sidebar.py
gfeeds/sidebar_row_popover.py
gfeeds/spinner_button.py
gfeeds/suggestion_bar.py
gfeeds/webview.py
This diff is collapsed.
......@@ -10,16 +10,16 @@ lang="$1"
rm *.pot
version=$(fgrep "version: " ../meson.build | grep -v "meson" | grep -o "'.*'" | sed "s/'//g")
version=$(fgrep -m 1 "version: " ../meson.build | grep -v "meson" | grep -o "'.*'" | sed "s/'//g")
find ../$APPNAME -iname "*.py" | xargs xgettext --package-name=$APPNAME --package-version=$version --from-code=UTF-8 --output=$APPNAME-python.pot
find ../data/ui -iname "*.glade" -or -iname "*.xml" | xargs xgettext --package-name=$APPNAME --package-version=$version --from-code=UTF-8 --output=$APPNAME-glade.pot -L Glade
find ../data/ui -iname "*.glade" -or -iname "*.xml" -or -iname "*.ui" | xargs xgettext --package-name=$APPNAME --package-version=$version --from-code=UTF-8 --output=$APPNAME-glade.pot -L Glade
find ../data/ -iname "*.desktop.in" | xargs xgettext --package-name=$APPNAME --package-version=$version --from-code=UTF-8 --output=$APPNAME-desktop.pot -L Desktop
find ../data/ -iname "*.appdata.xml.in" | xargs xgettext --no-wrap --package-name=$APPNAME --package-version=$version --from-code=UTF-8 --output=$APPNAME-appdata.pot
msgcat --use-first $APPNAME-python.pot $APPNAME-glade.pot $APPNAME-desktop.pot $APPNAME-appdata.pot > $APPNAME.pot
sed 's/#: //g;s/:[0-9]*//g;s/\.\.\///g' <(fgrep "#: " $APPNAME.pot) | sort | uniq | grep -v " " > POTFILES.in
sed 's/#: //g;s/:[0-9]*//g;s/\.\.\///g' <(fgrep "#: " $APPNAME.pot) | sort | uniq | sed 's/ /\n/g' | uniq > POTFILES.in
[ -f "${lang}.po" ] && mv "${lang}.po" "${lang}.po.old"
msginit --locale=$lang --input $APPNAME.pot
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment