Skip to content
/ gltoolkit Public

Minimal toolkit to extract .po files from getlocalization.com

Notifications You must be signed in to change notification settings

ooxi/gltoolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gltoolkit

Minimal toolkit to extract .po files from GetLocalization.com as part of a CMake build process, or as standalone task.

Build Status

Building gltoolkit

Since gltoolkit uses CMake, building the standalone executable is fairly easy

$ git clone https://github.com/ooxi/gltoolkit.git gltoolkit
$ mkdir gltoolkit/build; cd gltoolkit
$ git submodule init; git submodule update; cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCURL_STATICLIB=ON ..
$ make && ./test-gltoolkit

If you need a debug build, specify CMAKE_BUILD_TYPE as Debug and rebuild.

GetLocalization.com API

Detailed information about the Get Localization API is available at the Get Localization Help Desk.

This library uses only two different Webservice calls, both member of the frozen REST API:

Retrieve list of product languages

http://www.getlocalization.com/api/languages/?product=<product>&type=xml

If type is xml, the output data is in following XML format

<Languages>
    <Language>
        <Name>German</Name>
        <IanaCode>de</IanaCode>
    </Language>
    <Language>
        <Name>Russian</Name>
        <IanaCode>ru</IanaCode>
    </Language>
</Languages>

Retrieve translations in XML

http://www.getlocalization.com/api/localized_strings/<product>/<iana-code>/

The data output in XML format, the list of all information of a master string

<GLStrings>
    <product>violetland</product>

    <GLString>
        <MasterString>Please wait...</MasterString>
        <LogicalString></LogicalString>
        <ContextInfo>../src/program.cpp:183 ../src/program.cpp:346</ContextInfo>
        <Translation>Bitte warten...</Translation>
    </GLString>
    <GLString>
        <MasterString>Try to survive as long as you can.</MasterString>
        <LogicalString></LogicalString>
        <ContextInfo>../src/program.cpp:205</ContextInfo>
        <Translation>Versuche so lange wie möglich zu überleben.</Translation>
    </GLString>
<GLStrings>

About

Minimal toolkit to extract .po files from getlocalization.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published