Code Monkey home page Code Monkey logo

Comments (10)

m-kuhn avatar m-kuhn commented on September 24, 2024

For the database to .ts converter.

The end result should look like this for german (untested)

<?xml version="1.0" ?>
<!DOCTYPE TS>
<TS version="2.0" language="de" sourcelanguage="en">
<context>
    <name>database</name>
    <message>
        <source>english</source>
        <translation>german</translation>
    </message>
    <message>
        <source>english</source>
        <translation>german</translation>
    </message>
</context>
</TS>

Instead of a database export into another format and subsequent processing to XML (.ts) it might be possible to achieve this file (or a file that needs only a little adjustment) by using postgres xml functions.

from qgep.

3nids avatar 3nids commented on September 24, 2024

The function to list translated elements has been committed.
https://github.com/qgep/QGEP/blob/master/datamodel/translated_elements.sql

from qgep.

3nids avatar 3nids commented on September 24, 2024

COPY (SELECT * FROM qgep.translated_elements()) TO STDOUT WITH CSV;

from qgep.

3nids avatar 3nids commented on September 24, 2024

duplicate #46 ?

from qgep.

m-kuhn avatar m-kuhn commented on September 24, 2024

Possible approaches (taken from #46):

  • Script to translate the project file
  • Have support for project file translation in QGIS core
  • Instead of saving a project file load the project with a plugin

from qgep.

m-kuhn avatar m-kuhn commented on September 24, 2024
  • Translation of the project file for the demo project
  • In the long run, load the project with a plugin and handle translation there

from qgep.

m-kuhn avatar m-kuhn commented on September 24, 2024

That's how qwat does form translation: https://github.com/qwat/qWat/tree/master/qwat_dictionary

from qgep.

m-kuhn avatar m-kuhn commented on September 24, 2024

@kfischerar takes care that field names are also translated in the database.
We will then probably generate a .qm translation file from the database.

from qgep.

3nids avatar 3nids commented on September 24, 2024

@andreasneumann wasn't it you that woud ask Stefan a translation table.

I would expect to get these columns

  • table name
  • field name
  • field name in plain english
  • field name in plain french
  • field name in plain german
  • field comment in plain english
  • field comment in plain french
  • field comment in plain german

Does it make sense?

from qgep.

m-kuhn avatar m-kuhn commented on September 24, 2024

Database to .ts converter for database term translation.
For further translations, done on transifex https://www.transifex.com/projects/p/QGEP/

from qgep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.