Commit graph

221 commits

Author SHA1 Message Date
Iacopo Spalletti
a73e7edc8e Add search in msgctxt 2018-11-20 10:21:15 +01:00
David Jean Louis
4c17dd805f Allow overriding rosetta login url.
* Added a settings variable ``ROSETTA_LOGIN_URL`` that allows to
  override the login URL for rosetta.
* No test is included because it is not possible to override this
  particular setting variable due to how tests are organized (top level
  import of rosetta_settings).
2018-11-14 12:45:56 +01:00
Marco Bonetti
caa4806e42 PEP8 fix and version pre-bump 2018-08-24 14:21:47 +02:00
Claude Paroz
c7bbf68cf3 Removed old compatibility code for Django < 1.11 2018-08-24 10:11:14 +02:00
Marco Bonetti
9cd7fd9b27 0.9.0 release 2018-08-24 09:11:26 +02:00
Marco Bonetti
daef242974 Fix pep8, dropped Django 1.8, 1.9, 1.10 from the test config 2018-08-24 08:54:52 +02:00
Claude Paroz
a616412ef1 Removed access to old ADMIN_* variables
This commit will break the alert image for Django 1.8, but with the current code,
all versions after Django 1.8 are broken (.gif admin images were converted to .svg
during the 1.9 release).
2018-08-23 21:14:46 +02:00
Claude Paroz
f6ed983013 Removed old compatibility code for Django < 1.8 2018-08-23 20:25:09 +02:00
Marco Bonetti
00f7e5a432 Why we can't use override_settings… 2018-08-17 16:21:44 +02:00
Marco Bonetti
dd4d653a84 Fixes #203: ROSETTA_REQUIRES_AUTH not being respected 2018-08-17 16:05:03 +02:00
Marco Bonetti
0e77a93552 Adds a test for Azure translation 2018-08-07 08:28:21 +02:00
Marco Bonetti
e3dd1f9b91 Replace the (no longer working) Microsoft translation API with the new Azure Translator API (Fixes #200 and #201, thank you @svdvonde) 2018-08-07 08:05:03 +02:00
Marco Bonetti
3b3d63eecd Removed a few references to microsofttranslator and fixed the translation path 2018-08-06 22:47:27 +02:00
Sam Van den Vonder
8c7efe32df change unicode characters in comment text that error'd python 2.7 tests 2018-08-06 22:14:24 +02:00
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