[logaling-commit] logaling/logaling-command [master] raise error when try to add a new term to external glossary

Back to archive index

SUZUKI Miho null+****@clear*****
Thu Aug 9 18:22:09 JST 2012


SUZUKI Miho	2012-08-09 18:22:09 +0900 (Thu, 09 Aug 2012)

  New Revision: 70b2b4766558faa8ddccb480f7dba564dad1c739
  https://github.com/logaling/logaling-command/commit/70b2b4766558faa8ddccb480f7dba564dad1c739

  Merged 3c178f5: Merge pull request #74 from logaling/loga-new-no-project

  Log:
    raise error when try to add a new term to external glossary

  Modified files:
    lib/logaling/command/application.rb

  Modified: lib/logaling/command/application.rb (+1 -0)
===================================================================
--- lib/logaling/command/application.rb    2012-08-09 17:49:24 +0900 (336d517)
+++ lib/logaling/command/application.rb    2012-08-09 18:22:09 +0900 (533e40a)
@@ -186,6 +186,7 @@ module Logaling::Command
       check_logaling_home_exists
       project =****@repos*****_project(@config.glossary)
       raise Logaling::ProjectNotFound unless project
+      raise Logaling::ProjectNotFound if project.class.name == 'Logaling::ImportedProject'
       glossary = project.glossary(@config.source_language, @config.target_language)
       if glossary.bilingual_pair_exists?(source_term, target_term)
         raise Logaling::TermError, "term '#{source_term}: #{target_term}' already exists in '#{@config.glossary}'"
-------------- next part --------------
An HTML attachment was scrubbed...
다운로드 



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