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

Add language for internationalisation #9

Open
10 of 12 tasks
Pierre-Sassoulas opened this issue Apr 1, 2018 · 21 comments
Open
10 of 12 tasks

Add language for internationalisation #9

Pierre-Sassoulas opened this issue Apr 1, 2018 · 21 comments
Labels
enhancement This is a feature not a bug good-first-issue This issue is doable without a deep understanding of the project hacktoberfest IssueHuntFest
Projects

Comments

@Pierre-Sassoulas
Copy link
Owner

Pierre-Sassoulas commented Apr 1, 2018

The software is developed in english. Other available languages are :

Language asked by a user, but not available yet:

  • Hindi
  • Hungarian

If you're susceptible of using django-survey in a language that is not available, making and giving back the translation with a pull request would be very helpful.

Add your language in the LANGUAGE variable in the settings, like here.

Then you can translate with :

python manage.py makemessages
# python manage.py createsuperuser ? (You need to login for rosetta)
python manage.py runserver
# Access http://localhost:8000/admin to login
# Then go to http://localhost:8000/rosetta to translate
python manage.py makemessages --no-obsolete --no-wrap

If your language is not yet available in rosetta, this stack overflow question should work even for a language not handled by Django : https://stackoverflow.com/questions/12946830/

Do not forget to credit yourself like in the header see here

@Pierre-Sassoulas Pierre-Sassoulas added enhancement This is a feature not a bug help wanted labels Apr 1, 2018
@nsuzue
Copy link

nsuzue commented Apr 4, 2018

Can I help internationalization? I am Japanese, learning about web development using Django.

@Pierre-Sassoulas
Copy link
Owner Author

Pierre-Sassoulas commented Apr 4, 2018 via email

@IssueHuntBot
Copy link

@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt

@Pierre-Sassoulas Pierre-Sassoulas added this to High priority in Kanban Jan 9, 2019
@rahgurung
Copy link

@Pierre-Sassoulas i want to take this, which languages should I start with ?

@Pierre-Sassoulas
Copy link
Owner Author

Hi @gurungrahul2,

Thank you for your interest in this project. Right now we already have english, japanese, spanish and french. Apart from those, pick the language you are the most comfortable with, or the language in which you are the more likely to use this application yourself :)

@b3tyar
Copy link

b3tyar commented Jan 30, 2019

Hi Pierre,
Would you be interested in supporting Hungarian locale? I can give it a go, if it is interest you.

Cheers,
Peter

@Pierre-Sassoulas
Copy link
Owner Author

Sure @b3tyar, it would be great ! Feel free to ask questions if you need more info to get started.

@IssueHuntBot
Copy link

@Pierre-Sassoulas has rewarded $14.00 to @digglife. See it on IssueHunt

  • 💰 Total deposit: $20.00
  • 🎉 Repository reward(20%): $4.00
  • 🔧 Service fee(10%): $2.00

@Pierre-Sassoulas Pierre-Sassoulas added good-first-issue This issue is doable without a deep understanding of the project and removed help wanted labels Mar 1, 2019
@Pierre-Sassoulas Pierre-Sassoulas pinned this issue Mar 1, 2019
@apurvis
Copy link

apurvis commented Mar 26, 2019

question: i've been perusing the codebase, and it seems like you can only run a survey in one language at a time?

what if you wanted to have a survey that operated in multiple languages depending on the user's locale. is that possible? i can't immediately tell from looking at the code base.

@Pierre-Sassoulas
Copy link
Owner Author

@apurvis The interface itself can be changed by the user, the content of the survey's question is set in a particular language. We'd need to have multiple values in database (one for each language) if we wanted to also change the survey's question and answer language. this is not trivial, see https://code.djangoproject.com/wiki/ModelInterNationalization.

An easier solution (that don't scale that well), would be to manually create two surveys one in each language and redirect the user to the one of interest for him.

@Pierre-Sassoulas Pierre-Sassoulas moved this from High priority to Low priority in Kanban Sep 19, 2019
@sodrooome
Copy link

Hi Pierre, i want to help translate this documentation into Indonesian language, if its interest you

@Pierre-Sassoulas
Copy link
Owner Author

Hi @sodrooome , do you know where to start? Do you need me to create the .po file?

@sodrooome
Copy link

for now it might not be necessary, I will try to translate it according to the instructions that you made. Thank you for the respond

@ddhira123
Copy link

Hi, @Pierre-Sassoulas @sodrooome. Can I join you to help to translate this documentation in Bahasa Indonesia (Indonesian)?

@Pierre-Sassoulas
Copy link
Owner Author

Hi @ddhira123 thank you for wanting to translate django-survey. I think the easiest way to do it for you would be to start from zero, I think @sodrooome do not have a fork of the project right now and the last message is a year old (exactly :)) . I'd be happy to help you if you have any question.

@ddhira123
Copy link

Hi @Pierre-Sassoulas Would you mind if I ask you to create the configurations such as .po file and another things required so that I would need to only focus on translations? Thank you

@Pierre-Sassoulas
Copy link
Owner Author

@ddhira123 sure, let me know if https://raw.githubusercontent.com/Pierre-Sassoulas/django-survey/c8f0b5ba37981eb96c57a646ca279aea85cdee73/survey/locale/id/LC_MESSAGES/django.po is working for you ? It's in survey/locale/id/LC_MESSAGES/django.po on the latest master if you want to create a pull request :)

@ddhira123
Copy link

Hi @Pierre-Sassoulas I have done the translation in .po file you had referenced. Before I do the pull request, could you please put the tag hacktoberfest on your repo so my PR would be counted for hacktoberfest for this year? This is regarding the new rules stated here: https://hacktoberfest.digitalocean.com/hacktoberfest-update . Sorry for causing such troubles for you and Thank you for your hard work!

@Pierre-Sassoulas
Copy link
Owner Author

No problem I added the label :) Thank you for contributing !

@sotiriszogos
Copy link

Hello, I can add Greek language if you would like.

@Pierre-Sassoulas
Copy link
Owner Author

That would be very nice @sotiriszogos !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is a feature not a bug good-first-issue This issue is doable without a deep understanding of the project hacktoberfest IssueHuntFest
Projects
Kanban
  
TODO
Development

No branches or pull requests

9 participants