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 i18n system and spanish translation #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nestor-m
Copy link
Owner

I add a very basic i18n system which let the users (who don't need to be a programmer) to make their own translation of the messages of the game. The system takes the LOCALE from the host system to create a file which the user have to edit in order to have a translated version of the game. If the LOCALE is English or Spanish the users doesn't need to do anything because I already created both files for those languages.

@@ -350,7 +352,7 @@ int test() {
}

void signal_callback_handler(int signum) {
printf(" TERMINATED \n");
printf(" %s \n",LOCALE_WORDS[1]);
Copy link

Choose a reason for hiding this comment

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

👍 esto esta bien así aunque este raro, ya que esta gente no deja espacio luego de la ,

@josx
Copy link

josx commented May 28, 2019

Esta bien lo que hiciste, resuelve el problema.
Es medio raro como lo hace ya que tenes que generar código (el include dinámico que hace).

Para que sepas no es una estrategia buena, ni elegante para resolver este tipo de problemas que ya hay formas estandarizadas.

@nestor-m
Copy link
Owner Author

nestor-m commented May 28, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants