Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pt_BR translation errors and make compatible with Django 1.9 #119

Merged
merged 4 commits into from
Jan 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions avatar/locale/pt_BR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ msgstr ""
msgid ""
"%(ext)s is an invalid file extension. Authorized extensions are : %"
"(valid_exts_list)s"
msgstr "Extensão informada inválida. Os Formatos permitidos são : %"

msgstr "%(ext)s é uma extensão informada inválida. Os Formatos permitidos são : %"
"(valid_exts_list)s"
#: forms.py:38
#, python-format
msgid ""
Expand All @@ -37,7 +37,7 @@ msgid ""
"You already have %(nb_avatars)d avatars, and the maximum allowed is %"
"(nb_max_avatars)d."
msgstr "Você já possui %(nb_avatars)d fotos. O máximo permitido é %"

"(nb_max_avatars)d."
#: forms.py:56 forms.py:67
msgid "Choices"
msgstr "Opções"
Expand Down
8 changes: 4 additions & 4 deletions avatar/urls.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
try:
from django.conf.urls import patterns, url
from django.conf.urls import url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import patterns, url
from django.conf.urls.defaults import url

from avatar import views

urlpatterns = patterns('',
urlpatterns = [
url(r'^add/$', views.add, name='avatar_add'),
url(r'^change/$', views.change, name='avatar_change'),
url(r'^delete/$', views.delete, name='avatar_delete'),
Expand All @@ -19,4 +19,4 @@
url(r'^list/(?P<username>[\+\w\@\.]+)/(?P<id>[\d]+)/$',
views.avatar,
name='avatar'),
)
]