Merge pull request #5522 from sharifelgamal/loc-doc

Add documentation for adding translations
pull/5586/head
Sharif Elgamal 2019-10-09 15:56:28 -07:00 committed by GitHub
commit 4916c04ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 4 deletions

View File

@ -1,6 +1,6 @@
---
linkTitle: "gvisor"
title: "Releasing a gvisor image"
linkTitle: "gVisor"
title: "Releasing a gVisor image"
date: 2019-09-25
weight: 10
---
@ -13,7 +13,7 @@ weight: 10
## Background
gvisor support within minikube requires a special Docker image to be generated. After merging changes to `cmd/gvisor` or `pkg/gvisor`, this image will need to be updated.
gVisor support within minikube requires a special Docker image to be generated. After merging changes to `cmd/gvisor` or `pkg/gvisor`, this image will need to be updated.
The image is located at `gcr.io/k8s-minikube/gvisor-addon`
@ -28,6 +28,6 @@ The image is located at `gcr.io/k8s-minikube/gvisor-addon`
- Updates the containerd configuration
- Restarts containerd and rpc-statd
## Updating the gvisor image
## Updating the gVisor image
`make push-gvisor-addon-image`

View File

@ -0,0 +1,21 @@
---
title: "Translations"
date: 2019-09-30
weight: 3
description: >
How to add translations
---
All translations are stored in the top-level `translations` directory.
### Adding Translations To an Existing Language
* Run `make extract` to make sure all strings are up to date
* Add translated strings to the appropriate json files in the 'translations'
directory.
### Adding a New Language
* Add a new json file with the locale code of the language you want to add
translations for, e.g. en for English.
* Run `make extract` to populate that file with the strings to translate in json
form.
* Add translations to as many strings as you'd like.