buda-base / public-digital-library

http://library.bdrc.io
5 stars 6 forks source link

Translations dont display #158

Open Drongbulobsang opened 4 years ago

Drongbulobsang commented 4 years ago

1) The following are already translated here but not able to see the Tibetan on site

image image link to the site

2) "Read more"Translation is here

image link to site

3) "In Instance" translation is here

image

link to the site

4) "Dimensions" translation is here

image Link to the site

5) "CCO" Correction is done in ontology

image

berger-n commented 4 years ago
  1. it is now fixed:

image image

  1. I can't reproduce this bug, here is what I see:

image

  1. property used is bdo:eTextInInstance, and there is no label in tibetan for it in the ontology

  2. this property has changed from tmp:dimensions (not in the ontology) to bdo:dimensionStatement (in the ontology) where there is no label in tibetan

  3. regarding the cC0 bug it comes from the wylie transliteration of [ CC0], @eroux does it make sense to you?

    
    input: [
    {
      "type": "http://www.w3.org/2004/02/skos/core#prefLabel",
      "value": "Provided by rKTs under the CC0 license",
      "lang": "en"
    },
    {
      "type": "http://www.w3.org/2004/02/skos/core#prefLabel",
      "value": "bka' bstan zhib 'jug tshogs pas mthun sbyor byas/[ CC0]bka' 'khrol can/",
      "lang": "bo-x-ewts"
    }
    ]

output: [ { "type": "literal", "value": "བཀའ་བསྟན་ཞིབ་འཇུག་ཚོགས་པས་མཐུན་སྦྱོར་བྱས། cC0བཀའ་འཁྲོལ་ཅན།", "lang": "bo", "_val": "བཀའ་བསྟན་ཞིབ་འཇུག་ཚོགས་པས་མཐུན་སྦྱོར་བྱས། cC0བཀའ་འཁྲོལ་ཅན།" }, { "type": "http://www.w3.org/2004/02/skos/core#prefLabel", "value": "Provided by rKTs under the CC0 license", "lang": "en", "_val": "Provided by rKTs under the CC0 license" } ]

eroux commented 4 years ago

hmm it has no reason to lower case the first c... hmmm... unless it's the lenient wylie thing. Can you try with

byas/_[CC0]bka'

instead of

byas/[ CC0]bka'

?

berger-n commented 4 years ago

https://library.bdrc.io/show/bdr:W12827#open-viewer needs to display tibetan in wylie as requested

Edit: I mean in the header/breadcrumbs

eroux commented 4 years ago

The lower case C is because of this line. I can't really think of any easy fix except having the original string in Tibetan Unicode instead of ewts