Skip to content

Instantly share code, notes, and snippets.

@pmuilu
Created March 17, 2012 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmuilu/2065151 to your computer and use it in GitHub Desktop.
Save pmuilu/2065151 to your computer and use it in GitHub Desktop.
Get Localization Java API: How to pull translations
GLProject project = new GLProject("myProject",
"username",
"password");
GLTranslations translations = new GLTranslations(project);
try {
translations.pull("/my/directory");
} catch (GLException e) {
// Handle exception, e.g. wrong username/password
} catch (GLServerBusyException e) {
// Too much traffic on the server right now, try again later.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment