L20n/Features/Language Negotiation: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 65: Line 65:


Note: your project needs to be really small, or dynamically generate your html from templates; otherwise adding a locale to the list might be a pain requiring you to modify all html files.
Note: your project needs to be really small, or dynamically generate your html from templates; otherwise adding a locale to the list might be a pain requiring you to modify all html files.
=== Server side ===
Another possibility is the provide a server side component that would recognize requests to l20n files and serve the resource in the correct language.  This has the benefit of the server side negotiation being generaly more powerful than the client side one.
The exact details are TBD, but the following options are on the table:
* server mod (Apache, nginx)
* python library
* django middleware


== Discussion ==
== Discussion ==
canmove, Confirmed users
1,448

edits

Navigation menu