poeditor-java
Client for the POEditor API in Java. Manage translation projects in Java.
To suggest changes, please submit an Issue or Pull Request.
Download
Download the latest JAR or grab via Maven:
<dependency>
<groupId>be.lukin.poeditor</groupId>
<artifactId>poeditor-client</artifactId>
<version>0.3.3</version>
</dependency>
or gradle:
compile 'be.lukin.poeditor:poeditor-java:0.3.3'
Usage
// Create a client with your api key
POEditorClient client = new POEditorClient("your api key");
// Fetch project details
Project project = client.client.getProject("your project Id");
// Download a translation for Android
File french = client.export("your project Id", "fr", FileTypeEnum.APPLE_STRINGS, null);
// Upload a language and do not overwrite existing translations, only a new translations
File dutch = new File("./android.xml");
UploadDetails details1 = client.uploadLanguage("your project Id", dutch, "nl", false);
// Upload terms
UploadDetails details2 = client.uploadTerms("your project Id", dutch);
License
Copyright 2015 Maarten Huijsmans
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.