Skip to content

Basic localization abilities#39

Open
LucaTNT wants to merge 2 commits into
cliss:masterfrom
LucaTNT:localization
Open

Basic localization abilities#39
LucaTNT wants to merge 2 commits into
cliss:masterfrom
LucaTNT:localization

Conversation

@LucaTNT

@LucaTNT LucaTNT commented Oct 11, 2014

Copy link
Copy Markdown

I just started using the accidentalbot for an Italian podcast, and I translated it.
So, I thought I would share my localization "system". I also attached the Italian translation.

Comment thread accidentalbot.js

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of hardcoding the language here, you get it from Accept-Language? That way you could serve up different languages to different users from the same running instance depending on their language settings for their browser.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried yet, but does the Accept-Language propagate through IRC?
This little hack of mine only applies to the bot part, not to the web interface.

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

Successfully merging this pull request may close these issues.

2 participants