Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Update glossary documentation for project (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng authored Sep 22, 2016
1 parent e48e996 commit a6e96af
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
7 changes: 6 additions & 1 deletion docs/commands/glossary-delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ This command will:
1. Look up the server config from `zanata.xml`.
2. Delete glossary entry with id `1005`

To delete all glossary in Zanata
To delete all system glossary entries

```bash
zanata-cli glossary-delete --all
```

To delete all project glossary entries
```
zanata-cli glossary-delete --all --project project1
```

To see all options available for `glossary-delete` option:
```bash
zanata-cli help glossary-delete
Expand Down
18 changes: 17 additions & 1 deletion docs/commands/glossary-pull.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
To download glossary entries from Zanata, the command-line client's `glossary-pull` command can be used.

### Pull from System glossary

```bash
zanata-cli glossary-pull
```

This command will:

1. look up the server config from `zanata.xml`.
1. Look up the server config from `zanata.xml`.
2. Download all glossary entries in server
3. The file will be in `.csv` format. (default)

### Pull from Project glossary

```bash
zanata-cli glossary-pull --project project1
```

This command will:

1. look up the server config from `zanata.xml`.
2. Download all glossary entries from `project1` in server
3. The file will be in `.csv` format. (default)

### Pull in different format

To download in different format, use the `--file-type` options (csv or po).
For example:

Expand Down
21 changes: 19 additions & 2 deletions docs/commands/glossary-push.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
To push glossary entries to Zanata, the command-line client's `glossary-push` command can be used.

The source language of the glossary file should be in `en-US`

### Push to System glossary

```bash
zanata-cli glossary-push --file glossary.csv
```
Expand All @@ -10,7 +13,21 @@ This command will:
1. Look up the server config from `zanata.xml`.
2. Push glossary.csv file to Zanata.

To push a po file, `--trans-lang` option will be needed.
### Push to Project glossary

```bash
zanata-cli glossary-push --file glossary.csv --project project1
```

This command will:

1. Look up the server config from `zanata.xml`.
2. Push glossary.csv file to `project1` in Zanata.


### Push po file

`--trans-lang` option will be needed.
For example:

```bash
Expand All @@ -20,4 +37,4 @@ zanata-cli glossary-push --file german-glossary.po --trans-lang de
To see all options available for `glossary-push` option:
```bash
zanata-cli help glossary-push
```
```

0 comments on commit a6e96af

Please sign in to comment.