Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make i18n optional or mention in documentation #3

Open
dschien opened this issue Sep 2, 2014 · 4 comments
Open

Make i18n optional or mention in documentation #3

dschien opened this issue Sep 2, 2014 · 4 comments
Assignees

Comments

@dschien
Copy link

dschien commented Sep 2, 2014

Hi,

I've set USE_I18N = False
and end up with COOKIE_INFO_HEADER and COOKIE_INFO_OK COOKIE_INFO_PARA in my pop up.

It might make sense to mention in documentation.

@gio82
Copy link

gio82 commented Jun 1, 2015

I've USE_I18N = True but the same issue.
How did you resolved it?
Thanks

@dschien
Copy link
Author

dschien commented Jun 1, 2015

Hi there. I'm sorry but I don't remember. I still have USE_I18N in my settings but it works. If I did make any adjustments - maybe by providing my own template - I don't remember.

@gio82
Copy link

gio82 commented Jun 1, 2015

Thanks anyway! :)

@piotrkilczuk piotrkilczuk self-assigned this Jun 2, 2015
@piotrkilczuk
Copy link
Member

Hello @gio82 @dschien,

Sorry for not replying earlier.

I will definitely update the README. It is not an absolute requirement but it's recommended to leave I18n enabled if you want everything to work out of the box. Otherwise you'll have to overwrite the template yourself (cookielaw/banner.html), e.g.:

<div id="CookielawBanner">
    <div class="container">
        <h6>Cookies disclaimer</h6>
        <p>
            <a class="btn btn-primary pull-right" href="javascript:Cookielaw.createCookielawCookie();">I agree</a>
            Our site saves small pieces of text information (cookies) on your device 
            in order to deliver better content and for statistical purposes. You can         
            disable the usage of cookies by changing the settings of your browser. By 
            browsing our website without changing the browser settings you grant us 
            permission to store that information on your device.
        </p>
    </div>
</div>

Of course this template will be resolved using standard django template search mechanisms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants