diff --git a/README.md b/README.md index 75b0fce..b19c88a 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ and the config file with the following content which is required for the configu ```shell [main] -host=https://www.transifex.com +host=https://app.transifex.com ``` 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: ```ini [main] -host = https://www.transifex.com +host = https://app.transifex.com [o:organization-1:p:project-1:r:en_php] source_file = locale/en.php @@ -352,7 +352,7 @@ that, you can run the following command with Linux or Mac OS: ```sh tx add remote \ --file-filter 'translations/./.' - https://www.transifex.com/myorganization/myproject/dashboard/ + https://app.transifex.com/myorganization/myproject/dashboard/ ``` > 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: ```ini [main] -host = https://www.transifex.com +host = https://app.transifex.com [o:myorganization:p:myproject:r:resource1] file_filter = translations/myproject.resource1/.po @@ -437,7 +437,7 @@ You can limit the resources you want to push with: A resource ID must refer to a resource that has already been configured with `tx add` and has the form `.`. So, if the URL of your resource in Transifex is -`https://www.transifex.com/myorganization/myproject/myresource`, then the +`https://app.transifex.com/myorganization/myproject/myresource`, then the resource ID will be `myproject.myresource`. 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. - `--branch`: Using this flag, you can access copies of the regular remote resource that are tied to the provided branch. So if `tx push proj.res` - pushes to the `https://www.transifex.com/org/proj/res` resource, then `tx + pushes to the `https://app.transifex.com/org/proj/res` resource, then `tx push --branch foo proj.res` will push to the - `https://www.transifex.com/org/proj/foo--res` resource. This way you can + `https://app.transifex.com/org/proj/foo--res` resource. This way you can separate the localization effort across different branches. If you supply an empty string as the branch (`--branch ''`), then the client will attempt to 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. ``` This way, the "regular" - `https://www.transifex.com/myorganization/myproject/myresource` resource will + `https://app.transifex.com/myorganization/myproject/myresource` resource will not be affected by the changes you did to the source strings and the localization effort can be done in parallel on the - `https://www.transifex.com/myorganization/myproject/new_feature--myresource` + `https://app.transifex.com/myorganization/myproject/new_feature--myresource` resource. > Note: Starting from version 1.5.0 resources created using the `--branch` flag, @@ -752,9 +752,9 @@ following: `'default', 'reviewed'`, `'proofread'`, `'translator'`, `'untranslate - `--branch`: Using this flag, you can access copies of the regular remote resource that are tied to the provided branch. So if `tx pull proj.res` - pulls from the `https://www.transifex.com/org/proj/res` resource, then `tx + pulls from the `https://app.transifex.com/org/proj/res` resource, then `tx pull --branch foo proj.res` will pull from the - `https://www.transifex.com/org/proj/foo--res` resource. This way you can + `https://app.transifex.com/org/proj/foo--res` resource. This way you can separate the localization effort across different branches. If you supply an empty string as the branch (`--branch ''`), then the client will attempt to figure out the currently active branch in the local git repository. For @@ -769,10 +769,10 @@ following: `'default', 'reviewed'`, `'proofread'`, `'translator'`, `'untranslate ``` This way, the "regular" - `https://www.transifex.com/myorganization/myproject/myresource` resource will + `https://app.transifex.com/myorganization/myproject/myresource` resource will not be affected by the changes one did, and the localization effort can be done in parallel on the - `https://www.transifex.com/myorganization/myproject/new_feature--myresource` + `https://app.transifex.com/myorganization/myproject/new_feature--myresource` resource. - `--skip`: Normally, if a download fails, the client will abort. This may not diff --git a/cmd/tx/main.go b/cmd/tx/main.go index a39c6b5..2674ccd 100644 --- a/cmd/tx/main.go +++ b/cmd/tx/main.go @@ -739,7 +739,7 @@ func Main() { Subcommands: []*cli.Command{ { Name: "remote", - Usage: "tx add remote https://www.transifex.com/myorganization/myproject/dashboard/", + Usage: "tx add remote https://app.transifex.com/myorganization/myproject/dashboard/", Flags: []cli.Flag{ &cli.StringFlag{ Name: "file-filter", diff --git a/examples/exampleconf/.transifexrc b/examples/exampleconf/.transifexrc index e8babae..1218fa4 100644 --- a/examples/exampleconf/.transifexrc +++ b/examples/exampleconf/.transifexrc @@ -3,13 +3,13 @@ # Host section (can have multiple). # Host is chosen by the `.tx/config` host variable -[https://www.transifex.com] +[https://app.transifex.com] # Legacy config. API v2.5 host api_hostname = https://api.transifex.com # Legacy config. API v2 host -hostname = https://www.transifex.com +hostname = https://app.transifex.com # Legacy config. Username. If the username is `api` the password is an API token username = __username_or_api__ diff --git a/examples/exampleconf/.tx/config b/examples/exampleconf/.tx/config index 784a5c9..1232915 100644 --- a/examples/exampleconf/.tx/config +++ b/examples/exampleconf/.tx/config @@ -1,7 +1,7 @@ [main] # Points to `$HOME/.transifexrc` (RootConfig) host configuration # If a `.transifexrc` is found in the .tx directory it takes precedence -host = https://www.transifex.com +host = https://app.transifex.com # Example global language mapping (tranisfex language -> local languages) lang_map = de: de-Br, pt_BR: foo diff --git a/internal/txlib/add_remote_test.go b/internal/txlib/add_remote_test.go index 12a0674..f6c07de 100644 --- a/internal/txlib/add_remote_test.go +++ b/internal/txlib/add_remote_test.go @@ -55,7 +55,7 @@ func TestAddRemote(t *testing.T) { err := AddRemoteCommand( cfg, &api, - "https://www.transifex.com/orgslug/projslug/whatever/whatever/", + "https://app.transifex.com/orgslug/projslug/whatever/whatever/", // Lets make the file filter a bit weird "locale/./.", 50, diff --git a/internal/txlib/config/local_test.go b/internal/txlib/config/local_test.go index ad9b41f..59ff091 100644 --- a/internal/txlib/config/local_test.go +++ b/internal/txlib/config/local_test.go @@ -21,7 +21,7 @@ func TestLoadLocalConfig(t *testing.T) { } expected := LocalConfig{ - Host: "https://www.transifex.com", + Host: "https://app.transifex.com", Path: path, LanguageMappings: map[string]string{ "de": "de-Br", diff --git a/internal/txlib/config/root_test.go b/internal/txlib/config/root_test.go index cd18392..7356877 100644 --- a/internal/txlib/config/root_test.go +++ b/internal/txlib/config/root_test.go @@ -15,9 +15,9 @@ func TestLoadExampleRootConfig(t *testing.T) { expected := RootConfig{ Path: path, Hosts: []Host{{ - Name: "https://www.transifex.com", + Name: "https://app.transifex.com", ApiHostname: "https://api.transifex.com", - Hostname: "https://www.transifex.com", + Hostname: "https://app.transifex.com", Username: "__username_or_api__", Password: "__password_or_api_token__", RestHostname: "https://rest.api.transifex.com", diff --git a/internal/txlib/credentials.go b/internal/txlib/credentials.go index fbf776b..ec7c69b 100644 --- a/internal/txlib/credentials.go +++ b/internal/txlib/credentials.go @@ -95,7 +95,7 @@ func GetHostAndToken( restHostname = activeHost.RestHostname } else { // Fall back to defaults - hostname = "https://www.transifex.com" + hostname = "https://app.transifex.com" restHostname = "https://rest.api.transifex.com" } } @@ -110,7 +110,7 @@ func GetHostAndToken( fmt.Println("API token not found. Please provide it and it will " + "be saved in '~/.transifexrc'.") fmt.Println("If you don't have an API token, you can generate " + - "one in https://www.transifex.com/user/settings/api/") + "one in https://app.transifex.com/user/settings/api/") fmt.Print("> ") _, err := fmt.Scanln(&token) if err != nil { diff --git a/internal/txlib/init.go b/internal/txlib/init.go index 6a5ad12..c375758 100644 --- a/internal/txlib/init.go +++ b/internal/txlib/init.go @@ -61,7 +61,7 @@ func InitCommand() error { cfg := config.LocalConfig{ Path: configName, - Host: "https://www.transifex.com", + Host: "https://app.transifex.com", } err = cfg.Save() diff --git a/internal/txlib/init_test.go b/internal/txlib/init_test.go index 3c79eae..b2ac62e 100644 --- a/internal/txlib/init_test.go +++ b/internal/txlib/init_test.go @@ -74,7 +74,7 @@ func TestInitCreateFileContents(t *testing.T) { res := cfg.Local.Host - assert.Equal(t, res, "https://www.transifex.com") + assert.Equal(t, res, "https://app.transifex.com") } func TestDoesNotChangeConfigWhenAbort(t *testing.T) { diff --git a/internal/txlib/migrate.go b/internal/txlib/migrate.go index c96edbb..0434802 100644 --- a/internal/txlib/migrate.go +++ b/internal/txlib/migrate.go @@ -73,7 +73,7 @@ func MigrateLegacyConfigFile( } fmt.Println("If you don't have an API token, you can generate " + - "one in https://www.transifex.com/user/settings/api/") + "one in https://app.transifex.com/user/settings/api/") fmt.Print("> ") var token string _, err := fmt.Scanln(&token) diff --git a/internal/txlib/migrate_test.go b/internal/txlib/migrate_test.go index dbf65cd..293f966 100644 --- a/internal/txlib/migrate_test.go +++ b/internal/txlib/migrate_test.go @@ -154,9 +154,9 @@ func TestSuccessfulMigration(t *testing.T) { defer f.Close() _, err2 := f.WriteString(` - [https://www.transifex.com] + [https://app.transifex.com] api_hostname = https://api.transifex.com - hostname = https://www.transifex.com + hostname = https://app.transifex.com username = api password = apassword `) @@ -175,7 +175,7 @@ func TestSuccessfulMigration(t *testing.T) { _, err2 = f.WriteString(` [main] - host = https://www.transifex.com + host = https://app.transifex.com [projslug.ares] file_filter = locale/.po minimum_perc = 0 @@ -283,9 +283,9 @@ func TestSuccessfulMigrationWithSourceFileConstruction(t *testing.T) { defer f.Close() _, err2 := f.WriteString(` - [https://www.transifex.com] + [https://app.transifex.com] api_hostname = https://api.transifex.com - hostname = https://www.transifex.com + hostname = https://app.transifex.com username = api password = apassword `) @@ -304,7 +304,7 @@ func TestSuccessfulMigrationWithSourceFileConstruction(t *testing.T) { _, err2 = f.WriteString(` [main] - host = https://www.transifex.com + host = https://app.transifex.com [projslug.ares] file_filter = locale/.po minimum_perc = 0 @@ -385,9 +385,9 @@ func TestNeedsTokenInRootConfig(t *testing.T) { defer f.Close() _, err2 := f.WriteString(` - [https://www.transifex.com] + [https://app.transifex.com] api_hostname = https://api.transifex.com - hostname = https://www.transifex.com + hostname = https://app.transifex.com username = tk password = apassword `) @@ -406,7 +406,7 @@ func TestNeedsTokenInRootConfig(t *testing.T) { _, err2 = f.WriteString(` [main] - host = https://www.transifex.com + host = https://app.transifex.com [projslug.ares] file_filter = locale/.po minimum_perc = 0 @@ -479,7 +479,7 @@ func TestNoTransifexRcFile(t *testing.T) { _, err2 := f.WriteString(` [main] - host = https://www.transifex.com + host = https://app.transifex.com [projslug.ares] file_filter = locale/.po minimum_perc = 0 @@ -606,9 +606,9 @@ func TestResourceMigrationFailed(t *testing.T) { defer f.Close() _, err2 := f.WriteString(` - [https://www.transifex.com] + [https://app.transifex.com] api_hostname = https://api.transifex.com - hostname = https://www.transifex.com + hostname = https://app.transifex.com username = api password = apassword `) @@ -627,7 +627,7 @@ func TestResourceMigrationFailed(t *testing.T) { _, err2 = f.WriteString(` [main] - host = https://www.transifex.com + host = https://app.transifex.com [projslug1.ares] file_filter = locale/.po minimum_perc = 10 @@ -747,9 +747,9 @@ func TestBackUpFileCreated(t *testing.T) { defer f.Close() _, err2 := f.WriteString(` - [https://www.transifex.com] + [https://app.transifex.com] api_hostname = https://api.transifex.com - hostname = https://www.transifex.com + hostname = https://app.transifex.com username = api password = apassword `) @@ -768,7 +768,7 @@ func TestBackUpFileCreated(t *testing.T) { _, err2 = f.WriteString(` [main] - host = https://www.transifex.com + host = https://app.transifex.com [projslug.ares] file_filter = locale/.po minimum_perc = 0