← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~cdd-dev/cdd/trunk] Rev 218: Changed locales to locale. Revmoved Slots from 2.4.0 template.

 

------------------------------------------------------------
revno: 218
committer: Timothy W. Cook <timothywayne.cook@xxxxxxxxx>
branch nick: cdd
timestamp: Tue 2012-08-07 12:27:49 -0300
message:
  Changed locales to locale. Revmoved Slots from 2.4.0 template.
modified:
  CDD-2.4.0.xmt
  docs/CDD_design_and_use.odt
  src/cdg_main.py
  src/mlhim2.py


--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk

Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'CDD-2.4.0.xmt'
Binary files CDD-2.4.0.xmt	2012-08-04 11:07:52 +0000 and CDD-2.4.0.xmt	2012-08-07 15:27:49 +0000 differ
=== modified file 'docs/CDD_design_and_use.odt'
Binary files docs/CDD_design_and_use.odt	2012-08-04 11:06:19 +0000 and docs/CDD_design_and_use.odt	2012-08-07 15:27:49 +0000 differ
=== modified file 'src/cdg_main.py'
--- src/cdg_main.py	2012-08-04 07:05:44 +0000
+++ src/cdg_main.py	2012-08-07 15:27:49 +0000
@@ -13,7 +13,7 @@
 import wx
 from wx.lib.wordwrap import wordwrap
 
-gettext.bindtextdomain('CDD','locales/en')
+gettext.bindtextdomain('CDD','locale/en')
 gettext.textdomain('CDD')
 _ = gettext.gettext
 
@@ -152,7 +152,7 @@
         sizer_vertical.Add((20, 20), 0, 0, 0)
         self.SetSizer(sizer_vertical)
         # end wxGlade
-        
+
     def init_things(self):
         self.info = None
         self.init_config()
@@ -174,7 +174,7 @@
             rights = self.text_ctrl_rights.GetValue().encode('utf8')
             relation = self.text_ctrl_relation.GetValue().encode('utf8')
             coverage = self.text_ctrl_coverage.GetValue().encode('utf8')
-            
+
             language = self.choice_lang.GetStringSelection()
 
             tempo = self.datepicker_ctrl_date.GetValue()
@@ -182,7 +182,7 @@
 
             self.info.get_info(title, description, date, creator, creator_email, contributor, language, publisher, subject, source, rights, relation, coverage)
 
-        
+
 
     def init_config(self):
         if sys.platform.startswith('linux'):
@@ -229,7 +229,7 @@
                 configfile.write('# Concept Definition Designer Configuration\n# Do not edit the text to the left of the equal symbol (=)\n\n')
                 self.config.write(configfile)
         except IOError:
-            popup_message(None, 'Config could not be saved.', 'Error saving config', wx.ICON_EXCLAMATION)                                    
+            popup_message(None, 'Config could not be saved.', 'Error saving config', wx.ICON_EXCLAMATION)
 
         self.set_meta_info()
         self.button_ok.Disable()
@@ -369,13 +369,13 @@
                 configfile.write('# Concept Definition Designer Configuration\n# Do not edit the text to the left of the equal symbol (=)\n\n')
                 self.config.write(configfile)
         except IOError:
-            popup_message(None, 'Config could not be saved.', 'Error saving config', wx.ICON_EXCLAMATION)                                    
-            
+            popup_message(None, 'Config could not be saved.', 'Error saving config', wx.ICON_EXCLAMATION)
+
 
     def get_panel_configs(self):
         self.config.set('DEFAULT', 'autosave', self.text_ctrl_autosave.GetValue().encode('utf8'))
         self.config.set('DEFAULT', 'workspace', self.text_ctrl_workspace.GetValue().encode('utf8'))
- 
+
     def set_panel_configs(self):
         self.text_ctrl_autosave.SetValue(self.config.get('DEFAULT', 'autosave'))
         self.text_ctrl_workspace.SetValue(self.config.get('DEFAULT', 'workspace'))
@@ -396,7 +396,7 @@
                     try:
                         os.mkdir(workspace)
                     except OSError:
-                        popup_message(None, 'Workspace directory NOT created.', 'Error creating workspace dir', wx.ICON_EXCLAMATION)                        
+                        popup_message(None, 'Workspace directory NOT created.', 'Error creating workspace dir', wx.ICON_EXCLAMATION)
 
 
             dlg.Destroy()

=== modified file 'src/mlhim2.py'
--- src/mlhim2.py	2012-07-31 07:07:27 +0000
+++ src/mlhim2.py	2012-08-07 15:27:49 +0000
@@ -10,7 +10,7 @@
 
 import cdg_main
 
-gettext.bindtextdomain('CDD','locales/en')
+gettext.bindtextdomain('CDD','locale/en')
 gettext.textdomain('CDD')
 _ = gettext.gettext