diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 11:05:10 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 11:05:10 -0600 |
commit | f7e7a923aca8be643f9ae6f7252f9fb27b3d2c3b (patch) | |
tree | 1f78ef53b206c6b4e4efc88c4849aa9f686a094d /tde-i18n-en_GB/docs/tdesdk/kbabel/preferences.docbook | |
parent | 85ca18776aa487b06b9d5ab7459b8f837ba637f3 (diff) | |
download | tde-i18n-f7e7a923aca8be643f9ae6f7252f9fb27b3d2c3b.tar.gz tde-i18n-f7e7a923aca8be643f9ae6f7252f9fb27b3d2c3b.zip |
Second part of prior commit
Diffstat (limited to 'tde-i18n-en_GB/docs/tdesdk/kbabel/preferences.docbook')
-rw-r--r-- | tde-i18n-en_GB/docs/tdesdk/kbabel/preferences.docbook | 1225 |
1 files changed, 1225 insertions, 0 deletions
diff --git a/tde-i18n-en_GB/docs/tdesdk/kbabel/preferences.docbook b/tde-i18n-en_GB/docs/tdesdk/kbabel/preferences.docbook new file mode 100644 index 00000000000..336f3cc9e60 --- /dev/null +++ b/tde-i18n-en_GB/docs/tdesdk/kbabel/preferences.docbook @@ -0,0 +1,1225 @@ +<!-- <?xml version="1.0" ?> +<!DOCTYPE chapter PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" +> --> +<!-- Uncomment the previous two lines to validate this document --> +<!-- standalone. Be sure to recomment them before attempting to --> +<!-- process index.docbook --> + + +<chapter id="preferences"> +<chapterinfo> +<!-- Fill in this section if this document has a different author --> +<authorgroup> +<author> +<personname +><firstname +></firstname +><surname +></surname +></personname> +</author> +</authorgroup> + +<othercredit role="translator" +><firstname +>Alex</firstname +><surname +>Walker</surname +><affiliation +><address +><email +>alex@x3ja.co.uk</email +></address +></affiliation +><contrib +>Conversion to British English</contrib +></othercredit +> +</chapterinfo> + +<title +>Preferences</title> +<sect1 id="preferences-kbabel"> +<title +>&kbabel; preferences</title> + +<para +>To show the Preferences dialogue choose <menuchoice +><guimenu +>Settings</guimenu +> <guimenuitem +>Configure KBabel...</guimenuitem +></menuchoice +> from &kbabel;'s menu. It uses a structured configuration dialog which makes it very easy to find an option without having to perform an extensive search for it.</para> + +<para +>The left side of the preferences dialogue lists the categories of customisable items and the right side shows the corresponding tab for the selected category. &kbabel; keeps changes if you move between categories, so when you're finally happy click the <guibutton +>OK</guibutton +> button. At any time you can use quick help—just click on the question mark on the title bar and, after the cursor has changed to an arrow with a question mark, click on a button, label, or preference entry to find out more about it.</para> + +<sect2 id="preferences-identity"> +<title +>Identity</title> + +<para +>This section allows you to set standard fields for every translated <acronym +>PO</acronym +> file. These are your name, email address, full language name, email address for your translation team mailing list. There is also a timezone field to track your <quote +>last modified</quote +> time for <acronym +>PO</acronym +> files. You can specify it as character sequence like <acronym +>EEST</acronym +> or offset from <acronym +>GMT</acronym +> time like +0200 (&ie; for Romania). This information is used when updating file headers. You can find the options that control what fields in the header should be updated in the <link linkend="preferences-save" +>Save</link +> section of the Preferences dialogue.</para> + +<warning +><para +>Character sequences for timezones are not standardised. So you should not use the string set here in time specification for saving in <link linkend="preferences-save" +>Save</link +> tab. You should use <literal +>%z</literal +> instead.</para +></warning> + +<variablelist> +<varlistentry> +<term +><guilabel +>Number of singular/plural forms</guilabel +></term> +<listitem> +<para +>Use this for setting number of plural forms for your language. For example, it is 2 for German (one for the singular and one for the plural form).</para> + +<note +><para +>This feature is currently implemented only for plural forms format used in &kde;. It does not work with gettext plural forms.</para +></note +> +</listitem> +</varlistentry> +</variablelist> + +</sect2> + +<sect2 id="preferences-editor"> +<title +>Editor</title> +<para +>The editor preferences category is divided in 3 subwindows: <guilabel +>General</guilabel +>, <guilabel +>Appearance</guilabel +>, <guilabel +>Spell Check</guilabel +> and <guilabel +>Fonts</guilabel +>. All these settings customize how the editor behaves and looks. </para> + +<sect3 id="preferences-editor-general"> +<title +>General</title> + +<para +>This section contains a set of checkboxes.</para> + +<para +>The first checkbox in the upper side sets if the fuzzy status is reset automatically when a character is inputted into the MsgStr editor. When this option is disabled you have to manually choose <menuchoice +><guimenu +>Edit</guimenu +><guimenuitem +>Unset Fuzzy Status </guimenuitem +></menuchoice +> or use the <keycombo action="simul" +>&Ctrl;<keycap +>U</keycap +></keycombo +> shortcut. Note that this means the string <literal +>, fuzzy</literal +> is removed from the entry's comment.</para> + +<para +>Next option allows you to enable <quote +>clever</quote +> editing, where editor automatically inserts special characters escaped correctly, ⪚ <literal +>\t</literal +> after pressing <keycap +>Tab</keycap +> and it allows special handling of <keycap +>Enter</keycap +>.</para> + +<para +>The lower checkboxes are very useful in assisting, not for the correctness of the translation, but if the translated string is a suitable replacement for the original. For example, many messages represent menu items with keyboard accelerator and C-like formatted strings whose structure must remain intact once translated.</para> + +<variablelist> + <varlistentry> + <term +><guilabel +>Check Arguments</guilabel +></term> + <listitem> + <para +>When this option is selected, C-format strings in the original and the translation are checked to ensure the number of format sequences and the order are consistent. </para> + </listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Check Accelerator</guilabel +></term> + <listitem> +<para +>When this option is selected, &kbabel; checks if the number accelerator characters is identical in both the original and the translated string. Note that the accelerator marker is & (but not in every programming toolkit). See the <link linkend="preferences-miscellaneous" +>Miscellaneous</link +> section below to find how to change a keyboard accelerator.</para> + </listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Check Equation</guilabel +></term> + <listitem> + <para +>This is a feature for the &kde; project development. <filename +>.desktop</filename +> files are simply text files which store various parameters in <literal +>value=key</literal +> format. Some of these <literal +>key</literal +>s are translatable. The only restriction is to maintain the left side of equality unchanged. Equation check allows you to spot many errors determined by the fuzzy <command +>msgmerge</command +> algorithm. Note that there are situations where this function generates false errors on some <acronym +>PO</acronym +>-files. </para> + </listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Look for Translated Context Info</guilabel +></term> + <listitem> +<para +>Some original messages are marked with context information to mark them as being unique even if they represent same word. This is because many simple words, such as <quote +>Save</quote +>, are translated into many languages. Context information is marked with <literal +>_:</literal +>. Many unexperienced translators translate the context information and fill their PO files with garbage. Check this box to make sure you will be warned about these errors in a file.</para> + </listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Check Plural Forms</guilabel +></term> + <listitem> + <para +>If you are translating &kde; project, it uses a special kind of syntax for specifying plural forms of messages. This check automatically counts the number of forms in <acronym +>msgstr</acronym +> and compares it with the number specified in <link linkend="preferences-identity" +><guilabel +>Identity</guilabel +></link +> tab. Incorrect number of plural forms can result in crash of an application. </para> + </listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Beep on error</guilabel +></term> + <listitem> + <para +>Your system bell will beep when you switch on entries with errors like those described above. </para> + </listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Change text colour on error</guilabel +></term> + <listitem> + <para +>This is another type of warning about errors in current message. It is a good solution for those who are hearing impaired or dislike bell noise. See also the <link linkend="preferences-editor-appearance" +>Appearance</link +> tab to find out how to change the text colour on errors. </para> + </listitem> + </varlistentry> +</variablelist> + +</sect3> + +<sect3 id="preferences-editor-appearance"> +<title +>Appearance</title> + +<para +>These options let you configure the appearance for the message editor. In upper part there are 4 checkboxes: </para> + +<variablelist> + <varlistentry> + <term +><guibutton +>Highlight syntax</guibutton +></term> + <listitem +><para +>Setting this option will enable syntax highlighting for special characters, accelerators and text background in the msgid viewer and msgstr editor. If don't have a monochrome display or have a visual impairment, you should enable this option. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guibutton +>Highlight background</guibutton +></term> + <listitem +><para +>The background will be highlighted only for existing characters in the msgid and msgstr. This includes spaces. This is useful if you don't want to see the surrounding quotes (see below) for the <acronym +>PO</acronym +> entry, and you will still be able to observe starting and ending spaces in a text line. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guibutton +>Mark whitespaces with points</guibutton +></term> + <listitem +><para +>When you feel the need to count spaces and background highlighting is not your taste then you can check this option to have a point sign drawn in the middle of whitespace characters. Note that the point is a point sign in the center of a character box and is not a decimal point. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guibutton +>Show surrounding quotes</guibutton +></term> + <listitem +><para +>If you think that viewing the terminal characters in msgstr or msgid's text line is better for you then check this option to view the surrounding quotes for every text line.</para> + <para +>If you are experienced editing <acronym +>PO</acronym +> files with ordinary text editors you may feel safer if you can track starting and ending double quotes in <acronym +>PO</acronym +> entry lines. </para +></listitem> + </varlistentry> +</variablelist> + +<para +>For the different items in edited text there are different colour choices to make editing easy. Colours can be changed by clicking on colour-picker buttons. From the 'select color' dialogs you can choose from standard colours, custom colours or just pick a colour from any part of your screen. </para> + +<variablelist> + <varlistentry> + <term +><guilabel +>Background colour</guilabel +></term> + <listitem +><para +>This sets the background colour for characters in the MsgID view and the MsgStr editor. To change the general background colour of edit boxes you must use the &kcontrolcenter;. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Colour for quoted characters</guilabel +></term> + <listitem +><para +>Here you can adjust the colour for escaped characters like (<literal +>\"</literal +>) double quotes or (<literal +>\n</literal +>) newline. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Colour for syntax errors</guilabel +></term> + <listitem +><para +>This is the colour for the entire text entry if errors are detected when you try to save <acronym +>PO</acronym +> file. Errors are triggered by not terminating identically both <acronym +>msgid</acronym +> and <acronym +>msgstr</acronym +>, or escaping characters incorrectly. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Colour for c-format characters</guilabel +></term> + <listitem +><para +>This sets the colour for a characters sequence like in C language <function +>printf</function +> or <function +>scanf</function +> functions. In general these start with (<literal +>%</literal +>) percent char and are continued by one char. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Colour for keyboard accelerators</guilabel +></term> + <listitem +><para +>Keyboard accelerators start with (&) <quote +>ampersand</quote +> character in &kde; but if you are translating for other projects there might be an different character marking the accelerator key. See <link linkend="preferences-miscellaneous" +>Miscellaneous</link +> section below to find how to change keyboard accelerator. </para +></listitem> + </varlistentry> +</variablelist> + +<para +>The status for the current edited entry is marked by three <acronym +>LED</acronym +>s. For your convenience you can choose where to put these <acronym +>LED</acronym +>s—either on the statusbar or in the editor section (between the msgid and msgstr entry). If have difficulties viewing some colours or you want to be able to track <acronym +>LED</acronym +> status changes easily without moving your eye you can select the preferred color using the colour button chooser. </para> + +</sect3> + +<sect3 id="preferences-editor-fonts"> +<title +>Fonts</title> + +<para +>This is a standard &kde; font chooser dialogue with a little addition. You can select to view only fixed fonts by checking the <guibutton +>Show only fixed fonts</guibutton +> option. This is highly recommended for easy translating. The font dialogue lets you set font family, style, size and encoding. The bottom box shows a preview of the current font for user convenience. </para> +</sect3> +</sect2> + +<sect2 id="preferences-save"> +<title +>Save</title> +<para +>This section allows you to edit the options for <acronym +>PO</acronym +> file saving. The first group of checkboxes controls general behaviour for actions performed in <acronym +>PO</acronym +> file saving. </para> + +<variablelist> + <varlistentry> + <term +><guibutton +>Update header when saving</guibutton +></term> + <listitem +><para +>Check this button to update the header information of the file every time it is saved. The header normally keeps information about the date and time the file was last updated; the last translator etc. You can choose which information you want to update from the <guilabel +>Fields to update</guilabel +> checkboxes area below. Fields that do not exist are added to the header. If you want to add additional fields to the header you can edit the header manually by choosing <menuchoice +><guimenu +>Edit</guimenu +> <guimenuitem +>Edit Header</guimenuitem +></menuchoice +> in the editor window. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guibutton +>Check syntax of file when saving</guibutton +></term> + <listitem +><para +>Check this to automatically check syntax of file with <userinput +><command +>msgfmt</command +> --statistics</userinput +> when saving a file. You will only get a message if an error occurred. You should keep this validation enabled unless you know what you're doing. </para +></listitem> + </varlistentry> +</variablelist> + +<para +>If you don't want to touch some fields in a <acronym +>PO</acronym +> file header or want to force updating of specific fields, there are five checkboxes which control this: revision date, <acronym +>PO</acronym +> file language, text encoding, last translator name, charset. If a field does not exist, it is appended to the header. If you want to add other information to the header, you have to edit the header manually by choosing <menuchoice +><guimenu +>Edit</guimenu +><guimenuitem +>Edit Header</guimenuitem +></menuchoice +> in the editor window. Deactivate <guibutton +>Update header when saving</guibutton +> above if you don't want to have the header updated.</para> + +<para +>For date and time of the header field <emphasis +>PO-Revision-Date</emphasis +> you can choose one from bellow formats:</para> + +<itemizedlist> + <listitem +><para +><guilabel +>Default</guilabel +> is the format normally used in <acronym +>PO</acronym +> files. </para +></listitem> + <listitem +><para +><guilabel +>Local</guilabel +> is the format specific to your country. </para +></listitem> + <listitem +><para +><guilabel +>Custom</guilabel +> lets you define your own format, where you can use the following C-like format strings: <table> + <title +>Year</title> + <tgroup cols="3"> + <thead> + <row> + <entry +>Format</entry +><entry +>Meaning</entry +><entry +>Range</entry> + </row> + </thead> + <tbody> + <row> + <entry +>%y</entry +><entry +>year</entry +><entry +>00 to 99</entry> + </row> + <row> + <entry +>%Y</entry +><entry +>year</entry +><entry +>0001 to 9999</entry> + </row> + </tbody> + </tgroup> + </table> + <table> + <title +>Month</title> + <tgroup cols="3"> + <thead> + <row> + <entry +>Format</entry +><entry +>Meaning</entry +><entry +>Range</entry> + </row> + </thead> + <tbody> + <row> + <entry +>%m</entry +><entry +>month of year</entry +><entry +>01 to 12</entry> + </row> + <row> + <entry +>%f</entry +><entry +>month of year</entry +><entry +>1 to 12</entry> + </row> + <row> + <entry +>%b,%h</entry +><entry +>month abbreviation</entry +><entry +>Jan to Dec</entry> + </row> + </tbody> + </tgroup> + </table> + <table> + <title +>Day</title> + <tgroup cols="3"> + <thead> + <row> + <entry +>Format</entry +><entry +>Meaning</entry +><entry +>Range</entry> + </row> + </thead> + <tbody> + <row> + <entry +>%j</entry +><entry +>day of the year</entry +><entry +>001 to 366</entry> + </row> + <row> + <entry +>%d</entry +><entry +>day of month</entry +><entry +>01 to 31</entry> + </row> + <row> + <entry +>%e</entry +><entry +>day of month</entry +><entry +>1 to 31</entry> + </row> + <row> + <entry +>%a</entry +><entry +>weekday abbreviation</entry +><entry +>Sun to Sat</entry> + </row> + </tbody> + </tgroup> + </table> + <table> + <title +>Hour</title> + <tgroup cols="3"> + <thead> + <row> + <entry +>Format</entry +><entry +>Meaning</entry +><entry +>Range</entry> + </row> + </thead> + <tbody> + <row> + <entry +>%H</entry +><entry +>hour</entry +><entry +>00 to 23</entry> + </row> + <row> + <entry +>%k</entry +><entry +>hour</entry +><entry +>0 to 23</entry> + </row> + <row> + <entry +>%i</entry +><entry +>hour</entry +><entry +>1 to 12</entry> + </row> + <row> + <entry +>%I</entry +><entry +>hour</entry +><entry +>01 to 12</entry> + </row> + <row> + <entry +>%p</entry +><entry +></entry +><entry +>AM or PM</entry> + </row> + </tbody> + </tgroup> + </table> + <table> + <title +>Minute, Second, Timezone</title> + <tgroup cols="3"> + <thead> + <row> + <entry +>Format</entry +><entry +>Meaning</entry +><entry +>Range</entry> + </row> + </thead> + <tbody> + <row> + <entry +>%M</entry +><entry +>minute</entry +><entry +>00 to 59</entry> + </row> + <row> + <entry +>%S</entry +><entry +>second</entry +><entry +>00 to 59</entry> + </row> + <row> + <entry +>%Z</entry +><entry +>timezone</entry +><entry +>(given in identity settings)</entry> + </row> + <row> + <entry +>%z</entry +><entry +>timezone</entry +><entry +>(numeric offset as specified by system settings)</entry> + </row> + </tbody> + </tgroup> + </table> + </para +></listitem> +</itemizedlist> + +<para +>The lower group covers encoding options for <acronym +>PO</acronym +> files when saving. If you work on the &kde; project you should be aware that at least <filename +>desktop.po</filename +> file <emphasis +>must</emphasis +> be UTF-8 encoded. The drop-down list lets you select message encoding. You must at least have your language code and UTF-8 encoding set. If, for some reason, you don't want to accidentally change the current PO file encoding, turn on <guibutton +>Keep the encoding of the file</guibutton +>.</para> + +</sect2> + +<sect2 id="preferences-spellcheck"> +<title +>Spell Check</title> + +<para +>Here you can set your spell checking preferences. This is of interest if you have a dictionary file for the language you are translating to. Below are the items to consider setting:</para> + +<variablelist> + <varlistentry> + <term +><guibutton +>Create root/affix combinations not in dictionary</guibutton +></term> + <listitem +><para +>For new words added to the personal dictionary, the spell checker will create root/affix combinations to match more than one word (variations). </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guibutton +>Consider run-together words as spelling errors</guibutton +></term> + <listitem +><para +>If this is turned on, joined words will be treated as errors. However, such words are very common in the German language, which have a very large number of compound words, so it should be left turned off in that case. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Dictionary</guilabel +></term> + <listitem +><para +>From the popup list you can choose which dictionary to use. Note that you must install an appropriate dictionary for your language. Check your ispell or aspell distribution to find out if you have one. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Encoding</guilabel +></term> + <listitem +><para +>Here you choose the encoding for your text. This option is passed to the spellchecker, and is used as the encoding for your words dictionary. See the <ulink url="help:/kspell" +>kspell</ulink +> documentation for more details. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Client</guilabel +></term> + <listitem +><para +>Backend program to use for spell checking. Currently either <command +>ispell</command +> (International Ispell) or aspell. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guibutton +>Remember ignored words</guibutton +></term> + <listitem +><para +>Keep track of user-ignored words when spell-checking <acronym +>PO</acronym +> files. It is very convenient to ignore the abbreviations or strange letter combinations you meet in &GUI; interfaces. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>File to store ignored words</guilabel +></term> + <listitem +><para +>Here you can set location of the file for ignored words. Click on the folder icon to the right of the edit box. The default is <filename +>$(HOME)/.kde/share/apps/kbabel/spellignores</filename +>, where <filename +>$(HOME)</filename +> is your home folder. </para +></listitem> + </varlistentry> +</variablelist> +</sect2> + +<sect2 id="preferences-search"> +<title +>Search</title> +<para +>The search section allows you to customise various settings for searching in previously translated strings. </para> + +<sect3 id="preferences-search-general"> +<title +>General</title> + +<para +>General settings are common for all search types. If you check the <guibutton +>Automatically start search</guibutton +> option then the search is automatically started whenever you switch to another entry in the editor. Currently, there are three possibilities you can choose from, but since &kbabel; can use dictionary plugins the available dictionaries depend on those installed. Using <menuchoice +><guimenuitem +>Settings</guimenuitem +> <guimenuitem +>Configure Dictionary</guimenuitem +> <guimenuitem +>...</guimenuitem +></menuchoice +> you can configure every search plugin.</para> + +<para +>The dictionary plugins installed by default are:</para> + +<variablelist> +<varlistentry> +<term +>&kde; Database Search Engine</term> +<listitem> +<para +>This new method is still in alpha stage of development and is based on &kbabeldict; which accompanies &kbabel;. See &kbabeldict; documentation for further info on configuring the search engine. </para +></listitem> +</varlistentry> + +<varlistentry> +<term +>PO Compendium</term> +<listitem +><para +>The compendium is a normal <acronym +>PO</acronym +> file, which should contain a list of standard translations from your translation team. If you don't have one, you can also use a file that contains all the translations from your team (⪚ the <filename +>$lang.messages</filename +> file in the &kde; Project, that can be found at <ulink url="http://i18n.kde.org/po_overview/" +>i18n.kde.org</ulink +>). </para +></listitem> +</varlistentry> + +<varlistentry> +<term +>PO Auxiliary</term> +<listitem +><para +>The auxiliary should help you find the context of a translation by looking up the same message in a message catalog of the same package but translated to another language. This way you can have a look how this message is translated in another language. </para +></listitem> +</varlistentry> +</variablelist> + +<para +>You can also start searching manually by choosing an entry in the popup menu that appears, either by clicking <menuchoice +> <guimenu +>Dictionaries</guimenu +><guimenuitem +>Search Text</guimenuitem +> <guimenuitem +>PO Compendium</guimenuitem +></menuchoice +> or by keeping the search button on the toolbar pressed down for a while. </para> +</sect3> + +</sect2> + +<sect2 id="preferences-diffmode"> +<title +>Diff</title> + +<para +>The <guilabel +>Diff</guilabel +> section holds settings how to display differences in msgids. </para> + +<para +>Every difference can be displayed by two added parts and by characters removed from the text. For both you can specify the method of display and the color to be used. <guilabel +>Highlighted</guilabel +> means that the background of the corresponding characters will be shown in the selected colour, while <guilabel +>Underlined</guilabel +>(for added characters) or <guilabel +>Stroked Out</guilabel +> (for removed characters) will denote the changed parts by coloured lines. </para> +<para +>Diff mode needs to find the original <acronym +>msgid</acronym +> to compare with. For this purpose, &kbabel; can use the <link linkend="database" +>translation database</link +> if you turn in on by enabling <guilabel +>Use messages from Translation Database</guilabel +>. A second possibility is to use a tree of original PO files and specifying the root of the tree in <guilabel +>Base folder for diff files</guilabel +>. </para> +</sect2> + + +<sect2 id="preferences-miscellaneous"> +<title +>Miscellaneous</title> +<para +><guilabel +>Miscellaneous</guilabel +> section holds settings which don't fit anywhere else. Currently there are two: </para> + +<variablelist> + <varlistentry> + <term +><guilabel +>Marker for keyboard accelerator</guilabel +></term> + <listitem +><para +>Here you can select your own character to serve as the keyboard accelerator indicator in a &GUI;. By default it is & (ampersand), but in some programming toolkits it may vary. For example, in Gnome/GTK translations the underscore character <quote +>_</quote +> is the marker for the keyboard accelerator. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guilabel +>Regular expression for context information</guilabel +></term> + <listitem +><para +>For inexperienced users "regular expression" may sound strange. So you are advised to change the default value only if you know what you are doing. Some &GUI; programming toolkits provide their own context information description methods. Consult an experienced developer if you translate <acronym +>PO</acronym +> files other than standard &kde; files. For the sake of completeness I will "translate" for you what the default regular expression means: "the text matches if it starts with _: and is followed by one or more characters and ends with a newline". </para +></listitem> + </varlistentry> +</variablelist> +</sect2> + + +</sect1> + +<sect1 id="preferences-catalogmanager"> +<title +>&cataloguemanager; preferences</title> + +<para +>This dialogue allows you to edit the options for the Catalogue Manager. </para> + +<sect2 id="preferences-catalogmanager-general"> +<title +>General</title> +<para +>Here are two edit lines with <guibutton +>Browse...</guibutton +> buttons. Type in the folders which contains all your <acronym +>PO</acronym +>- and respectively <acronym +>POT</acronym +>-files. The files and the folders in these folders will then be merged into one tree in Catalogue Manager window. </para> + +<para +>Below you can turn on and off if: </para> + +<variablelist> + <varlistentry> + <term +><guibutton +>Open files in new window</guibutton +></term> + <listitem +><para +>If this is activated all files that are opened from the Catalogue Manager are opened in a new window. </para +></listitem> + </varlistentry> + <varlistentry> + <term +><guibutton +>Kill processes on exit</guibutton +></term> + <listitem +><para +>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. <note +><para +>It's not guaranteed that the processes are killed. </para +></note> + </para +></listitem> + </varlistentry> +<varlistentry> + <term +><guibutton +>Create index for file contents</guibutton +></term> + <listitem +><para +>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. <warning +><para +>There is a large speed trade-off. If you enable <guibutton +>Create index for file contents</guibutton +>, the updating of file information will be much slower. On the other hand, it speeds up find/replace operations considerably.</para +></warning> + </para +></listitem> + </varlistentry> +</variablelist> +</sect2> + +<sect2 id="preferences-catalogmanager-folders"> +<title +>Folder Commands</title> +<para +>Here you can insert commands you want to execute in folders from the Catalogue Manager. The commands are then shown in the submenu <menuchoice +><guimenuitem +>Commands</guimenuitem +></menuchoice +> in the Catalogue Manager's context menu. </para +><para +>Insert in the <guilabel +>Name</guilabel +> field the name of the command. The name can be chosen freely and is only used to be displayed in the menu. In the <guilabel +>Command</guilabel +> field insert the command you want to have executed when selecting the corresponding menu item. Then press the <guibutton +>Add</guibutton +> button to add the command to your available commands. To edit a command, select it, press the <guibutton +>Edit</guibutton +> button and press <guibutton +>Add</guibutton +> after you have finished. To remove a command, select it from the list and press the <guibutton +>Remove</guibutton +> button. If you want a different order in the contextual submenu, you can use the up and down buttons. </para +><para +>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 (<acronym +>PO</acronym +> file) folder you have selected in the Catalogue Manager. </para +><para +>The following strings will be replaced in a command: </para> + +<itemizedlist> + <listitem +><para +><userinput +>@PACKAGE@</userinput +>: The name of the folder without path </para +></listitem> + <listitem +><para +><userinput +>@PODIR@</userinput +>: The name of the <acronym +>PO</acronym +>-folder with path </para +></listitem> + <listitem +><para +><userinput +>@POTDIR@</userinput +>: The name of the template folder with path </para +></listitem> +</itemizedlist> + +<para +>E.g.: If you want to execute <command +>make</command +> and then <command +>make install</command +> you could insert in <userinput +>Make install</userinput +> in the <guilabel +>Name</guilabel +> field, and <userinput +>make; make install</userinput +> in the <guilabel +>Command</guilabel +> field. If you then select <menuchoice +><guimenuitem +>Commands</guimenuitem +> <guimenuitem +>Make install</guimenuitem +></menuchoice +> from the context menu of a folder, the commands listed above will be executed in that folder. </para> +</sect2> + +<sect2> +<title +>File Commands</title> +<para +>Here you can insert the commands you want to execute on files from the Catalogue Manager. The commands are then shown in the submenu <menuchoice +><guimenuitem +>Commands</guimenuitem +></menuchoice +> in the Catalogue Manager's context menu. </para> + +<para +>Insert in the <guilabel +>Name</guilabel +> field the name of the command. The name can be chosen freely and is only used to be displayed in the menu. In the <guilabel +>Command</guilabel +> field insert the command you want to have executed when selecting the corresponding menu item. Then press the <guibutton +>Add</guibutton +> button to add the command to your available commands. To edit a command, select it, press the <guibutton +>Edit</guibutton +> button and press the <guibutton +>Add</guibutton +> button after you have finished. To remove a command, select it from the list and press the <guibutton +>Remove</guibutton +> button. If you want a different order in the contextual submenu, you can use the up and down buttons. </para +><para +>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 (<acronym +>PO</acronym +> file) folder, in which the file, you have selected in the Catalogue Manager, is. </para +><para +>The following strings will be replaced in a command: </para> + +<itemizedlist> + <listitem +><para +><userinput +>@PACKAGE@</userinput +>: The name of the file without path and extension </para +></listitem> + <listitem +><para +><userinput +>@POFILE@</userinput +>: The name of the <acronym +>PO</acronym +> file with path and extension </para +></listitem> + <listitem +><para +><userinput +>@POTFILE@</userinput +>: The name of the corresponding template file with path and extension </para +></listitem> + <listitem +><para +><userinput +>@PODIR@</userinput +>: The name of the folder the <acronym +>PO</acronym +> file is in, with path </para +></listitem> + <listitem +><para +><userinput +>@POTDIR@</userinput +>: The name of the folder the template file is in, with path </para +></listitem> +</itemizedlist> +<para +>For example, if you want to merge the template file into your <acronym +>PO</acronym +> file you could insert <userinput +>Merge</userinput +> in the <guilabel +>Name</guilabel +> field and <userinput +>msgmerge @POFILE@ @POTFILE@ > @PACKAGE@.new && mv @PACKAGE@.new "@PACKAGE@.po</userinput +> in the <guilabel +>Command</guilabel +> field. If you then select <menuchoice +><guimenuitem +>Commands</guimenuitem +><guimenuitem +>Merge</guimenuitem +></menuchoice +> from a file's context menu, the <acronym +>PO</acronym +> file will be merged with its template file. </para> +</sect2> +</sect1> +</chapter> +<!-- +Local Variables: +mode: xml +sgml-minimize-attributes:nil +sgml-general-insert-case:lower +sgml-indent-step:0 +sgml-indent-data:nil +End: + +vim:tabstop=2:shiftwidth=2:expandtab +--> |