Skip to content

Commit a42522c

Browse files
Nikos Vasileioucodegaze
authored andcommitted
Update hosts to app.transifex.com
1 parent 5da3ed3 commit a42522c

12 files changed

Lines changed: 42 additions & 42 deletions

File tree

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ and the config file with the following content which is required for the configu
121121

122122
```shell
123123
[main]
124-
host=https://www.transifex.com
124+
host=https://app.transifex.com
125125
```
126126

127127
In case there is already a `.tx/config` file in the current directory, the users
@@ -249,7 +249,7 @@ Your `.tx/config` file should look like this:
249249

250250
```ini
251251
[main]
252-
host = https://www.transifex.com
252+
host = https://app.transifex.com
253253

254254
[o:organization-1:p:project-1:r:en_php]
255255
source_file = locale/en.php
@@ -352,7 +352,7 @@ that, you can run the following command with Linux or Mac OS:
352352
```sh
353353
tx add remote \
354354
--file-filter 'translations/<project_slug>.<resource_slug>/<lang>.<ext>'
355-
https://www.transifex.com/myorganization/myproject/dashboard/
355+
https://app.transifex.com/myorganization/myproject/dashboard/
356356
```
357357

358358
> The use of tx add remote appends the content in the .tx/config file and does not overwrite it. However, if the project and resource exist in the .tx/config file, then it will overwrite the previous information for the specific project & resource.
@@ -364,7 +364,7 @@ remote project. ie the configuration file may look like this:
364364

365365
```ini
366366
[main]
367-
host = https://www.transifex.com
367+
host = https://app.transifex.com
368368

369369
[o:myorganization:p:myproject:r:resource1]
370370
file_filter = translations/myproject.resource1/<lang>.po
@@ -437,7 +437,7 @@ You can limit the resources you want to push with:
437437
A resource ID must refer to a resource that has already been configured with
438438
`tx add` and has the form `<project>.<resource>`. So, if the URL of your
439439
resource in Transifex is
440-
`https://www.transifex.com/myorganization/myproject/myresource`, then the
440+
`https://app.transifex.com/myorganization/myproject/myresource`, then the
441441
resource ID will be `myproject.myresource`.
442442

443443
You can also use the `*` character to select multiple resources with the same
@@ -544,9 +544,9 @@ fall back to taking the filesystem timestamp into account.
544544
545545
- `--branch`: Using this flag, you can access copies of the regular remote
546546
resource that are tied to the provided branch. So if `tx push proj.res`
547-
pushes to the `https://www.transifex.com/org/proj/res` resource, then `tx
547+
pushes to the `https://app.transifex.com/org/proj/res` resource, then `tx
548548
push --branch foo proj.res` will push to the
549-
`https://www.transifex.com/org/proj/foo--res` resource. This way you can
549+
`https://app.transifex.com/org/proj/foo--res` resource. This way you can
550550
separate the localization effort across different branches. If you supply an
551551
empty string as the branch (`--branch ''`), then the client will attempt to
552552
figure out the currently active branch in the local git repository. For
@@ -562,10 +562,10 @@ fall back to taking the filesystem timestamp into account.
562562
```
563563
564564
This way, the "regular"
565-
`https://www.transifex.com/myorganization/myproject/myresource` resource will
565+
`https://app.transifex.com/myorganization/myproject/myresource` resource will
566566
not be affected by the changes you did to the source strings and the
567567
localization effort can be done in parallel on the
568-
`https://www.transifex.com/myorganization/myproject/new_feature--myresource`
568+
`https://app.transifex.com/myorganization/myproject/new_feature--myresource`
569569
resource.
570570
571571
> Note: Starting from version 1.5.0 resources created using the `--branch` flag,
@@ -752,9 +752,9 @@ following: `'default', 'reviewed'`, `'proofread'`, `'translator'`, `'untranslate
752752
753753
- `--branch`: Using this flag, you can access copies of the regular remote
754754
resource that are tied to the provided branch. So if `tx pull proj.res`
755-
pulls from the `https://www.transifex.com/org/proj/res` resource, then `tx
755+
pulls from the `https://app.transifex.com/org/proj/res` resource, then `tx
756756
pull --branch foo proj.res` will pull from the
757-
`https://www.transifex.com/org/proj/foo--res` resource. This way you can
757+
`https://app.transifex.com/org/proj/foo--res` resource. This way you can
758758
separate the localization effort across different branches. If you supply an
759759
empty string as the branch (`--branch ''`), then the client will attempt to
760760
figure out the currently active branch in the local git repository. For
@@ -769,10 +769,10 @@ following: `'default', 'reviewed'`, `'proofread'`, `'translator'`, `'untranslate
769769
```
770770
771771
This way, the "regular"
772-
`https://www.transifex.com/myorganization/myproject/myresource` resource will
772+
`https://app.transifex.com/myorganization/myproject/myresource` resource will
773773
not be affected by the changes one did, and the localization effort can be done
774774
in parallel on the
775-
`https://www.transifex.com/myorganization/myproject/new_feature--myresource`
775+
`https://app.transifex.com/myorganization/myproject/new_feature--myresource`
776776
resource.
777777
778778
- `--skip`: Normally, if a download fails, the client will abort. This may not

