[logaling-commit] logaling/logaling-command [master] Split description and url on recipe of ExternalGlossary

Back to archive index

null+****@clear***** null+****@clear*****
Wed Jul 18 14:40:59 JST 2012


SHIMADA Koji	2012-07-18 14:40:59 +0900 (Wed, 18 Jul 2012)

  New Revision: 005239dd956fb0c0f18d956254988e9e3e36224e
  https://github.com/logaling/logaling-command/commit/005239dd956fb0c0f18d956254988e9e3e36224e

  Merged fb21eed: Merge pull request #71 from logaling/split-description-and-url

  Log:
    Split description and url on recipe of ExternalGlossary

  Modified files:
    lib/logaling/command/application.rb
    lib/logaling/external_glossaries/debian_project.rb
    lib/logaling/external_glossaries/edict.rb
    lib/logaling/external_glossaries/freebsd_jpman.rb
    lib/logaling/external_glossaries/gene95.rb
    lib/logaling/external_glossaries/gnome_project.rb
    lib/logaling/external_glossaries/mozilla_japan.rb
    lib/logaling/external_glossaries/postgresql_manual.rb
    lib/logaling/external_glossaries/tmx.rb
    lib/logaling/external_glossary.rb

  Modified: lib/logaling/command/application.rb (+1 -1)
===================================================================
--- lib/logaling/command/application.rb    2012-07-12 11:31:32 +0900 (7e2f1e1)
+++ lib/logaling/command/application.rb    2012-07-18 14:40:59 +0900 (f5c5aea)
@@ -90,7 +90,7 @@ module Logaling::Command
       require "logaling/external_glossary"
       Logaling::ExternalGlossary.load
       if options["list"]
-        Logaling::ExternalGlossary.list.each {|glossary_source| say "#{glossary_source.name.bright} : #{glossary_source.description}" }
+        Logaling::ExternalGlossary.list.each {|glossary_source| say "#{glossary_source.name.bright} : #{glossary_source.description} (#{glossary_source.url})" }
       else
         case external_glossary
         when 'tmx'

  Modified: lib/logaling/external_glossaries/debian_project.rb (+2 -1)
===================================================================
--- lib/logaling/external_glossaries/debian_project.rb    2012-07-12 11:31:32 +0900 (9cf07cc)
+++ lib/logaling/external_glossaries/debian_project.rb    2012-07-18 14:40:59 +0900 (187bf4b)
@@ -19,7 +19,8 @@ require 'nokogiri'
 
 module Logaling
   class DebianProject < ExternalGlossary
-    description     'Debian JP Project (http://www.debian.or.jp/community/translate/)'
+    description     'Debian JP Project'
+    url             'http://www.debian.or.jp/community/translate/'
     source_language 'en'
     target_language 'ja'
     output_format   'csv'

  Modified: lib/logaling/external_glossaries/edict.rb (+2 -1)
===================================================================
--- lib/logaling/external_glossaries/edict.rb    2012-07-12 11:31:32 +0900 (6e2fd0d)
+++ lib/logaling/external_glossaries/edict.rb    2012-07-18 14:40:59 +0900 (a269679)
@@ -19,7 +19,8 @@ require 'stringio'
 
 module Logaling
   class Edict < ExternalGlossary
-    description     'The EDICT Dictionary File (http://www.csse.monash.edu.au/~jwb/edict.html)'
+    description     'The EDICT Dictionary File'
+    url             'http://www.csse.monash.edu.au/~jwb/edict.html'
     source_language 'ja'
     target_language 'en'
     output_format   'csv'

  Modified: lib/logaling/external_glossaries/freebsd_jpman.rb (+2 -1)
===================================================================
--- lib/logaling/external_glossaries/freebsd_jpman.rb    2012-07-12 11:31:32 +0900 (8beb453)
+++ lib/logaling/external_glossaries/freebsd_jpman.rb    2012-07-18 14:40:59 +0900 (576f987)
@@ -19,7 +19,8 @@ require 'open-uri'
 
 module Logaling
   class FreebsdJpman < ExternalGlossary
-    description     'FreeBSD jpman(http://www.jp.freebsd.org/man-jp/)'
+    description     'FreeBSD jpman'
+    url             'http://www.jp.freebsd.org/man-jp/'
     source_language 'en'
     target_language 'ja'
     output_format   'csv'

  Modified: lib/logaling/external_glossaries/gene95.rb (+2 -1)
