Skip to content

Commit

Permalink
update transifex config
Browse files Browse the repository at this point in the history
use `tx update` to update your client
  • Loading branch information
lachlan-00 committed Jan 5, 2023
1 parent b82f17d commit fd277b8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.settings/
.fleet/
.vscode/
.idea/
.settings/
.tx/config_*.bak
.vscode/
.buildpath
.env
.pc
Expand Down
5 changes: 3 additions & 2 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[main]
host = https://www.transifex.com

[ampache.messagespot]
[o:ampache:p:ampache:r:messagespot]
file_filter = locale/<lang>/LC_MESSAGES/messages.po
source_file = locale/base/messages.pot
source_lang = en
type = PO
type = PO

40 changes: 40 additions & 0 deletions locale/base/TRANSLATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,43 @@ Benifits to using the Transifex platform include:
If you have further questions, please feel free to open an issue here or start a new thread on our GoogleGroups forum and ask for @Psy-Virus - The Translation Guy.

Thanks and happy localizing!

## Transifex Client

To configure and use translations you need to have access tothe project and an API token to use for the client.

https://developers.transifex.com/docs/cli

### Basic Use

You can install the latest Transifex CLI by executing:

```
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
```

Now migrate your old config if you had it installed previously

```
tx migrate
```

With the cli tool you can pull the changes to the messages with

```
tx pull
```

Here is an example of my migrated config file (~/.transifexrc) which allows me to pull the translations

```
[https://www.transifex.com]
api_hostname = https://api.transifex.com
hostname = https://www.transifex.com
username = api
password = 1/2345675623876238476103450278634925761291
rest_hostname = https://rest.api.transifex.com
token = 1/2345675623876238476103450278634925761291
```


0 comments on commit fd277b8

Please sign in to comment.