Title: [opsview] [10188] Fixed make gettext routine
Revision
10188
Author
tvoon
Date
2012-09-27 16:38:59 +0100 (Thu, 27 Sep 2012)

Log Message

Fixed make gettext routine

Modified Paths


Modified: trunk/opsview-web/Makefile
===================================================================
--- trunk/opsview-web/Makefile	2012-09-27 09:33:47 UTC (rev 10187)
+++ trunk/opsview-web/Makefile	2012-09-27 15:38:59 UTC (rev 10188)
@@ -67,7 +67,8 @@
 	prove t/*.t
 
 gettext:
-	find lib root -type f | grep -v .svn | grep -v /discovery/ | xgettext.pl -P perl=* -P tt2=* --output=lib/Opsview/Web/I18N/messages.pot
+	find lib root -type f | grep -v .svn | grep -v /discovery/ | grep -v I18N/ | grep -v .swp > gettext.files
+	xgettext.pl -P perl=* -P tt2=* --output=lib/Opsview/Web/I18N/messages.pot -f gettext.files
 	msgmerge --no-location --no-wrap --no-fuzzy-matching --update lib/Opsview/Web/I18N/i_default.po lib/Opsview/Web/I18N/messages.pot
 	# This is quick, so run it everytime
 	$(MAKE) gettext-test
@@ -75,6 +76,7 @@
 	utils/validate_i_default
 	# Update all po files with new strings
 	utils/add_new_strings
+	rm -f gettext.files
 
 gettext-auto:
 	utils/auto_translate fr

Modified: trunk/opsview-web/lib/Opsview/Web/I18N/i_default.po
===================================================================
--- trunk/opsview-web/lib/Opsview/Web/I18N/i_default.po	2012-09-27 09:33:47 UTC (rev 10187)
+++ trunk/opsview-web/lib/Opsview/Web/I18N/i_default.po	2012-09-27 15:38:59 UTC (rev 10188)
@@ -146,8 +146,8 @@
 msgid "messages.auditlog.submitServiceCheck.failed %1"
 msgstr "Failed to submit service check result: %1"
 
+#. ($s->servicename,         $s->hostname,                    $states_by_id->{$state}, $comment,)
 #. ($c->stash->{object}->name,                    $c->stash->{object}->host_object_id->name,                    $states_by_id->{$state},                    $comment,)
-#. ($s->servicename,         $s->hostname,                    $states_by_id->{$state}, $comment,)
 msgid "messages.auditlog.submittingServiceCheckResultOnAs %1 %2 %3 %4"
 msgstr "Submitting service check result: %1 on %2 as %3: %4"
 
@@ -2491,9 +2491,9 @@
 msgid "ui.downtime.help.commentEmpty"
 msgstr "Comment is empty"
 
+#. (join( "::",                $c->stash->{object}->hostname,                $c->stash->{object}->name)
+#. ($c->stash->{object}->name)
 #. (join( "::",                        $c->stash->{object}->hostname,                        $c->stash->{object}->name)
-#. ($c->stash->{object}->name)
-#. (join( "::",                $c->stash->{object}->hostname,                $c->stash->{object}->name)
 msgid "ui.downtime.help.downtimeDeletedFor %1"
 msgstr "Downtime delete for %1"
 

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to