[f-spot] Ensure that POTFILES.in is sorted
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Ensure that POTFILES.in is sorted
- Date: Wed, 2 Jun 2010 19:07:24 +0000 (UTC)
commit eca4f2c7d70cc3d7ff2f4508b26dfeaf3b90566a
Author: Mike Gemünde <mike gemuende de>
Date: Wed Jun 2 10:44:30 2010 +0200
Ensure that POTFILES.in is sorted
The little script from banshee, which sorts the files listed in
POTFILES.in is added. The script is enhanced to handle the [type: ...]
prefixes, which are used for e.g. .ui and .glade files.
https://bugzilla.gnome.org/show_bug.cgi?id=620337
po/POTFILES.in | 9 ++++-----
po/sort-potfiles | 13 +++++++++++++
2 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index fa66818..a6f0efe 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,5 +1,6 @@
# List of source files containing translatable strings.
-# Please keep this file in alphabetical order.
+# Please keep this file in alphabetical order; run ./sort-potfiles
+# after adding files here.
[encoding: UTF-8]
data/desktop-files/f-spot.desktop.in.in
data/desktop-files/f-spot.desktop.in.in
@@ -37,12 +38,12 @@ extensions/Exporters/TabbloExport/TabbloExport.cs
extensions/Exporters/ZipExport/ZipExport.addin.xml
extensions/Exporters/ZipExport/ZipExport.cs
extensions/Exporters/ZipExport/ZipExport.glade
-extensions/Tools/HashJob/HashJob.cs
extensions/Tools/HashJob/HashJob.addin.xml
+extensions/Tools/HashJob/HashJob.cs
extensions/Tools/LiveWebGallery/GalleryRequestHandler.cs
extensions/Tools/LiveWebGallery/LiveWebGallery.addin.xml
-[type: gettext/glade]extensions/Tools/LiveWebGallery/ui/LiveWebGallery.ui
extensions/Tools/LiveWebGallery/LiveWebGalleryDialog.cs
+[type: gettext/glade]extensions/Tools/LiveWebGallery/ui/LiveWebGallery.ui
extensions/Tools/MergeDb/MergeDb.addin.xml
extensions/Tools/MergeDb/MergeDb.cs
extensions/Tools/MergeDb/MergeDb.glade
@@ -51,8 +52,6 @@ extensions/Tools/ScreensaverConfig/ScreensaverConfig.addin.xml
[type: gettext/glade]extensions/Tools/ScreensaverConfig/ScreensaverConfigDialog.ui
f-spot.schemas.in
lib/libfspot/f-jpeg-utils.c
-src/CameraFileSelectionDialog.cs
-src/CameraSelectionDialog.cs
src/Core/App.cs
src/Core/Photo.cs
src/Editors/AutoStretchEditor.cs
diff --git a/po/sort-potfiles b/po/sort-potfiles
new file mode 100755
index 0000000..09b2aae
--- /dev/null
+++ b/po/sort-potfiles
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# copy first 4 lines
+head -n 4 POTFILES.in > POTFILES.in.tmp
+
+# uses everything but the first 4 line. (starting at the 5th line)
+# the first sed command converts "[type: .*]path" to "path[type: .*]",
+# then the paths can be sorted correctly.
+# the second sed command converts it back.
+tail -n +5 POTFILES.in | sed 's/^\(\[type.*\]\)\(.*\)/\2\1/' | sort | sed 's/^\(.*\)\(\[type.*\]\)/\2\1/' >> POTFILES.in.tmp
+
+mv POTFILES.in.tmp POTFILES.in
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]