Created
March 17, 2012 20:49
-
-
Save pmuilu/2065151 to your computer and use it in GitHub Desktop.
Get Localization Java API: How to pull translations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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