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
5826438f
Commit
5826438f
authored
Nov 29, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
4e8ee284
4f76160c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
7 deletions
+27
-7
weblate/models.py
weblate/models.py
+19
-0
weblate/settings_test.py
weblate/settings_test.py
+2
-1
weblate/trans/machine/base.py
weblate/trans/machine/base.py
+1
-0
weblate/trans/machine/google.py
weblate/trans/machine/google.py
+1
-2
weblate/trans/machine/microsoft.py
weblate/trans/machine/microsoft.py
+1
-2
weblate/trans/machine/tmserver.py
weblate/trans/machine/tmserver.py
+3
-2
No files found.
weblate/models.py
0 → 100644
View file @
5826438f
# -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2013 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
weblate/settings_test.py
View file @
5826438f
...
@@ -32,7 +32,8 @@ if 'TRAVIS_DATABASE' in os.environ:
...
@@ -32,7 +32,8 @@ if 'TRAVIS_DATABASE' in os.environ:
DATABASES
[
'default'
][
'USER'
]
=
'root'
DATABASES
[
'default'
][
'USER'
]
=
'root'
DATABASES
[
'default'
][
'PASSWORD'
]
=
''
DATABASES
[
'default'
][
'PASSWORD'
]
=
''
elif
os
.
environ
[
'TRAVIS_DATABASE'
]
==
'postgresql'
:
elif
os
.
environ
[
'TRAVIS_DATABASE'
]
==
'postgresql'
:
DATABASES
[
'default'
][
'ENGINE'
]
=
'django.db.backends.postgresql_psycopg2'
DATABASES
[
'default'
][
'ENGINE'
]
=
\
'django.db.backends.postgresql_psycopg2'
DATABASES
[
'default'
][
'NAME'
]
=
'weblate'
DATABASES
[
'default'
][
'NAME'
]
=
'weblate'
DATABASES
[
'default'
][
'USER'
]
=
'postgres'
DATABASES
[
'default'
][
'USER'
]
=
'postgres'
DATABASES
[
'default'
][
'PASSWORD'
]
=
''
DATABASES
[
'default'
][
'PASSWORD'
]
=
''
...
...
weblate/trans/machine/base.py
View file @
5826438f
...
@@ -23,6 +23,7 @@ Base code for machine translation services.
...
@@ -23,6 +23,7 @@ Base code for machine translation services.
from
django.core.cache
import
cache
from
django.core.cache
import
cache
from
django.conf
import
settings
from
django.conf
import
settings
from
django.core.exceptions
import
ImproperlyConfigured
import
json
import
json
import
urllib
import
urllib
import
urllib2
import
urllib2
...
...
weblate/trans/machine/google.py
View file @
5826438f
...
@@ -19,9 +19,8 @@
...
@@ -19,9 +19,8 @@
#
#
from
weblate.trans.machine.base
import
(
from
weblate.trans.machine.base
import
(
MachineTranslation
,
MachineTranslationError
MachineTranslation
,
MachineTranslationError
,
ImproperlyConfigured
)
)
from
django.core.exceptions
import
ImproperlyConfigured
from
weblate
import
appsettings
from
weblate
import
appsettings
...
...
weblate/trans/machine/microsoft.py
View file @
5826438f
...
@@ -20,9 +20,8 @@
...
@@ -20,9 +20,8 @@
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
,
timedelta
from
weblate.trans.machine.base
import
(
from
weblate.trans.machine.base
import
(
MachineTranslation
,
MachineTranslationError
MachineTranslation
,
MachineTranslationError
,
ImproperlyConfigured
)
)
from
django.core.exceptions
import
ImproperlyConfigured
from
weblate
import
appsettings
from
weblate
import
appsettings
BASE_URL
=
'http://api.microsofttranslator.com/V2/Ajax.svc/'
BASE_URL
=
'http://api.microsofttranslator.com/V2/Ajax.svc/'
...
...
weblate/trans/machine/tmserver.py
View file @
5826438f
...
@@ -18,8 +18,9 @@
...
@@ -18,8 +18,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
from
weblate.trans.machine.base
import
MachineTranslation
from
weblate.trans.machine.base
import
(
from
django.core.exceptions
import
ImproperlyConfigured
MachineTranslation
,
ImproperlyConfigured
)
import
urllib
import
urllib
from
weblate
import
appsettings
from
weblate
import
appsettings
...
...
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