VIVO-125 Continue to develop the googleSpanish text.
Bring all_es.properties up to par with all.properties, in both Vitro and VIVO/Wilma Add labels for class groups, property groups, menu pages.
This commit is contained in:
parent
aac142afd6
commit
b8308baefc
7 changed files with 823 additions and 7 deletions
1
utilities/languageSupport/translateLabelsInOntology/label_common.rb
Normal file → Executable file
1
utilities/languageSupport/translateLabelsInOntology/label_common.rb
Normal file → Executable file
|
@ -8,6 +8,7 @@ require 'rubygems'
|
|||
require 'rdf'
|
||||
require 'rdf/rdfxml'
|
||||
require 'rdf/ntriples'
|
||||
require 'rdf/n3'
|
||||
|
||||
include RDF
|
||||
|
||||
|
|
3
utilities/languageSupport/translateLabelsInOntology/label_inserter.rb
Normal file → Executable file
3
utilities/languageSupport/translateLabelsInOntology/label_inserter.rb
Normal file → Executable file
|
@ -105,7 +105,8 @@ end
|
|||
# ------------------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
vivo_filter = lambda {|s| s.prop.start_with?("http://vivoweb.org/ontology/core#") && !s.label.to_s.strip.empty?}
|
||||
#vivo_filter = lambda {|s| s.prop.start_with?("http://vivoweb.org/ontology/core#") && !s.label.to_s.strip.empty?}
|
||||
vivo_filter = lambda {|s| !s.label.to_s.strip.empty?}
|
||||
|
||||
if File.expand_path($0) == File.expand_path(__FILE__)
|
||||
stripper = LabelStripper.new(ARGV)
|
||||
|
|
4
utilities/languageSupport/translateLabelsInOntology/label_stripper.rb
Normal file → Executable file
4
utilities/languageSupport/translateLabelsInOntology/label_stripper.rb
Normal file → Executable file
|
@ -19,6 +19,7 @@ $: << File.dirname(File.expand_path(__FILE__))
|
|||
require 'rubygems'
|
||||
require 'rdf'
|
||||
require 'label_common'
|
||||
require 'rdf/n3'
|
||||
|
||||
include RDF
|
||||
|
||||
|
@ -87,7 +88,8 @@ end
|
|||
# ------------------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
vivo_filter = lambda {|s| s.prop.start_with?("http://vivoweb.org/ontology/core#") && !s.label.to_s.strip.empty?}
|
||||
#vivo_filter = lambda {|s| s.prop.start_with?("http://vivoweb.org/ontology/core#") && !s.label.to_s.strip.empty?}
|
||||
vivo_filter = lambda {|s| !s.label.to_s.strip.empty?}
|
||||
|
||||
if File.expand_path($0) == File.expand_path(__FILE__)
|
||||
stripper = LabelStripper.new(ARGV)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue