[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdesdk/scripts
From:       Alexander Potashev <aspotashev () gmail ! com>
Date:       2012-09-10 21:35:11
Message-ID: 20120910213511.1FD78AC7CA () svn ! kde ! org
[Download RAW message or body]

SVN commit 1315748 by aspotashev:

extractattr: Remove "./" in the beginnings of file paths in file position markers for strings

The same technique with a regexp was used for "extractrc" in SVN revision 851971.


 M  +2 -1      extractattr  


--- trunk/KDE/kdesdk/scripts/extractattr #1315747:1315748
@@ -150,8 +150,9 @@
   
   $context ||= $opt_context;
 
+  (my $norm_fname = $file_name) =~ s/^\.\///;
   print "//i18n: tag $tag attribute $attr\n";
-  print "//i18n: file: $file_name:$.\n";
+  print "//i18n: file: $norm_fname:$.\n";
   if ( $context )
   {
     print qq|i18nc("$context","$text");\n|;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic