From 4c472b586f1d376a8e68bcab70afaaf7c661b3d1 Mon Sep 17 00:00:00 2001 From: Hakan Tandogan Date: Thu, 20 Jun 2013 14:20:23 +0200 Subject: [PATCH] Fix commit message --- transifex-commit-translations.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/transifex-commit-translations.pl b/transifex-commit-translations.pl index 04a08c9..2808b58 100755 --- a/transifex-commit-translations.pl +++ b/transifex-commit-translations.pl @@ -61,10 +61,8 @@ sub commit_if_necessary $filename = fileparse($pofile); $git->add($filename); - $message = $pofile; - $message =~ s/^\.\///; - $message =~ s/^scripts\///; - $message =~ s/^\.\.\///; + ($foo, $bar) = split(/\/locale\//, $pofile); + $message = "locale/" . $bar; $message = "Translated " . $message . " on transifex.com"; # print "Message: '" . $message . "'\n" $git->commit({ message => $message });