File: dev-translate.page

package info (click to toggle)
gnome-devel-docs 40.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 79,188 kB
  • sloc: javascript: 2,514; xml: 2,407; ansic: 2,229; python: 1,854; makefile: 805; sh: 499; cpp: 131
file content (44 lines) | stat: -rw-r--r-- 1,599 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<page xmlns="http://projectmallard.org/1.0/"
      xmlns:its="http://www.w3.org/2005/11/its"
      type="topic" style="task"
      id="dev-translate">

  <info>
    <link type="guide" xref="index" group="translate"/>
    <link type="next" xref="dev-translate-setup"/>
    <revision version="0.1" date="2013-06-19" status="review"/>

    <credit type="author copyright">
      <name>Michael Hill</name>
      <email its:translate="no">mdhillca@gmail.com</email>
      <years>2013</years>
    </credit>

    <include href="cc-by-sa-3-0.xml" xmlns="http://www.w3.org/2001/XInclude"/>

    <desc>Localization for user-visible application content.</desc>
  </info>

  <title>Translations</title>

  <links type="series" style="floatend">
    <title>Set up translations</title>
  </links>

  <p>You can make your application translatable into other languages using
  <app href="http://freedesktop.org/wiki/Software/intltool/">intltool</app>
  and
  <app href="http://www.gnu.org/software/gettext/manual/gettext.html">gettext</app>.</p>

  <p><app>gettext</app> is the framework for extracting strings from a source
  file. <app>intltool</app> extracts translatable strings from other files,
  such as desktop files and UI files, then merges them back into the XML and
  desktop files with the strings from the source code.</p>

  <p>You should use <code>ngettext</code> for translation of strings with
  plurals.</p>

  <p>For more information about translating GNOME projects, see the GNOME
  <link href="https://wiki.gnome.org/TranslationProject/DevGuidelines">Translation
  Project</link>.</p>
</page>