wlansu committed e459635

multilingual support added

Comments (0)

Files changed (7)

 to tell. I'm not a lawyer, so use at your own risk.
+From 0.1.6 to 0.1.7
+The model has changed, run South migrations. Multilingual support has been added.
+From 0.1.4 to 0.1.5
 If you're updating from 0.1.4 to 0.1.5 take note that the CookieBar model has changed,
 you should run the South migrations.
 - jQuery
 - Add the cookie_law app to your INSTALLED_APPS.
 - Add 'url(r'^cookies/', include('cookie_law.urls')),' to your main, without the ''.
-- Run the cookie_law migrations or syncdb if you don't use South.
+- Run the cookie_law migrations or syncdb if you don't use South, but you should.
 - Load the cookie_bar template tags and include {% show_cookie_bar %} under the <body> tag in your base template.
 - Create a cookie bar in the admin (if you do not a default bar will be created, you should edit this asap).
 - Surround your cookies with {% if request.COOKIES.allow_cookies == '1' %} <cookie> {% endif %}
+Multilingual Support
+If you want multilingual support add the languages you want to your settings file.
+LANGUAGES = (('nl','Nederlands'), ('en','English'))
+Every time the cookie bar template tag is called it will check if a cookie bar exists for each language,
+if not; one will be created. It is up to you to translate these into the right language.
+You can do this via the admin.
+The multilingual support works by checking for a LANGUAGE_CODE in the request.
+Localization middleware should handle this. If this doesn't exist the default Dutch cookie bar will be used.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.