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

adding language options #17

Open
chupinmaxime opened this issue Oct 11, 2023 · 4 comments
Open

adding language options #17

chupinmaxime opened this issue Oct 11, 2023 · 4 comments

Comments

@chupinmaxime
Copy link

Thanks for this package.
Is that possible to add language options for the keywords ?

@chupinmaxime
Copy link
Author

chupinmaxime commented Oct 11, 2023

For french:

\algrenewcommand\algorithmicend{\textbf{fin}}
\algrenewcommand\algorithmicdo{\textbf{faire}}
\algrenewcommand\algorithmicwhile{\textbf{tant que}}
\algrenewcommand\algorithmicfor{\textbf{pour}}
\algrenewcommand\algorithmicforall{\textbf{pour tous}}
\algrenewcommand\algorithmicloop{\textbf{boucle}}
\algrenewcommand\algorithmicrepeat{\textbf{répéter}}
\algrenewcommand\algorithmicuntil{\textbf{jusqu’à}}
\algrenewcommand\algorithmicprocedure{\textbf{procédure}}
\algrenewcommand\algorithmicfunction{\textbf{fonction}}
\algrenewcommand\algorithmicif{\textbf{si}}
\algrenewcommand\algorithmicthen{\textbf{alors}}
\algrenewcommand\algorithmicelse{\textbf{sinon}}
\algrenewcommand\algorithmicrequire{\textbf{Données :}}
\algrenewcommand\algorithmicensure{\textbf{Demandé :}}
\algrenewcommand\algorithmicreturn{\textbf{retourner}}
\algrenewcommand\algorithmicoutput{\textbf{sortie}}

@chrmatt
Copy link
Owner

chrmatt commented Oct 12, 2023

Thank you for the suggestion and for providing the French translations! I'll consider adding an option for a future release.

@plafourc
Copy link

Hello, I just wanted to point out that the French translation «pour tous» feels wrong in my experience. I have only seen and used «pour tout» instead. I know you could argue that this latter translation is closer in meaning to "for each", but even then the actual translations of "for each" and "for all" I saw are «pour chaque» and «pour tout» resp. The rest looks good to me, and I thank you all for this issue: a French option would be really neat.

@plafourc
Copy link

I’m not sure it is relevant, but someone seems to have made a French mod for algorithmicx: https://github.com/olirwin/frpseudocode/

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