cmd/tx/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ func Main() {
739739
Subcommands: []*cli.Command{
740740
{
741741
Name: "remote",
742-
Usage: "tx add remote https://www.transifex.com/myorganization/myproject/dashboard/",
742+
Usage: "tx add remote https://app.transifex.com/myorganization/myproject/dashboard/",
743743
Flags: []cli.Flag{
744744
&cli.StringFlag{
745745
Name: "file-filter",

examples/exampleconf/.transifexrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
# Host section (can have multiple).
55
# Host is chosen by the `.tx/config` host variable
6-
[https://www.transifex.com]
6+
[https://app.transifex.com]
77

88
# Legacy config. API v2.5 host
99
api_hostname = https://api.transifex.com
1010

1111
# Legacy config. API v2 host
12-
hostname = https://www.transifex.com
12+
hostname = https://app.transifex.com
1313

1414
# Legacy config. Username. If the username is `api` the password is an API token
1515
username = __username_or_api__

examples/exampleconf/.tx/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[main]
22
# Points to `$HOME/.transifexrc` (RootConfig) host configuration
33
# If a `.transifexrc` is found in the .tx directory it takes precedence
4-
host = https://www.transifex.com
4+
host = https://app.transifex.com
55

66
# Example global language mapping (tranisfex language -> local languages)
77
lang_map = de: de-Br, pt_BR: foo

internal/txlib/add_remote_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestAddRemote(t *testing.T) {
5555
err := AddRemoteCommand(
5656
cfg,
5757
&api,
58-
"https://www.transifex.com/orgslug/projslug/whatever/whatever/",
58+
"https://app.transifex.com/orgslug/projslug/whatever/whatever/",
5959
// Lets make the file filter a bit weird
6060
"locale/<project_slug><project_slug>.<resource_slug>/<lang>.<ext>",
6161
50,

internal/txlib/config/local_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func TestLoadLocalConfig(t *testing.T) {
2121
}
2222

2323
expected := LocalConfig{
24-
Host: "https://www.transifex.com",
24+
Host: "https://app.transifex.com",
2525
Path: path,
2626
LanguageMappings: map[string]string{
2727
"de": "de-Br",

internal/txlib/config/root_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ func TestLoadExampleRootConfig(t *testing.T) {
1515
expected := RootConfig{
1616
Path: path,
1717
Hosts: []Host{{
18-
Name: "https://www.transifex.com",
18+
Name: "https://app.transifex.com",
1919
ApiHostname: "https://api.transifex.com",
20-
Hostname: "https://www.transifex.com",
20+
Hostname: "https://app.transifex.com",
2121
Username: "__username_or_api__",
2222
Password: "__password_or_api_token__",
2323
RestHostname: "https://rest.api.transifex.com",

internal/txlib/credentials.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func GetHostAndToken(
9595
restHostname = activeHost.RestHostname
9696
} else {
9797
// Fall back to defaults
98-
hostname = "https://www.transifex.com"
98+
hostname = "https://app.transifex.com"
9999
restHostname = "https://rest.api.transifex.com"
100100
}
101101
}
@@ -110,7 +110,7 @@ func GetHostAndToken(
110110
fmt.Println("API token not found. Please provide it and it will " +
111111
"be saved in '~/.transifexrc'.")
112112
fmt.Println("If you don't have an API token, you can generate " +
113-
"one in https://www.transifex.com/user/settings/api/")
113+
"one in https://app.transifex.com/user/settings/api/")
114114
fmt.Print("> ")
115115
_, err := fmt.Scanln(&token)
116116
if err != nil {

internal/txlib/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func InitCommand() error {
6161

6262
cfg := config.LocalConfig{
6363
Path: configName,
64-
Host: "https://www.transifex.com",
64+
Host: "https://app.transifex.com",
6565
}
6666

6767
err = cfg.Save()

internal/txlib/init_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func TestInitCreateFileContents(t *testing.T) {
7474

7575
res := cfg.Local.Host
7676

77-
assert.Equal(t, res, "https://www.transifex.com")
77+
assert.Equal(t, res, "https://app.transifex.com")
7878
}
7979

8080
func TestDoesNotChangeConfigWhenAbort(t *testing.T) {

0 commit comments

Comments
 (0)