| ProjectCredentialsAddCredential Method (Uri, String) |
Namespace: Sdl.ProjectAutomation.FileBased
It is recommended to build the URIs using the TranslationProviderUriBuilder class. The following URIs are supported:
File-based translation memory: For a password-protected file-based translation memory, the URI should be of the form "sdltm.file://ABSOLUTE_TM_PATH" and the credential should be the password with which the TM should be unlocked.Server-based translation memory: For a server-based translation memory, an entry should be added for the TM Server itself. The URI should be of the form "sdltm.http[s]://HOSTNAME:PORT". The credentials should be of the form "user=[USERNAME];password=[PASSWORD];type=[TYPE]", where "user" is the user name, "password" the password and "type" on of the following: Windows: use the currently logged on Windows user; "user" and "password" do not have to be specified.CustomWindows: a non-Windows user defined on the TM Server; "user" should be a domain-qualified Windows user name and "password" should be the matching password.CustomUser: a non-Windows user defined on the TM Server. "user" should be the user name and "password" the matching password.GroupShare Project Server: For a server-based project, an entry should be added for the project server itself. The URI should be of the form "ps.http[s]://HOSTNAME:PORT". The credentials follow the same rules as for server-based translation memory credentials as described above.Termbases: For a server-based termbase, an entry should be added for the MultiTerm server itself. The URI should be of the form "termbase.http[s]://HOSTNAME:PORT". The credentials follow the same rules as for server-based translation memory credentials as described above.SDL ETS automated translation provider: The URI should be of the form 'sdlets.http://[USERNAME:@]HOST:PORT?dictionary=DICTIONARY&project=PROJECT'. The credential is the password.LanguageWeaver automated translation provider: The URI should be of the form "languageweavermt.http[s]://[USERKEY:@]HOST:PORT?apimodel=[SOAP|REST]". The credential should be the LanguageWeaver API key.Google automated translation provider: URI= "googlemt://", no credentials required.