Skip to content

Commit

Permalink
Merge pull request #70 from mattrose/13-gettext
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyfrosch authored May 17, 2020
2 parents 6032fa9 + 3f4fa84 commit ec2d50c
Show file tree
Hide file tree
Showing 10 changed files with 773 additions and 748 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,3 @@ remotinatorc
terminatorlib/meliae
/dist
/MANIFEST

## language / intltool related files
.intltool*
data/terminator.appdata.xml
data/terminator.desktop
27 changes: 27 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Development Notes
=================

Here we connect notes and howtos for development around Terminator. Feel free to extend or submit suggestions.

## Translation i18n

Tooling is based on [Babel](https://babel.pocoo.org), the configuration is stored in `babel.cfg`, `setup.cfg` and
some code in `setup.py`.

The POT file [po/terminator.pot](po/terminator.pot) contains the template for all translations and should be updated
regularly, especially when messages changed inside the source code.

```
$ python setup.py extract_messages
```

Usually catalogs are updated with external translation tools, e.g. when new translations are merged. But we can update
the catalogs here, so translators will have it more easy to pick up their work.
This is a custom extension in `setup.py`.

```
$ python setup.py update_catalogs
```

Compilation of catalogs into the binary form, from `*.po` to `*.mo` is done during `setup.py build`, and the files are
installed during `setup.py install`.
7 changes: 7 additions & 0 deletions babel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[ignore: build/**]
[python: **.py]
[python: terminator]
[python: remotinator]
[glade: **.glade]
[glade: data/terminator.metainfo.xml]
[desktop: **.desktop]
File renamed without changes.
44 changes: 22 additions & 22 deletions data/terminator.appdata.xml.in → data/terminator.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,47 @@
<!-- Copyright 2013 Stephen Boddy <[email protected]> -->
<component type="desktop">
<id>terminator.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0 only</project_license>
<_name>Terminator</_name>
<_summary>Multiple terminals in one window</_summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0 only</project_license>
<name translatable="yes">Terminator</name>
<summary translatable="yes">Multiple terminals in one window</summary>
<description>
<_p>
<p translatable="yes">
The robot future of terminals
</_p>
<_p>
</p>
<p translatable="yes">
A power-user tool for arranging terminals. It is inspired by programs such as
gnome-multi-term, quadkonsole, etc. in that the main focus is arranging terminals
in grids (tabs is the most common default method, which Terminator also supports).
</_p>
<_p>
</p>
<p translatable="yes">
Much of the behavior of Terminator is based on GNOME Terminal, and we are adding
more features from that as time goes by, but we also want to extend out in different
directions with useful features for sysadmins and other users.
</_p>
<_p>Some highlights:</_p>
</p>
<p translatable="yes">Some highlights:</p>
<ul>
<_li>Arrange terminals in a grid</_li>
<_li>Tabs</_li>
<_li>Drag and drop re-ordering of terminals</_li>
<_li>Lots of keyboard shortcuts</_li>
<_li>Save multiple layouts and profiles via GUI preferences editor</_li>
<_li>Simultaneous typing to arbitrary groups of terminals</_li>
<li translatable="yes">Arrange terminals in a grid</li>
<li translatable="yes">Tabs</li>
<li translatable="yes">Drag and drop re-ordering of terminals</li>
<li translatable="yes">Lots of keyboard shortcuts</li>
<li translatable="yes">Save multiple layouts and profiles via GUI preferences editor</li>
<li translatable="yes">Simultaneous typing to arbitrary groups of terminals</li>
</ul>
<_p>And lots more...</_p>
<p translatable="yes">And lots more...</p>
</description>
<screenshots>
<screenshot type="default">
<image>http://4.bp.blogspot.com/-xt4Tja1TMQ0/Vdemmf8wYSI/AAAAAAAAA9A/uROTre0PMls/s1600/terminator_main_basic.png</image>
<_caption>The main window showing the application in action</_caption>
<caption translatable="yes">The main window showing the application in action</caption>
</screenshot>
<screenshot>
<image>http://4.bp.blogspot.com/-rRxALSpEEZw/Vdeu58JgpnI/AAAAAAAAA9o/XewWKJ5HNo4/s1600/terminator_main_complex.png</image>
<_caption>Getting a little crazy with the terminals</_caption>
<caption translatable="yes">Getting a little crazy with the terminals</caption>
</screenshot>
<screenshot>
<image>http://2.bp.blogspot.com/-t_8oRyMXUls/VdemmRVnZnI/AAAAAAAAA88/rHIr8L1X7Ho/s1600/terminator_prefs_global.png</image>
<_caption>The preferences window where you can change the defaults</_caption>
<image>http://2.bp.blogspot.com/-t_8oRyMXUls/VdemmRVnZnI/AAAAAAAAA88/rHIr8L1X7Ho/s1600/terminatorprefs_global.png</image>
<caption translatable="yes">The preferences window where you can change the defaults</caption>
</screenshot>
</screenshots>
<url type="homepage">https://github.com/gnome-terminator/terminator</url>
Expand Down
11 changes: 0 additions & 11 deletions po/genpot.sh

This file was deleted.

Loading

0 comments on commit ec2d50c

Please sign in to comment.