CookiesConsent icon indicating copy to clipboard operation
CookiesConsent copied to clipboard

Support other languages

Open jameltheone opened this issue 10 years ago • 7 comments

It would be cool to support other languages. Below is the translation for french:

<string name="dialog_title">Cette application utilise des cookies</string>

<string name="dialog_text">En continuant, vous donnez votre consentement quant à l\'utilisation des cookies en accord avec les termes définis dans notre %1$s.</string>
<string name="privacy_policy">politique de confidentialité</string>
<string name="linked_privacy_policy">&lt;a href=\'%1$s\'>politique de confidentialité&lt;/a></string>

<string name="exit_button_text">Quitter</string>
<string name="continue_button_text">Continuer</string>

jameltheone avatar Sep 28 '15 06:09 jameltheone

That's my intention, having the strings localized on as many languages as possible. Hope other devs can also help with their languages.

I just added your strings. You can already try them by changing the dependency to com.github.carlosph:cookiesconsent:0.9.1.

I'm also going to update the Readme file adding a section about the languages.

Thanks @jameltheone for your contribution.

Carlosph avatar Sep 28 '15 11:09 Carlosph

Hi, friend! I've translated your strings into Russian. May I use you library and write about it the article for Russian speakers on a big developer portal? Here the are:

<string name="continue_button_text">Продолжить</string> <string name="dialog_text">Мы используем идентификаторы устройств, чтобы отслеживать трафик, и делать контент и рекламу более персональными. Иногда мы делимся этой информацией с нашими партнерами: социальными сетями, рекламными и аналитическими службами.</string> <string name="dialog_title">Уведомление</string> <string name="exit_button_text">Закрыть</string> <string name="linked_privacy_policy">&lt;a href=\'%1$s\'>политика конфединциальности&lt;/a </string> <string name="privacy_policy">Политика конфединциальности</string>

StanislavZakharov avatar Nov 19 '15 12:11 StanislavZakharov

Hi @StanislavZakharov, sure you can use the library and mention it wherever you want. The more people know the library the better. That way it'll be more likely to get translated into more languages.

And about your translation, the text is great and very informative, but in this library I opted for a short and less detailed message. Just letting the user know that if they continue using the app they are accepting the privacy policy. The info about which data is collected and the reasons to collect them can be explained on the linked privacy policy.

I know that the title 'This app uses cookies' might not be technically accurate, but I think it is a title that won't scare the users because they see it frequently on webs and they will know what it's about.

Let me know what you think.

Carlosph avatar Nov 19 '15 18:11 Carlosph

Ok, thanks I will write a grate article about your library. It was my mistake, I copied the string from my project and do not see yours, just recommend to use them. Here the right translation of strings that you provide. Hope, you like the translation. Here the translation into Russian of your strings:

<string name="dialog_title">Данное приложение использует куки</string> <string name="dialog_text">Используя его, вы даете согласие на использование куки в соответствии с условиями нашего приложения %1$s.</string> <string name="privacy_policy">Политика конфеденциальности</string> <string name="linked_privacy_policy">&lt;a href=\'%1$s\'>политика конфеденциальности&lt;/a></string> <string name="exit_button_text">Выйти</string> <string name="continue_button_text">Продолжить</string>

StanislavZakharov avatar Nov 20 '15 09:11 StanislavZakharov

Great! Thanks for the article and the translations.

One last thing before adding the Russian translation. The translation google gives me for the dialog_text string is:

By using it, you consent to the use of cookies in accordance with the terms of our application

When that string is composed with the privacy_policy string, the result is translated to:

By using it, you consent to the use of cookies in accordance with the terms of the application of our policy of confidentiality.

The first one make more sense to me, but I don't know if it is just the translator messing with me :D. So, which of the two followings sentences would you choose:

  1. Используя его, вы даете согласие на использование куки в соответствии с условиями нашего политика конфеденциальности.
  2. Используя его, вы даете согласие на использование куки в соответствии с условиями нашего приложения политика конфеденциальности.

The first one translates better to English and Spanish, but the opinion of someone who speaks the language is always better that blindly trust the translator.

Carlosph avatar Nov 20 '15 10:11 Carlosph

Use this text:

Используя его, вы даете согласие на использование куки в соответствии с условиями нашей политики конфиденциальности.

In both sentence, you mention above is a little mistake in some words ending.

StanislavZakharov avatar Nov 20 '15 10:11 StanislavZakharov

Ok. Thanks for all. I'll add the strings and publish a new version with them later today.

Carlosph avatar Nov 20 '15 10:11 Carlosph