Skip to content

Commit

Permalink
Merge pull request kubernetes#46749 from warmchang/typo
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Fix the typo in translations' README.md

**What this PR does / why we need it**:
Tiny fix the typo in README file.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
No issues.
  • Loading branch information
Kubernetes Submit Queue authored Jun 22, 2017
2 parents dd126ae + f2ed7ba commit 381729f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions translations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,29 @@ simple regular expression based wrapping of strings. It can always
use improvements to understand additional strings.

## Extracting strings
Once the strings are wrapped, you can extract strings from go files using
Once the strings are wrapped, you can extract strings from go files using
the `go-xgettext` command which can be installed with:

```console
go get github.com/gosexy/gettext/go-xgettext
```

Once that's installed you can run `hack/update-translations.sh`, which
Once that's installed you can run `./hack/update-translations.sh`, which
will extract and sort any new strings.

## Adding new translations
Edit the appropriate `k8s.po` file, `poedit` is a popular open source tool
for translations. You can load the `translations/kubectl/template.pot` file
to find messages that might be missing.

Once you are done with your `.po` file, generate the corresponding `k8s.mo`
file. `poedit` does this automatically on save, but you can also use
`hack/update-translations.sh` to perform the `po` to `mo` translation.
Once you are done with your `k8s.po` file, generate the corresponding `k8s.mo`
file. `poedit` does this automatically on save, but you can also run
`./hack/update-translations.sh` to perform the `po` to `mo` translation.

We use the English translation as the `msgid`.

## Regenerating the bindata file
Run `./hack/generate-bindata.sh, this will turn the translation files
Run `./hack/generate-bindata.sh`, this will turn the translation files
into generated code which will in turn be packaged into the Kubernetes
binaries.

Expand Down

0 comments on commit 381729f

Please sign in to comment.