On Tuesday, December 4, 2012 8:58:38 PM UTC-8, Pedro J. Aramburu wrote:
I hope someone could help me. My main language is Spanish but when I write code I like it to be en english. Being that way it will be easier to open source something in the future. The main problem is the app name in the Admin Site. For example, I'm writing a kind of eCommerce site without the ability to make transactions (or buy) online. So it's more like a product catalog/catalogue. For that reason I created a catalog app with the desired modules, etc. When I configure the admin site then, I have the Catalog section with the CRUD for the models but, as my main language is Spanish, my clients also read Spanish so instead of "Catalog" it should say "Catálogo".
I've read the documentation and googled a lot and find some "solutions" but they were pretty old. The most promising was to modify the admin site templates and put something like the following on the __init__.py file:
from django.utils.translation import ugettext_noop as _
That way the makemessages would pick the string and then I could translate it. Well, it didn't work.
Have been any progress regarding this subject? Have anyone had to deal with something like this? Can I change the app name in some way or the app_label? What's the difference? How should approach it? Isn't somewhere a verbose_name for apps or something? Even if it's hard coded, with no translation.
Thank you in advance for your time.