OOQL language dictionary

stores language translations on the database for application usage


put - add new keyword (or sub-keyword) translation to the dictionary (into a specific section)

  dictionary put   GenericValue language GenericValue section GenericValue
                                    [subkey GenericValue] value GenericValue ;

get - retrieve a keyword (or sub-keyword) translation from the dictionary (from a specific section)

  dictionary get   GenericValue language GenericValue section GenericPatternList [subkey GenericValue ] ;


list - extract the keyword (or sub-keyword) list from the dictionary

  dictionary list  Dictionary_ListOption [Token_Option] ;

import - read translations from a file and import them to the dictionary

  dictionary import  GenericPatternList [language GenericPatternList] [section GenericPatternList]
                                    [subkey GenericPatternList] ImportFile_Option [excel];

select - extract/export translations from dictionary on the base of some filters

  dictionary select  GenericPatternList [language GenericPatternList] [section GenericPatternList]
                                    [subkey GenericPatternList]  [value GenericPatternList]
                                    [Token_Option] [ExportFile_Option] [excel];

remove - delete a keyword (or sub-keyword) translation from the dictionary

  dictionary remove  GenericPatternList [language GenericPatternList] [section GenericPatternList]
                                    [subkey GenericPatternList];

check - check if declared keyword / sub-keyword translations are present inside the dictionary

  dictionary check  [language GenericPatternList] [section AdminName [ ( Dictionary_CheckOptions ) ]]
                                    [update] [ LogFile_Option ];

remove cache - reset the dictionary cache

  dictionary remove  cache ;


Dictionary_ListOption
language
section
key [ section GenericValue ]
subkey GenericValue [ section GenericValue ]

Dictionary_CheckOptions
Dictionary_CheckOption { , Dictionary_CheckOption }
   
  Dictionary_CheckOption
  common
  menu
  application
  custom


KEYWORDs
key dictionary keyword (for example a field label)
language the language for keyword translation
section the dictionary section (dictionary is subdivided in one or more sections)
subkey sub-keyword associated to a keyword (for example a field range value)
value the translated text
update add all missed keywords to dictionary


SAMPLES


dict put 'Name' language 'IT' section 'Common' value "Nome";

dict put 'Color' language 'DE' section 'Common' subkey 'black' value "schwarz";

dictionary select N*,C* language IT,DE section 'Common' token xml exportfile "c:/oberon/dict.xml" ;

dict import * section "Common" importfile "c:/oberon/dict.xml" xml;

dict remove 'Color' language 'DE' section 'Common' subkey 'black' ;


 
common syntax

Common_GetBasicOption
Common_GetBasicToken [ as IDENTIFIER ]

Common_GetBasicToken
id  
name  
origdate  
moddate  
moduser  
description  
svnrev  
hidden  
image  
imagedata  
feature[ AdminName ] [. Feature_GetBasicOption]
feature[] [. Feature_GetBasicOption]
feature [. Feature_GetBasicOption]
application [. Menu_GetBasicOption]
super  
admintype  

Edit_Operator
add
remove

Edit_RefOperator
addbefore AdminName set
addafter AdminName set
add
remove
movebefore
moveafter

Edit_AddOperator
addbefore AdminName define
addafter AdminName define
append

Edit_MoveOperator
movebefore
moveafter

Event_Type
action
check

AdminPatternList
AdminNamePattern {, AdminNamePattern}

AdminNamePattern
*
PATTERNIDENTIFIER
STRINGVAL
AdminName

GenericPatternList
GenericPattern {, GenericPattern}

GenericPattern
*
IDENTIFIER
PATTERNIDENTIFIER
GenericValue

AdminActor
user AdminName
team AdminName
assignment AdminName

AdminName
IDENTIFIER
QUOTED_STRING
SQUOTED_STRING

GenericValue
DATETIME
GenericNumber
GenericString
BOOLEANVAL

GenericString
STRINGVAL
QUOTED_STRING
SQUOTED_STRING

GenericNumber
NUMBER
REALNUMBER

Filter_Option
moddate Date_Range
application AdminNamePattern

Date_Range
=  DATETIME  
!= DATETIME
 
<  DATETIME
 
>  DATETIME
 
<= DATETIME
 
>= DATETIME
 
in [ DATETIME , DATETIME ]
 
in ( DATETIME , DATETIME ]
 
in [ DATETIME , DATETIME )
 
in ( DATETIME , DATETIME )  

Token_Option
token { Token_Separator { Token_Separator } }
token Token_Separator

Token_Separator
QUOTED_STRING
SQUOTED_STRING
IDENTIFIER
STRINGVAL
json
json-
json+
xml
xml-
xml+

ExportFile_Option
exportfile FileName [append] [xml | json ]

ImportFile_Option
importfile FileName [xml | json |emxxml]

LogFile_Option
logfile FileName [append]

FileName
QUOTED_STRING
SQUOTED_STRING

basic elements
grammar rules
[ ] = optional element - only one item is allowed : ( 0 or 1 )
{ } = optional element - more than one is allowed : ( 0 or N )
/ = alternative
= one of ...
   
  all bold texts represent keywords or command syntax

IDVAL
#<5 dec digits [ 0-9 ]>-<8 hex digits [ 0-9 A-F ]>
  example:
  #00020-34F2A80E

COMMENT
// <any character until the end of the line(\n \r)>
  example:
  // My single line comment

LONGCOMMENT
/* <any character> */
 

example:
  /* My multi line comment starts here
  continue here
  and finish here */


DATETIME
<year 4 digits>[ - /. ]<month 2 digits>[ - /. ]<day 2 digits>
  examples:
   2009-12-23    2009/03/19   2009.11.14
<year 4 digits>[ - /. ]<month 2 digits>[ - /. ]<day 2 digits> <hours>:<minutes>:[<seconds>]
  examples:
   2009-12-23 10:23   2009/03/19 16:03:34  2009.11.14 00:20:04

NUMBER
[+-]<decimal digits [ 0-9 ]>
  examples:
   -1203   +276   25

BOOLEANVAL
true / false

REALNUMBER
[+-]<decimal digits [ 0-9 ]>.<decimal digits [ 0-9 ]>[E(+-)<esponent [0-9]>]
  example:
   -37.837   +2.3874   13.887   1.4862E-04

QUOTED_STRING
"<any character>"
  example:
   "my quoted string"

SQUOTED_STRING
'<any character>'
  example:
   'my single quoted string'

IDENTIFIER
<one or more of [ a-z A-Z ]><zero or more of [ a-z A-Z 0-9 _ ]>
  example:
   Var1    object_Name_02

VARIABLE
$<one o more of [ a-z A-Z 0-9 ]><zero or more of [ a-z A-Z 0-9 _ ]>
 

example:
   $1   $var_02    $1b


STRINGVAL
<one or more of [ a-z A-Z 0-9 -_ $ ? @ | ~ % & / = : + \ # ' ]>
  a string not recognized as identifier

PATTERNIDENTIFIER
<a string with * (match 0 or more characters) and ? (match 1 character) wildcards>
  example:
   mypa*er?_ide?ti*

© 2008-2015 MS Enterprise Solutions | Website Templates by IceTemplates.com
Please Read: Privacy Policy and Terms of Use