public interface TransifexService
| Modifier and Type | Method and Description |
|---|---|
void |
createXhtmlResource(String slug,
String title,
String content)
Create a new XHTML resource.
|
boolean |
deleteResource(String slug)
Delete resource.
|
String |
downloadTranslatedResource(String slug,
Locale locale)
Download translated resource.
|
String |
getTranslatedResource(String slug,
Locale locale)
Gets the translated resource.
|
boolean |
resourceExists(String slug)
Checks if resource exists on Transifex
|
void |
testCredentials()
Ping service to test credentials
|
void |
updatePropertiesXmlResource(String slug,
String title,
File file)
Create or update Java XML Properties resource.
|
void |
updateXhtmlResource(String slug,
String title,
String content)
Create or update XHTML resource.
|
boolean resourceExists(String slug)
slug - the resource slugboolean deleteResource(String slug) throws TransifexException
slug - the resource slugTransifexException - the transifex exceptionString getTranslatedResource(String slug, Locale locale) throws TransifexException
slug - the resource sluglocale - the localeTransifexException - the transifex exceptionvoid createXhtmlResource(String slug, String title, String content) throws IOException
slug - the slugtitle - the titlecontent - the contentIOException - Signals that an I/O exception has occurred.void updateXhtmlResource(String slug, String title, String content) throws IOException
slug - the slugtitle - the titlecontent - the contentIOException - Signals that an I/O exception has occurred.void updatePropertiesXmlResource(String slug, String title, File file) throws IOException
slug - the slugtitle - the titlefile - the fileIOException - Signals that an I/O exception has occurred.String downloadTranslatedResource(String slug, Locale locale) throws TransifexException
slug - the sluglocale - the localeTransifexException - the transifex exceptionvoid testCredentials()
throws TransifexException
TransifexException - the transifex exceptionCopyright © 2016. All rights reserved.