commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8315 - in trunk/gnue-common/src: datasources formatting/masks lo


From: reinhard
Subject: [gnue] r8315 - in trunk/gnue-common/src: datasources formatting/masks logic
Date: Mon, 3 Apr 2006 18:23:49 -0500 (CDT)

Author: reinhard
Date: 2006-03-31 11:14:37 -0600 (Fri, 31 Mar 2006)
New Revision: 8315

Modified:
   trunk/gnue-common/src/datasources/GDataSource.py
   trunk/gnue-common/src/formatting/masks/GMask.py
   trunk/gnue-common/src/logic/GTrigger.py
Log:
Changed XML definition labels and descriptions to be translatable.


Modified: trunk/gnue-common/src/datasources/GDataSource.py
===================================================================
--- trunk/gnue-common/src/datasources/GDataSource.py    2006-03-31 17:10:04 UTC 
(rev 8314)
+++ trunk/gnue-common/src/datasources/GDataSource.py    2006-03-31 17:14:37 UTC 
(rev 8315)
@@ -1037,44 +1037,44 @@
       'datasource': {
          'BaseClass': GDataSource,
          'Importable': True,
-         'Description': 'A datasource provides a link to a database table '
-                        'or some similar data store.',
+         'Description': u_('A datasource provides a link to a database table '
+                           'or some similar data store.'),
          'Attributes': {
             'name':        {
                'Required': True,
                'Unique':   True,
                'Typecast': GTypecast.name,
-               'Description': 'Unique name of the datasource.' },
+               'Description': u_('Unique name of the datasource.')},
             'type':        {
-               'Label': _('Data Object Type'),
+               'Label': u_('Data Object Type'),
                'Typecast': GTypecast.name,
                'Default':  "object" },
             'connection':    {
-               'Label': _('Connection Name'),
+               'Label': u_('Connection Name'),
                'Typecast': GTypecast.name,
-               'Description': 'The name of the connection as in '
-                              'connections.conf that points to '
-                              'a valid database.' },
+               'Description': u_('The name of the connection as in '
+                                 'connections.conf that points to '
+                                 'a valid database.')},
             'database':    {
                'Typecast': GTypecast.name,
                'Deprecated': 'Use {connection} attribute instead' },
             'table':       {
-               'Label': _('Table Name'),
+               'Label': u_('Table Name'),
                'Typecast': GTypecast.name,
                'Default':  '',
-               'Description': 'The table in the database this datasource '
-                              'will point to.' },
+               'Description': u_('The table in the database this datasource '
+                                 'will point to.')},
             'cache':       {
-               'Label': _('Cache Size'),
-               'Description': 'Cache this number of records',
+               'Label': u_('Cache Size'),
+               'Description': u_('Cache this number of records'),
                'Typecast': GTypecast.whole,
                'Default':  5 },
             'prequery':    {
-               'Label': _('Query on Startup'),
-               'Description': 'If true, the datasource is populated on '
-                              'form startup. If false (default), the form '
-                              'starts out with an empty record until the user '
-                              'or a trigger queries the database.',
+               'Label': u_('Query on Startup'),
+               'Description': u_('If true, the datasource is populated on '
+                                 'form startup. If false (default), the form '
+                                 'starts out with an empty record until the '
+                                 'user or a trigger queries the database.'),
                'Typecast': GTypecast.boolean},
             'distinct':    {
                'Typecast': GTypecast.boolean,
@@ -1084,52 +1084,52 @@
                'Typecast': GTypecast.text ,
                'Deprecated': 'Use {sortorder} tag instead' },
             'master':      {
-               'Label': _('M/D Master DataSource'),
-               'Description': 'If this datasource is the child in a '
-                              'master/detail relationship, this property '
-                              'contains the name of the master datasource.',
+               'Label': u_('M/D Master DataSource'),
+               'Description': u_('If this datasource is the child in a '
+                                 'master/detail relationship, this property '
+                                 'contains the name of the master 
datasource.'),
                'Typecast': GTypecast.name },
             'masterlink':  {
-               'Label': _('M/D Master Field(s)'),
-               'Description': 'If this datasource is the child in a '
-                              'master/detail relationship, this property '
-                              'contains a comma-separated list of the '
-                              'master datasource\'s field(s) used for '
-                              'linking.',
+               'Label': u_('M/D Master Field(s)'),
+               'Description': u_('If this datasource is the child in a '
+                                 'master/detail relationship, this property '
+                                 'contains a comma-separated list of the '
+                                 'master datasource\'s field(s) used for '
+                                 'linking.'),
                'Typecast': GTypecast.text },
             'detaillink':  {
-               'Label': _('M/D Detail Field(s)'),
-               'Description': 'If this datasource is the child in a '
-                              'master/detail relationship, this property '
-                              'contains a comma-separated list of the '
-                              'this (child\'s) datasource\'s field(s) used '
-                              'for linking.',
+               'Label': u_('M/D Detail Field(s)'),
+               'Description': u_('If this datasource is the child in a '
+                                 'master/detail relationship, this property '
+                                 'contains a comma-separated list of the '
+                                 'this (child\'s) datasource\'s field(s) used '
+                                 'for linking.'),
                'Typecast': GTypecast.text },
             # TODO: Short-term hack
             'explicitfields': {
-               'Label': _('Explicit Fields'),
+               'Label': u_('Explicit Fields'),
                'Typecast': GTypecast.text,
                'Description': 'TODO' },
             'primarykey': {
-               'Label': _('Primary Key Field(s)'),
-               'Description': 'Comma-separated list of the fields that '
-                              'make up the primary key.',
+               'Label': u_('Primary Key Field(s)'),
+               'Description': u_('Comma-separated list of the fields that '
+                                 'make up the primary key.'),
                'Typecast': GTypecast.text },
             'primarykeyseq': {
-               'Label': _('Primary Key Sequence'),
-               'Description': 'Name of the sequence used to populate a '
-                              'primary key (only applies to relational '
-                              'backends that support sequences; requires '
-                              'a single {primarykey} value.',
+               'Label': u_('Primary Key Sequence'),
+               'Description': u_('Name of the sequence used to populate a '
+                                 'primary key (only applies to relational '
+                                 'backends that support sequences; requires '
+                                 'a single {primarykey} value.'),
                'Typecast': GTypecast.text },
             'requery': {
-               'Label': _('Re-query on commit?'),
+               'Label': u_('Re-query on commit?'),
                'Default': True,
-               'Description': 'Requery a record after posting it; requires '
-                              '{primarykey} support and a non-null primary '
-                              'key value at the time of update (whether '
-                              'via a trigger or by the use of '
-                              '{primarykeyseq}.',
+               'Description': u_('Requery a record after posting it; requires '
+                                 '{primarykey} support and a non-null primary '
+                                 'key value at the time of update (whether '
+                                 'via a trigger or by the use of '
+                                 '{primarykeyseq}.'),
                'Typecast': GTypecast.boolean }
                },
          'ParentTags': None },