===================================================================
--- lib/logaling/external_glossaries/gene95.rb    2012-07-12 11:31:32 +0900 (1667233)
+++ lib/logaling/external_glossaries/gene95.rb    2012-07-18 14:40:59 +0900 (c4450ee)
@@ -21,7 +21,8 @@ require 'rubygems/package'
 
 module Logaling
   class Gene95 < ExternalGlossary
-    description     'GENE95 Dictionary (http://www.namazu.org/~tsuchiya/sdic/data/gene.html)'
+    description     'GENE95 Dictionary'
+    url             'http://www.namazu.org/~tsuchiya/sdic/data/gene.html'
     source_language 'en'
     target_language 'ja'
     output_format   'csv'

  Modified: lib/logaling/external_glossaries/gnome_project.rb (+2 -1)
===================================================================
--- lib/logaling/external_glossaries/gnome_project.rb    2012-07-12 11:31:32 +0900 (06d3837)
+++ lib/logaling/external_glossaries/gnome_project.rb    2012-07-18 14:40:59 +0900 (f1eb8e0)
@@ -19,7 +19,8 @@ require 'nokogiri'
 
 module Logaling
   class GnomeProject < ExternalGlossary
-    description     'GNOME Translation Project Ja (http://live.gnome.org/TranslationProjectJa)'
+    description     'GNOME Translation Project Ja'
+    url             'http://live.gnome.org/TranslationProjectJa'
     source_language 'en'
     target_language 'ja'
     output_format   'csv'

  Modified: lib/logaling/external_glossaries/mozilla_japan.rb (+2 -1)
===================================================================
--- lib/logaling/external_glossaries/mozilla_japan.rb    2012-07-12 11:31:32 +0900 (5dd8177)
+++ lib/logaling/external_glossaries/mozilla_japan.rb    2012-07-18 14:40:59 +0900 (85bb333)
@@ -17,7 +17,8 @@ require 'nokogiri'
 
 module Logaling
   class MozillaJapan < ExternalGlossary
-    description     'Mozilla Japan (http://www.mozilla-japan.org/jp/l10n/term/l10n.html)'
+    description     'Mozilla Japan'
+    url             'http://www.mozilla-japan.org/jp/l10n/term/l10n.html'
     source_language 'en'
     target_language 'ja'
     output_format   'csv'

  Modified: lib/logaling/external_glossaries/postgresql_manual.rb (+2 -1)
===================================================================
--- lib/logaling/external_glossaries/postgresql_manual.rb    2012-07-12 11:31:32 +0900 (473a8dc)
+++ lib/logaling/external_glossaries/postgresql_manual.rb    2012-07-18 14:40:59 +0900 (8fa25da)
@@ -19,7 +19,8 @@ require 'nokogiri'
 
 module Logaling
   class PostgresqlManual < ExternalGlossary
-    description     'PostgreSQL7.1 Manual (http://osb.sraoss.co.jp/PostgreSQL/Manual/)'
+    description     'PostgreSQL7.1 Manual'
+    url             'http://osb.sraoss.co.jp/PostgreSQL/Manual/'
     source_language 'en'
     target_language 'ja'
     output_format   'csv'

  Modified: lib/logaling/external_glossaries/tmx.rb (+2 -1)
===================================================================
--- lib/logaling/external_glossaries/tmx.rb    2012-07-12 11:31:32 +0900 (539efcb)
+++ lib/logaling/external_glossaries/tmx.rb    2012-07-18 14:40:59 +0900 (20c4298)
@@ -17,7 +17,8 @@ require 'open-uri'
 require 'nokogiri'
 module Logaling
   class Tmx < ExternalGlossary
-    description     'TMX 1.4b formatted glossary (http://www.gala-global.org/oscarStandards/tmx/)'
+    description     'TMX 1.4b formatted glossary'
+    url             'http://www.gala-global.org/oscarStandards/tmx/'
     source_language 'en'
     target_language 'ja'
     output_format   'csv'

  Modified: lib/logaling/external_glossary.rb (+4 -0)
===================================================================
--- lib/logaling/external_glossary.rb    2012-07-12 11:31:32 +0900 (3c87bae)
+++ lib/logaling/external_glossary.rb    2012-07-18 14:40:59 +0900 (e7e6474)
@@ -51,6 +51,10 @@ class Logaling::ExternalGlossary
       @description ||= val
     end
 
+    def url val=nil
+      @url ||= val
+    end
+
     def source_language val=nil
       @source_language ||= val
     end
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Back to archive index