Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Mar 5, 2015
2 parents a294724 + 1d9749e commit b57a383
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,21 @@ file with English strings.

`JSON in translate-toolkit documentation <http://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/json.html>`_

.Net Resource files
-------------------

.. index:: single: RESX; files

.. versionadded:: 2.3

.Net Resource (.resx) file is a monolingual XML file format used in Microsoft
.Net Applications.

.. note::

As of writing this documentation, you need translate-toolkit from Git to
support this format.

Others
------

Expand Down
8 changes: 8 additions & 0 deletions weblate/trans/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,14 @@ class PhpFormat(FileFormat):
loader = ('php', 'phpfile')


@register_fileformat
class RESXFormat(FileFormat):
name = _('.Net resource file')
format_id = 'resx'
loader = ('resx', 'RESXFile')
monolingual = True


@register_fileformat
class AndroidFormat(FileFormat):
name = _('Android String Resource')
Expand Down

0 comments on commit b57a383

Please sign in to comment.