Updated POTFILES.in and POTFILES.skip

This commit is contained in:
Jesse van den Kieboom 2012-07-17 10:58:11 +02:00
parent e2b8ec4e2c
commit 275390b4e9
3 changed files with 44 additions and 24 deletions

View File

@ -1,26 +1,16 @@
# List of source files containing translatable strings.
# This list has been automatically generated by update-potfiles.
[encoding: UTF-8]
data/gitg.desktop.in.in
data/org.gnome.gitg.gschema.xml.in.in
gitg/gitg-branch-actions.c
gitg/gitg.c
gitg/gitg-commit-view.c
gitg/gitg-repository-dialog.c
gitg/gitg-revision-changes-panel.c
gitg/gitg-revision-details-panel.c
gitg/gitg-revision-files-panel.c
gitg/gitg-window.c
libgitg/gitg-encodings.c
libgitg/gitg-repository.c
libgitg/gitg-smart-charset-converter.c
[type: gettext/glade]gitg/gitg-commit-menu.ui
[type: gettext/glade]gitg/gitg-menus.xml
[type: gettext/glade]gitg/gitg-new-branch.ui
[type: gettext/glade]gitg/gitg-preferences.ui
[type: gettext/glade]gitg/gitg-repository.ui
[type: gettext/glade]gitg/gitg-revision-changes-panel.ui
[type: gettext/glade]gitg/gitg-revision-details-panel.ui
[type: gettext/glade]gitg/gitg-revision-files-panel.ui
[type: gettext/glade]gitg/gitg-tag.ui
[type: gettext/glade]gitg/gitg-ui.xml
[type: gettext/glade]gitg/gitg-window.ui
gitg/gitg-application.vala
gitg/gitg.vala
plugins/dash/gitg-dash.vala
plugins/history/gitg-history-navigation.vala
plugins/history/gitg-history.vala
[type: gettext/glade]gitg/resources/ui/gitg-menus.ui
[type: gettext/glade]gitg/resources/ui/gitg-window.ui
[type: gettext/glade]plugins/dash/resources/view-create.ui
[type: gettext/glade]plugins/dash/resources/view-open.ui
[type: gettext/glade]plugins/dash/resources/view-recent.ui
[type: gettext/glade]plugins/history/resources/view-history.ui

View File

@ -1,4 +1,2 @@
data/gitg.desktop.in
data/gitgdiff.lang
data/gitgstyle.xml
data/org.gnome.gitg.gschema.xml.in

32
po/update-potfiles Executable file
View File

@ -0,0 +1,32 @@
#!/bin/bash
top=$(git rev-parse --show-toplevel)
allfiles=$(cd "$top" && git ls-files --no-empty-directory --exclude-standard | sort)
echo "# List of source files containing translatable strings."
echo "# This list has been automatically generated by update-potfiles."
echo "[encoding: UTF-8]"
# Desktop in files
for i in $allfiles;
do
if [ ${i##*.} == "in" ] && grep -E '(^_|<_)' "$top/$i" &>/dev/null; then
echo $i;
fi
done
# vala source files
for i in $allfiles;
do
if [ ${i##*.} == "vala" ] && grep -E '_\(["'"'"']' "$top/$i" &>/dev/null; then
echo $i;
fi
done
# gtkbuilder ui files
for i in $allfiles;
do
if [ ${i##*.} == "ui" ] && grep -E 'translatable' "$top/$i" &>/dev/null; then
echo "[type: gettext/glade]$i";
fi
done