AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
493 stars 124 forks source link

If I'd like to translate the UI interface to other language, what should I do? #77

Closed yiouyou closed 2 years ago

yiouyou commented 3 years ago

Beyond english, any productive way to turn the UI interface to other language? Thanks!

namedgraph commented 3 years ago

Hi! A place to start would be translations.rdf which contains most of the strings in the UI. But I'm afraid not all, those would have to be found and replaced.

Then in addition to english labels like <rdfs:label xml:lang="en-US">Search</rdfs:label>, you could add labels in other language, for example <rdfs:label xml:lang="zh">搜索</rdfs:label> or something like that. Try to choose the right language code. @yiouyou can you do that?

And then we need a switch that would use the right labels based on the browser's locale. The Accept-Language request can be used for that. I can take care of this part.

yiouyou commented 3 years ago

@namedgraph Yes, I can do the translation. Sorry for the dalay reply. I'll try to start from translations.rdf and see what I can do about it.

namedgraph commented 3 years ago

@yiouyou great! I'd be curious to hear about your use case :) You can contact me at martynas[at]atomgraph.com

yiouyou commented 3 years ago

@namedgraph Sure, will keep in touch. btw, the project is about pure RDF Knowledge Graph only or can it be run on some more sophisticated engines, such as Grakn?

namedgraph commented 3 years ago

It's only for RDF KG.

namedgraph commented 2 years ago

@yiouyou are you still up for the translation? :)

namedgraph commented 2 years ago

@yiouyou there's now an example with a Spanish translation. If you want to add another language, you can create a PR. https://github.com/AtomGraph/LinkedDataHub/blob/master/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/translations.rdf