schneidmaster / gitreports.com

Git Reports is a free service that lets you set up a stable URL for anonymous users to submit bugs and other Issues to your GitHub repositories.
MIT License
134 stars 26 forks source link

Translations support #79

Closed ad-m closed 9 years ago

ad-m commented 9 years ago

Is there any translations support for UI? I want to do full translation form into Polish, but I can't find any .po or .mo files.

schneidmaster commented 9 years ago

I have added support for translations for public-facing pages using i18n. For a Polish translation, please duplicate config/locals/en.yml to config/locals/pl.yml, translate the text, and submit a PR.

ad-m commented 9 years ago

Translation still doesn't work.

$ curl 'https://gitreports.com/issue/ad-m/poradnia.siecobywatelska.pl' -H 'Accept-Language: pl,pl_PL,pl-pl' 2>/dev/null | grep 'CAPTCHA'
            <p>Please complete the following CAPTCHA to prove that you&#39;re a human.</p>
schneidmaster commented 8 years ago

Ah, I had to add more code to check the request header. Should work now.

$ curl 'https://gitreports.com/issue/ad-m/poradnia.siecobywatelska.pl' -H 'Accept-Language: pl,pl_PL,pl-pl' 2>/dev/null | grep 'CAPTCHA'
        <p>Proszę przepisać następujący obrazek CAPTCHA, aby potwierdzić, że jesteś człowiekiem.</p>
ad-m commented 8 years ago

Thanks you very much. Everything work perfect in my browser:

zaznaczenie_335