1
<!-- ============= Translating Xiphos from a PO ============-->
3
<para>At the most basic level, all you need to do to create a new translation is edit a "po" file in a text editor or a translation editor. If you are unable to create this file yourself (described in the next section), someone from the &app; team will assist you in creating the po file for you to edit.</para>
5
<sect2 id="po-file-structure">
6
<title>PO File Structure</title>
7
<para>PO files are essentially text files with an entry for each string which requires translation.</para>
8
<para>Each entry consists of three or four parts:</para>
11
#: ../xiphos.desktop.in.in.h:1
14
msgid "Xiphos Bible Guide"
17
msgstr "زیفوس-نرم·افزار·مطالعه·کتابمقدس"
21
<para>A comment line pointing towards the exact origin of the particular string within the source code</para>
22
<para>A msgid line which quotes the original string</para>
23
<para>A msgstr line which contains the relevant translation.</para>
25
A translation which is doubtful can carry a second comment line, declaring it as "fuzzy":
29
#: ../ui/prefs.glade.h:21
35
msgid "Base text size"
38
msgstr "سایز قلم بنیادی"
43
<sect2 id="po-do-translation">
44
<title>Editing the PO</title>
45
<para>To edit the po, simply open it in a text editor or one of the translation editors. Then, edit the msgstr line for all of the untranslated terms to the relevant term in your target language. It is helpful to have Xiphos running while doing this so you can see where the terms are being used.
49
<sect2 id="po-programs">
50
<title>Translation Editors</title>
51
<para>Besides a simple text editor, there are two programs that can make translation easier to do.</para>
54
gtranslator: This program is available for linux (and other *nixes) only.
57
poedit: This program is available on Windows and linux.