Kbase P39186: Dynamics: How to change source language for menu items
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/27/2003 |
|
Status: Unverified
GOAL:
Dynamics: How to change source language for menu items
FACT(s) (Environment):
Dynamics 2.0A
FIX:
There are no existing tools in the Dynamics framework that could
be used to change the source language for the menu items.
Therefore it is required to write a 4GL procedure that will accomplish
this by changing the values in the repository database.
The menu item records are located in the gsm_menu_item
table and they need to be filtered either by using the
product module field or using the site number that has been
assigned for that specific repository database.
By doing a simple :
FOR EACH gsm_menu_item NO-LOCK:
DISPLAY gsm_menu_item.
END.
one should be able to find the common denominator for
the menu item records that have designated source language
and then use that in the WHERE clause to change the
source_language_obj field. Perhaps the best would be to use
the menu_item_obj field with the decimal part that represents
the site number to filter only the menu item that you have
added/translated. One example on how to achieve this for one
specific repository is as follows:
DEFINE VARIABLE wSite AS CHARACTER NO-UNDO.
FOR EACH gsm_menu_item :
wSite = ENTRY(2,STRING(menu_item_obj,"->>>>>>>>>>>>>>>>>9.999"),".").
IF wSite = "777" AND gsm_menu_item.source_language_obj <> 77777.007000000 THEN
gsm_menu_item.source_language_obj = 77777.007000000.
END.
In this example the values for the wSite and gsm_menu_item.source_language_obj
should be replaced with the adequate values for each specific repository.