@@ -1145,21 +1145,21 @@
           'name': {
             'Required': True,
             'Unique'  : True,
-            'Description': 'The name of the field by which the datasource '
-                           'will be ordered.',
+            'Description': u_('The name of the field by which the datasource '
+                              'will be ordered.'),
             'Typecast': GTypecast.name,
             },
           'descending': {
-            'Description': 'Selects if the ordering is done in ascending '
-                           '(default) or in descending order.',
+            'Description': u_('Selects if the ordering is done in ascending '
+                              '(default) or in descending order.'),
             'Default' : False,
             'Typecast': GTypecast.boolean,
           },
           'ignorecase': {
             'Default' : False,
             'Typecast': GTypecast.boolean,
-            'Description': 'Selects wether the ordering is case-sensitive '
-                           'or not.',
+            'Description': u_('Selects wether the ordering is case-sensitive '
+                              'or not.'),
           },
         },
         'ParentTags': ('sortorder',),

Modified: trunk/gnue-common/src/formatting/masks/GMask.py
===================================================================
--- trunk/gnue-common/src/formatting/masks/GMask.py     2006-03-31 17:10:04 UTC 
(rev 8314)
+++ trunk/gnue-common/src/formatting/masks/GMask.py     2006-03-31 17:14:37 UTC 
(rev 8315)
@@ -63,13 +63,13 @@
          'Importable': True,
          'Attributes': {
             'type':        {
-               'Label': _('Mask Type'),
+               'Label': u_('Mask Type'),
                'Typecast': GTypecast.name,
                'ValueSet': {
-                    'display':    {'Label': _('Display/Output')},
-                    'input':      {'Label': _('Input 
Validation/Reformatting')},
-                    'storage':    {'Label': _('Storage')},
-                    'validation': {'Label': _('Validation')} },
+                    'display':    {'Label': u_('Display/Output')},
+                    'input':      {'Label': u_('Input 
Validation/Reformatting')},
+                    'storage':    {'Label': u_('Storage')},
+                    'validation': {'Label': u_('Validation')} },
                'Default': 'display' },
          'ParentTags': None,
          'MixedContent': True,

Modified: trunk/gnue-common/src/logic/GTrigger.py
===================================================================
--- trunk/gnue-common/src/logic/GTrigger.py     2006-03-31 17:10:04 UTC (rev 
8314)
+++ trunk/gnue-common/src/logic/GTrigger.py     2006-03-31 17:14:37 UTC (rev 
8315)
@@ -344,13 +344,13 @@
             'file': {
                'Typecast': GTypecast.name },
             'src': {
-               'Label': _('Source Trigger'),
+               'Label': u_('Source Trigger'),
                'References': 'trigger.name',
                'Typecast': GTypecast.name },
             'language': {
                'Typecast': GTypecast.name,
                'ValueSet': {
-                   'python': {'Label': 'Python Script'} },
+                   'python': {'Label': u_('Python Script')}},
                'Default': 'python' } },
          'MixedContent': 1,
          'KeepWhitespace': 1,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]