Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
56993fa9
Commit
56993fa9
authored
Nov 01, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PHP format support
parent
a7b48087
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
docs/formats.rst
docs/formats.rst
+16
-0
weblate/trans/models.py
weblate/trans/models.py
+4
-0
No files found.
docs/formats.rst
View file @
56993fa9
...
...
@@ -68,6 +68,22 @@ and iPhone/iPad application translations.
generate corrupted files while saving), please use Git snapshot for
handling these.
PHP files
---------
PHP files can be processed directly, though currently Translate-toolkit has
some problems writing them properly, so please double check that your files
won't get corrupted.
Sample file which should work:
.. code-block:: php
<?php
$string['foo'] = 'This is foo string';
Others
------
...
...
weblate/trans/models.py
View file @
56993fa9
...
...
@@ -138,6 +138,10 @@ FILE_FORMATS = {
(
'properties'
,
'javautf8file'
),
True
,
),
'php'
:
FileFormat
(
ugettext_lazy
(
'PHP strings'
),
(
'php'
,
'phpfile'
),
),
}
# Check if there is support for Android resources
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment