... | ... | @@ -9,6 +9,7 @@ This page will document how to translate different parts of Software Freedom Cam |
|
|
The available languages are configured inside the `config.toml` file in the `website` directory of the [camp repo](https://git.fosscommunity.in/community/camp). Any missing languages can be added following the same pattern there.
|
|
|
|
|
|
## Translating home page
|
|
|
- [https://git.fosscommunity.in/community/camp/-/forks/new](Fork the camp repo) to your account to edit files. Use Web IDE option to edit files in your fork.
|
|
|
- First find the language code from the `config.toml` file mentioned above. For eg. Malayalam language's code is `ml`. Then check if a file already exists with the name `ml.yaml` (`ml` here stands for Malayalam, for each language there should be separate file with their corresponding code name) inside `website/i18n` directory. If it exists, proceed to next step. If not copy an existing file, for eg. `en.yaml`, and rename it with the code of the language you want to translate to.
|
|
|
- Open `ml.yaml` file. You can find lines starting with `id` and `translation`. Lines starting with `id` shouldn't be changed. Translate all strings that comes after `translation: `. In case if the file is empty you can copy contents from `en.yaml` (which contains all strings used in the home page) and translate.
|
|
|
|
... | ... | @@ -16,6 +17,9 @@ The available languages are configured inside the `config.toml` file in the `web |
|
|
- Find the page you want to translate from `website/content/english` directory and copy them to `website/content/malayalam` (change `malayalam` to whatever [supported language](#available-languages) you want to translate to). You will want to manually create a directory for your language if it doesn't exist already.
|
|
|
- Keep the filenames as such and translate the content.
|
|
|
|
|
|
## Submit translation for review
|
|
|
Use create merge request option in your fork to submit your changes.
|
|
|
|
|
|
# Announcements
|
|
|
|
|
|
## Camp announcement:
|
... | ... | |