![]() | Catalog Manager preferences |
Prev | Preferences | Next |
This dialog allows you to edit the options for the Catalog Manager.
Here are two edit lines with Browse... buttons. Type in the folders which contains all your PO- and respectively POT-files. The files and the folders in these folders will then be merged into one tree in Catalog Manager window.
Below you can turn on and off if:
If this is activated all files that are opened from the Catalog Manager are opened in a new window.
If you check this, KBabel tries to kill the processes that are not exited already when the program closes by sending a kill signal to them.
It's not guaranteed that the processes are killed.
If you check this, KBabel will create an index of contents for every file in the tree. This index is then used in find/replace operations.
There is a large speed trade-off. If you enable Create index for file contents, the updating of file information will be much slower. On the other hand, it speeds up find/replace operations considerably.
Here you can insert commands you want to execute in folders from the Catalog Manager. The commands are then shown in the submenu Commands in the Catalog Manager's context menu.
Insert in the Name field the name of the command. The name can be chosen freely and is only used to be displayed in the menu. In the Command field insert the command you want to have executed when selecting the corresponding menu item. Then press the Add button to add the command to your available commands. To edit a command, select it, press the Edit button and press Add after you have finished. To remove a command, select it from the list and press the Remove button. If you want a different order in the contextual submenu, you can use the up and down buttons.
The command is executed through your default shell, so you can execute multiple commands at once by separating them with a semicolon, and you can set environment variables if you need to. The commands are executed in the (PO file) folder you have selected in the Catalog Manager.
The following strings will be replaced in a command:
@PACKAGE@: The name of the folder without path
@PODIR@: The name of the PO-folder with path
@POTDIR@: The name of the template folder with path
E.g.: If you want to execute make and then make install you could insert in Make install in the Name field, and make; make install in the Command field. If you then select Commands->Make install from the context menu of a folder, the commands listed above will be executed in that folder.
Here you can insert the commands you want to execute on files from the Catalog Manager. The commands are then shown in the submenu Commands in the Catalog Manager's context menu.
Insert in the Name field the name of the command. The name can be chosen freely and is only used to be displayed in the menu. In the Command field insert the command you want to have executed when selecting the corresponding menu item. Then press the Add button to add the command to your available commands. To edit a command, select it, press the Edit button and press the Add button after you have finished. To remove a command, select it from the list and press the Remove button. If you want a different order in the contextual submenu, you can use the up and down buttons.
The command is executed through your default shell, so you can execute multiple commands at once by separating them with a semicolon, and you can set environment variables, if you need. The commands are executed in the (PO file) folder, in which the file, you have selected in the Catalog Manager, is.
The following strings will be replaced in a command:
@PACKAGE@: The name of the file without path and extension
@POFILE@: The name of the PO file with path and extension
@POTFILE@: The name of the corresponding template file with path and extension
@PODIR@: The name of the folder the PO file is in, with path
@POTDIR@: The name of the folder the template file is in, with path
For example, if you want to merge the template file into your PO file you could insert Merge in the Name field and msgmerge @POFILE@ @POTFILE@ > @PACKAGE@.new && mv @PACKAGE@.new "@PACKAGE@.po in the Command field. If you then select Commands->Merge from a file's context menu, the PO file will be merged with its template file.
Prev | Home | Next |
Preferences | Up | Command Reference |