Commit 2819161f authored by David Boddie's avatar David Boddie 💬
Browse files

Remove settings information, fix minor errors

parent 04c7734b
......@@ -8,7 +8,7 @@ The ``data`` directory contains files that are not included in the resource file
======================================= =========================================
Name Purpose
======================================= =========================================
``iconshicolor/scalable/apps`` A directory containing the icon for the
``icons/hicolor/scalable/apps`` A directory containing the icon for the
application.
``images`` A directory containing images used in
the application.
......@@ -16,12 +16,11 @@ Name Purpose
directory.
``com.example.treasure.appdata.xml.in`` An `AppStream`_ metadata file.
``com.example.treasure.desktop.in`` An `Desktop Entry`_ file.
``com.example.treasure.gschema.xml`` A `GSettings`_ schema file.
======================================= =========================================
The ``icons`` directory in this example contains a deeply-nested set of directories with a ``treasure.svg`` `Scalable Vector Graphics`_ (SVG) file inside them. This reflects the structure of the directories where application icons are stored by the system but, for simple applications like this one, the icon could be kept in the ``data`` directory itself. The ``meson.build`` file contains a rule for installing this directory structure in the correct place.
The ``icons`` directory in this example contains a deeply-nested set of directories with a `Scalable Vector Graphics`_ (SVG) file called ``treasure.svg`` inside them. This reflects the structure of the directories where application icons are stored by the system but, for simple applications like this one, the icon could be kept in the ``data`` directory itself. The ``meson.build`` file contains a rule for installing this directory structure in the correct place.
The ``images`` directory contains the images that the application uses for the tiles in the game. Instead of handling each SVG individually, the ``meson.build`` file contains a rule for installing the whole ``images`` directory as a subdirectory of the application's installation directory.
The ``images`` directory contains the images that the application uses for the tiles in the game. Instead of handling each SVG individually, the ``meson.build`` file contains a rule for installing the whole ``images`` directory to the application's installation directory.
Additional Files
~~~~~~~~~~~~~~~~
......
......@@ -18,9 +18,13 @@ Name Purpose
``en_GB.po`` A sample PO translation file for British English.
=================== ==========================================================
The ``treasure.pot`` file is a Portable Object Template (POT) file that contains the user-visible strings for the application. Strings are obtained from the files listed in the ``POTFILES`` file, which includes source and UI files.
The ``treasure.pot`` file is a Portable Object Template (POT) file that contains the user-visible strings for the application. Strings are obtained from the files listed in the ``POTFILES`` file, which includes source and UI files:
Translations of the strings are stored as message catalogs in Portable Object (PO) files for each language. These files are compiled to Machine Object (MO) files by the build system if the languages they represent are listed in the ``LINGUAS`` file. For example, the ``en_GB.po`` file will be processed because it is listed as ``en_GB`` in the ``LINGUAS`` file.
.. literalinclude:: ../app/po/POTFILES
Translations of the strings are stored as message catalogs in Portable Object (PO) files for each language. These files are compiled to Machine Object (MO) files by the build system if the languages they represent are listed in the ``LINGUAS`` file. For example, the ``en_GB.po`` file will be processed because it is listed as ``en_GB`` in the ``LINGUAS`` file:
.. literalinclude:: ../app/po/LINGUAS
The ``treasure.pot`` file is generated when the ``meson-treasure-pot`` build rule is run::
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment