Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[OSQA-937] Localization is not applied properly #499
[reporter="ajite", created="Tue, 11 Feb 2014 21:39:00 -0500"]
sumafu:oh,you are right!
I also tried to add some file path and line position into the .po file
And have any progress, I will reply on this.
Are you sure your locale path is properly set in your settings_local.py ?
USE_I18N = True
I think I had to delete all compiled files after changing the path to make it work.
I have read many times people struggling to make the german locale works on osqa forums (now answerhub).
Yes unfortunatelly I could not make it work. Maybe i can try with your corrected version.
I currently work on a modded version, so I downloaded a fresh OSQA on this repository and made both fr and es locale work.
a - set the debug to true
b- set a sqlite db
c- added the local config for spanish
d- removed some modules to get rid of error messages
And voila, it was working.
Sorry for bad formating. Hope it helps.
Edit: maybe I should add that I use WIndows 8
And now~I was edit the .po file, fortunately,it work!
the way to edit is referance the .po file and locate the translation like other,add or edit。
if you need the .po file which I used,please leave your email.
I have made the Chinese localization work with the following settings in settings_local.py, thanks to @amnotthere :
TIME_ZONE = 'Asia/Shanghai' USE_I18N = True LANGUAGE_CODE = 'cn' LOCALE_PATHS = (os.path.join(os.path.dirname(__file__),'locale').replace('\\','/'),)
@vekunz Note the four underscores in the 3rd line...