Sam Van den Vonder
69f2b62adf
Change discontinued Microsoft Translator API to the new Azure API
2018-08-06 21:47:24 +02:00
Marco Bonetti
03ee5142b0
Load static instead of admin_static (deprecated in Django 2.1)
2018-05-18 09:39:48 +02:00
Marco Bonetti
0a6dfaeb32
changelog, preparing for 0.8.2
2018-03-01 14:03:13 +01:00
Yavor Atov
6375cb4109
Avoid UnicodeEncodeError when quering strings
...
In Python 2 if you query for text with unicode symbols,
an UnicodeEncodeError is raised.
It's because urlencode is called on unicode string.
urlencode should be called on encode strings in Python 2.
The fix is to use Django's force_bytes unility function
to pass encoded string (bytestring in Python 3) to urlencode.
2018-03-01 14:12:50 +02:00
Marco Bonetti
ba91431587
version bump to 0.8.1
2018-01-10 21:23:49 +01:00
Jon Baldivieso
a701097073
Allow searching of plural strings (source & translation). Closes #186 .
2018-01-10 12:03:01 -08:00
Jon Baldivieso
20c7ff4a07
If there's no search query, don't show "None" in search box!
2018-01-10 12:02:17 -08:00
Jon Baldivieso
372d665386
HTML encode ampersands in query string urls in template
2018-01-10 12:01:37 -08:00
Marco Bonetti
a43d369387
Check PEP8 while running tests
...
Use polib >= 1.1.0
Rosetta version bump and changelog
2018-01-10 12:44:24 +01:00
Jon Baldivieso
d797b76a10
Rewrite urls to be RESTful & views to be class-based & less cache-heavy
...
Previously, state was extensively persisted in the cache. This
large-scale rewrite uses the cache only to persist changes to the
catalog file when it is read-only. State is now conveyed through the url
structure and through query string arguments.
The primary downside to this new approach is that there's no explicit
way of purging a cached catalog from memory, or refreshing it from
what's on disk. The user is forced (untransparently!) to wait until
the cached file falls out of the cache (untransparently!), which
is currently 24 hours after the last save (or after if the session
ends). Addressing this would require some design considerations,
and probably some new text that would require its own translation.
2018-01-09 10:45:37 -08:00
Marco Bonetti
0bd2f6e3dc
Tests passing on Django 2.0a1
2017-09-23 21:16:16 +02:00
Marco Bonetti
d6fe378676
version bump
2017-09-23 08:19:21 +02:00
Marco Bonetti
80492e45c6
Template cleaunp, fixes #181
2017-03-10 11:19:20 +01:00
Marco Bonetti
67285f2174
use AdminSite.index_template instead of overriding the default AdminSite
2016-12-13 11:26:09 +01:00
Slava Kyrachevsky
cc74135ff2
updated docs
2016-12-13 11:04:49 +02:00
Slava Kyrachevsky
84acecc54d
rename settings variable
2016-12-13 10:54:54 +02:00
Slava Kyrachevsky
69a305927e
Rosetta at admin panel
2016-12-13 10:48:14 +02:00
Marco Bonetti
d89248e53f
version bump
2016-12-11 12:51:25 +01:00
Alexey Baranov
33d27e83e3
Update views.py
...
search in comment too
2016-11-22 17:07:40 +03:00
Marco Bonetti
ba44f3bf6b
Test against Django 1.10b1 and dropped support for goslate and the Google translate API
2016-06-24 12:24:29 +02:00
Marco Bonetti
b9427a0a74
updted changelog, preparing for 0.7.12
2016-05-21 15:44:58 +02:00
Marco Bonetti
4168a07bdc
Merge pull request #169 from dnaranjo89/patch-1
...
Clean ROSETTA_CACHE_NAME initialization
2016-05-21 15:43:05 +02:00
Marco Bonetti
cd1dee08f4
Merge pull request #170 from dnaranjo89/patch-2
...
Fixup comment
2016-05-21 15:40:09 +02:00
Marco Bonetti
b254811faf
Merge pull request #171 from nealtodd/int_percent_translated
...
Remove 2dp float formatting of integer percent translated
2016-05-21 15:38:46 +02:00
Neal Todd
bdaf06ef50
Remove 2dp float formatting of integer percent translated
...
pofile.percent_translated returns an int so the floatformat:2 filter
only ever renders as X.00, so tidier just to show X% rather than X.00%
2016-05-19 11:51:40 +01:00
dnaranjo89
4139a5dd1f
Fixup comment
2016-05-19 12:40:09 +02:00
dnaranjo89
d28879d346
Clean ROSETTA_CACHE_NAME initialization
...
Just for readability
2016-05-19 12:38:51 +02:00
Neal Todd
9fca19ebfe
Fix IndexError in fix_nls when translation is just a carriage return
...
"string index out of range" occurs with a non-empty source string
where the user has (probably erroneously) entered a carriage return
in the translated string, e.g. fix_nls('x', '\r\n')
2016-05-18 16:53:00 +01:00
Marco Bonetti
7264033178
Merge branch 'develop' of github.com:mbi/django-rosetta into develop
2016-05-14 23:10:01 +02:00
Marco Bonetti
c80f2db4a3
removed an import test that was used to support Django 1.4
2016-05-14 23:09:40 +02:00
Marco Bonetti
49f486a00b
getting ready for 0.7.11
2016-03-30 21:25:55 +02:00
Marco Bonetti
8f3fafb73b
Merge branch 'develop' into pr/60
2016-03-22 09:34:12 +01:00
Marco Bonetti
24c3bde593
dont barf on unicode language names
2016-03-22 09:34:06 +01:00
Marco Bonetti
38eea0d8dd
updates style for language selector
2016-03-22 09:26:05 +01:00
Marco Bonetti
2dce7f9a77
fixes tests
2016-03-22 09:15:08 +01:00
Marco Bonetti
d1cb2455c4
Merge branch 'develop' into pr/60
2016-03-22 09:09:55 +01:00
Marco Bonetti
89660325fc
updates changelog
2016-03-22 08:45:08 +01:00
Neal Todd
1e3c832eec
Make MO file compilation optional, issue #155
2016-03-21 23:16:52 +00:00
Neal Todd
c20f1706cb
Fix an invalid page get parameter by falling back to page 1
2016-03-21 16:20:22 +00:00
Marco Bonetti
9cd3bc8113
Include the static directory in the dist packages. Fixes #162
2016-03-09 20:45:16 +01:00
Marco Bonetti
9402b5b62d
0.7.9 release
2016-03-08 10:14:15 +01:00
Marco Bonetti
a7edbf44ae
renamed the search icon to avoid clashing with django's own
2016-03-08 09:57:07 +01:00
Marco Bonetti
d135a1ae1a
Merge pull request #158 from facconi/develop
...
Fixes issues #157
2016-03-08 09:52:03 +01:00
Marco Bonetti
786b67e810
adds an explicit test to detect zh_Hans (for #161 )
2016-03-08 09:50:22 +01:00
Francesco Facconi
d300c5dbbe
Fixes issues #157
2016-02-15 12:56:19 +01:00
Marco Bonetti
6efeb337a3
Merge pull request #156 from AtaZh/develop
...
Update django.po
2016-02-15 10:40:11 +01:00
AtaZh
873053769d
Update django.po
2016-02-15 11:22:54 +02:00
Marco Bonetti
e5d7cf04ba
Merge pull request #153 from glasslion/develop
...
Fix issue #133 : Support discovering locale directories like zh_Hans(xx_Xxxx)
2016-02-08 22:30:35 +01:00
Leo Zhou
5969b598d7
Fix issue #133 : Support discovering locale directories like zh_Hans(xx_Xxxx)
2016-02-03 21:07:45 +08:00
Neal Todd
e3689afa76
Use language code without country specification for Yandex destination lang
2016-01-28 14:00:08 +00:00