-
Notifications
You must be signed in to change notification settings - Fork 11
Localization
NimeshNarayanan edited this page Oct 26, 2017
·
4 revisions
Please refer to the documentation Addition to the documentation, from point 6 on Notes for backend localisers follow the bellow points,
Point 6's continuation,
NOTE: If you are making changes to the existing translation do command in point
number 3,make your changes and then point number 6 then only you will see the
changes in the site.
- To trigger language change in the site go to file
base.py
at locationpari/pari/settings/
and changeENABLE_SITE_LOCALIZATION
toTrue
and add yourlanguage code
inLANGUAGE_CODE
. - Now on the entire site you will get the url having your LANGUAGE_CODE in it. (Only for the homepage, language will be 'en' but you will be able to see your translation so don't worry). You can also play by changing the language code in the url to get the translations for the language.
- For committing into git its better to commit both the
.po
as well as.mo
file so that if anyone wants to edit, it would come in handy. There is already a 'fr' folder inside the locale directory for reference.