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

List:       kde-commits
Subject:    kdesdk/kbabel/catalogmanager
From:       Stanislav Višňovský <visnovsky () nenya ! ms ! mff ! cuni ! cz
Date:       2003-03-03 13:28:55
[Download RAW message or body]

CVS commit by nanulo: 

Implemented POFILES and MARKEDPOFILES macros for directories


  M +2 -0      catalogmanagerview.cpp   1.79
  M +6 -2      prefwidgets.cpp   1.13


--- kdesdk/kbabel/catalogmanager/catalogmanagerview.cpp  #1.78:1.79
@@ -1317,4 +1317,6 @@ void CatalogManagerView::slotDirCommand(
       cmd.replace("@PODIR@",item->poFile());
       cmd.replace("@POTDIR@",item->potFile());
+      cmd.replace("@POFILES@",current().join(" "));
+      cmd.replace("@MARKEDPOFILES@",marked().join(" "));
 
       kdDebug(KBABEL_CATMAN) << cmd << endl;

--- kdesdk/kbabel/catalogmanager/prefwidgets.cpp  #1.12:1.13
@@ -226,5 +226,6 @@ DirCommandsPreferences::DirCommandsPrefe
 
     _dirCmdEdit = new CmdEdit( box );
-    new QLabel( i18n("Replaceables:\n@PACKAGE@, @PODIR@, @POTDIR@"), box);
+    new QLabel( i18n("Replaceables:\n@PACKAGE@, @PODIR@, @POTDIR@\n"
+        "@POFILES@, @MARKEDPOFILES@"), box);
 
     QWhatsThis::add( box , i18n("<qt><p><b>Commands for directories</b></p>"
@@ -235,5 +236,8 @@ DirCommandsPreferences::DirCommandsPrefe
 "<li>@PACKAGE@: The name of the directory without path</li>"
 "<li>@PODIR@: The name of the PO-directory with path</li>"
-"<li>@POTDIR@: The name of the template directory with path</li></ul></p>"
+"<li>@POTDIR@: The name of the template directory with path</li>"
+"<li>@POFILES@: The names of the PO files with path</li>"
+"<li>@MARKEDPOFILES@: The names of the marked PO files with path</li>"
+"</ul></p>"
 "</qt>") );
 


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

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