LinkedDataHub icon indicating copy to clipboard operation
LinkedDataHub copied to clipboard

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

Open yiouyou opened this issue 4 years ago • 6 comments

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

yiouyou avatar Feb 02 '21 17:02 yiouyou

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.

namedgraph avatar Feb 04 '21 08:02 namedgraph

@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.

yiouyou avatar Mar 08 '21 09:03 yiouyou

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

namedgraph avatar Mar 08 '21 09:03 namedgraph

@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?

yiouyou avatar Mar 08 '21 10:03 yiouyou

It's only for RDF KG.

namedgraph avatar Mar 08 '21 10:03 namedgraph

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

namedgraph avatar Mar 16 '22 21:03 namedgraph

@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

namedgraph avatar Aug 29 '22 19:08 namedgraph