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

Spanish version #17

Open
sirikon opened this issue Oct 20, 2014 · 12 comments · May be fixed by #26
Open

Spanish version #17

sirikon opened this issue Oct 20, 2014 · 12 comments · May be fixed by #26

Comments

@sirikon
Copy link

sirikon commented Oct 20, 2014

I could translate this to spanish, this is a so useful resource that would help some spanish students a lot when they start to learn the basics of computer science.

@r0nk
Copy link
Owner

r0nk commented Oct 20, 2014

This sounds like a great idea, however my only concern is something like this http://kotaku.com/5880007/racial-epithet-shows-up-on-minecraft-menu-developer-apologizes?tag=minecraft
Happening, not accusing you of anything, as you already seem to have a pretty good standing on github, but as support for other languages might be added, a good system to address things like that might be good to discuss now.

@sirikon
Copy link
Author

sirikon commented Oct 20, 2014

I understand, and I can assure you, as native spanish, that I'll take care that everything sounds right and is politically correct.

A way to do this, as this project uses HTML directly without PHP/Ruby/Python/Node or something in the backend, is create a folder for every translation (Main: simplecpu.com, spanish: simplecpu.com/es, etc...), those folders would be clones of the english version but with resources in his respective language, and after, release only the translations that we are sure that are correct and safe, labeled with stable or something like that.

The translations versions labeled as "safe", can be in a url like simplecpu.com/beta/... with "unstable" releases, with a link to the Issues section in this repository to report wrong translations.

@r0nk
Copy link
Owner

r0nk commented Oct 20, 2014

Ok, this sounds like a good system.
Just out of curiosity, as you probably know a bit more about this then I do, is there a standard way for people to look for Spanish versions of websites? I'm thinking about how Spanish speaking people will find the Spanish version of the site.

@sirikon
Copy link
Author

sirikon commented Oct 20, 2014

There are a few methods:

Automatically in the backend: When the server receives a request, there are some ways to get the user's default language.
Automatically in the frontend: (bad method, kills the SEO) Get the user's language and then redirect to the right place (JavaScript).
Manually in the frontend: A combobox/list/whatever of languages/flags at the page's header to select a specific language.

I think the best way is combine the third method (manually in the frontend) with this:

<html lang="es" dir="ltr">

In each page, specify the "lang" attribute with the language code, this will help Google to give to the user the page with the right language (anyway Google can get it using the Google Translator's algorythm to recognize languages)

@WANG-lp
Copy link

WANG-lp commented Oct 21, 2014

This is a cool project. I can translate this to Chinese.

@r0nk
Copy link
Owner

r0nk commented Oct 21, 2014

The 'es' directory with all the relevant files has been added, feel free to fork it and translate.

@nikolavp
Copy link

If there are po files I might be able to translate this to Bulgarian(will be cool)

@mgarciaisaia
Copy link

I've been translating LearnGitBranching, and Peter found a way to auto-translate the site. Surely you can get inspired by that.

I'll try to translate this project to Spanish soon :)

mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
@sirikon
Copy link
Author

sirikon commented Nov 7, 2014

That's awesome, thanks @mgarciaisaia

@mgarciaisaia
Copy link

Maybe tonight I finish it :)

@r0nk, do you know how you'll deploy this? I'm currently testing this by symlinking scripts/, scripts/ and styles/ to the parent's directories. And it would be difficult to maintain as the original version gets updated.

mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
mgarciaisaia pushed a commit to mgarciaisaia/simplecpu that referenced this issue Nov 7, 2014
Fixes r0nk#17
I decided not to translate the cpu.js file so it's not _that_ difficult to maintain.
There are a few words which could have been translated ('address', 'value'), but I
think it's not worth it.
@mgarciaisaia mgarciaisaia linked a pull request Nov 7, 2014 that will close this issue
@r0nk
Copy link
Owner

r0nk commented Nov 7, 2014

What I'm going to do next with the translation I haven't figured out yet. Ways to deploy is is something I'm going to research soon (currently I'm recovering from my first attempts to tinker with the linux kernel, so I have to re-setup everything.) The patch and general interest is awesome though, so as soon as everythings not on fire I should be able to craft a good system for this.

@mgarciaisaia
Copy link

Hey, great.

Not for this weekend, but I'll see if I am able to understand how LGB works
and apply it here.

I'll probably never do that, really - my attention span sucks - but I'd
probably publish the Spanish version on GitHub:Pages with a link to the
English version, and maybe make a PR with a link to the Spanish version.

If any time in the future I get inspired and do anything better, I'll let
you know, but at least doing that I can give this to the Operating Systems
students at my university.

What I'm going to do next with the translation I haven't figured out yet.
Ways to deploy is is something I'm going to research soon (currently I'm
recovering from my first attempts to tinker with the linux kernel
http://imgur.com/rFJfi, so I have to re-setup everything.) The patch and
general interest is awesome though, so as soon as everythings not on fire I
should be able to craft a good system for this.


Reply to this email directly or view it on GitHub
#17 (comment).

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

Successfully merging a pull request may close this issue.

5 participants