[gitg/vala] Updated POTFILES.in and POTFILES.skip
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/vala] Updated POTFILES.in and POTFILES.skip
- Date: Tue, 17 Jul 2012 08:58:35 +0000 (UTC)
commit 275390b4e905b3082101acd16f563ea929bd6cbb
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Tue Jul 17 10:58:11 2012 +0200
Updated POTFILES.in and POTFILES.skip
po/POTFILES.in | 34 ++++++++++++----------------------
po/POTFILES.skip | 2 --
po/update-potfiles | 32 ++++++++++++++++++++++++++++++++
3 files changed, 44 insertions(+), 24 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 6ef233f..8642b6b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -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
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index f796034..2d4a5ee 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1,4 +1,2 @@
data/gitg.desktop.in
-data/gitgdiff.lang
-data/gitgstyle.xml
data/org.gnome.gitg.gschema.xml.in
diff --git a/po/update-potfiles b/po/update-potfiles
new file mode 100755
index 0000000..643bbf4
--- /dev/null
+++ b/po/update-potfiles
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]