Localization Guide
We want the Awesome Foundation website to be in as many languages as possible! If you're interested in helping us translate the site to a new language, just follow this guide...
Getting set up
- Download this file: https://raw.github.com/awesomefoundation/awesomebits/master/config/locales/en.yml (go to File -> Save Page As in your browser after clicking on the link)
- Open the file in a plain text editor
- Mac: You can use TextEdit, but make sure it is not in rich text mode using Format -> Make Rich Text. If you can bold or italicize something in the editor, you're in the wrong mode.
- Windows: You can use Notepad.
- Save the file as xx.yml, where xx is the two-letter language code for the language you are translating.
- On the first line of the file, change "en:" to "xx:"
You are now ready to enter the translations into this new YAML file!
The Basics
The file is a YAML file that will tell the website how to swap out the English-centric copy for other localizations. It's mostly about direct translation of every word on the page (the copy, the comments, the navigation, and even the metadata), but it can actually go beyond that to culturally-correct numbering & dates as well!
Simple Example
All you really need to do is go down the file, swapping out each phrase for the proper one in your language. For example, if you were doing French, you could change: Template:Thanks: "Thanks for applying!" to Template:Thanks: "Merci d'application!"
Quotation Marks
You may notice that some of the phrases have quotations marks around them while others do not. By default, quotation marks are not necessary. However, if your phrase has some funky symbols in it (like : or ! or < or >), you should put quotation marks around it so that it doesn't interfere with the code.