TransifexRunnerAliases Class

Summary

Provides a wrapper around transifex client functionality within a Cake build script.
Assembly
Cake.Transifex.dll
Namespace
Cake.Transifex
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["TransifexRunnerAliases"] class Type type-node

Syntax

public static class TransifexRunnerAliases

Attributes

Type Description
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Methods

Name Value Summary
TransifexInit(ICakeContext) void
This command initializes the current repository with a default configuration file, and sets the host to www.transifex.com.
static
TransifexInit(ICakeContext, TransifexInitSettings) void
This command initializes the current repository with a default configuration file, and optionally the user configuration file with either a Username + Password combination or an API token.
static
TransifexPull(ICakeContext) void
This command pulls all outstanding changes from the remote Transifex server to the local repository. By default only the files that are watched by transifex will be updated.
static
TransifexPull(ICakeContext, TransifexPullSettings) void
This command pulls all outstanding changes from the remote Transifex server to the local repository. By default, only the files that are watched by Transifex will be updated but if you want to fetch the translations for new languages as well, set the All property to true in the settings.
static
TransifexPush(ICakeContext) void
This command pushes all local files that have been added to Transifex to the remote server. All new translations are merged with existing ones and if a language doesn't exist then it is created.
static
TransifexPush(ICakeContext, TransifexPushSettings) void
This command pushes all local files that have been added to Transifex to the remote server. All new translations are merged with existing ones and if a language doesn't exist then it gets created. If you want to push the source file as well (either because this is your first time running the client or because you have updated with new entries), set the UploadSourceFiles to true. By default, this command will push all files which are watched by Transifex but you can filter this per resource or/and language.
static
TransifexStatus(ICakeContext) void
Prints the status of the current project by reading the data in the configuration file.
static
TransifexStatus(ICakeContext, string) void
Prints the status of the current project by reading the data in the configuration file, but only for the specified resources.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin