Home » Developer & Programmer » Forms » Multi-Language support in Forms
Multi-Language support in Forms [message #547121] Mon, 12 March 2012 07:16 Go to next message
babar82
Messages: 108
Registered: March 2009
Location: Karachi
Senior Member
Hi,
I want to enter data in Arabic and English through Oracle Forms6i. Please guide.
Re: Multi-Language support in Forms [message #547148 is a reply to message #547121] Wed, 12 March 2008 16:00 Go to previous messageGo to next message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
Did u add language setting?

There are steps to read/write Arabic..

1. Install Arabic fonts in font folder.
2. regedit : NLS_LANG = ARABIC. AR8MSWIN1256

all these settings will sure display Arabic font...

change the Prompt property of an item? This can be done with

set_item_property('<block.item>',PROMPT_TEXT,'<new_prompt>');


If your prompt does not have standard alignment you will have to compensate different string lenghts with properties like

set_item_property('<block.item>',PROMPT_EDGE_OFFSET,'<new_offset>');




Best Regards
Re: Multi-Language support in Forms [message #547149 is a reply to message #547121] Wed, 12 March 2008 16:20 Go to previous messageGo to next message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
once we have acomplished this task before but right now we dont have anything. I think u to have created several "text" tables to hold the textual information. Here is the definition of one of the tables

Describing tblpackagetext....
NAME                            Null?     Type
------------------------------- --------- -----
PACKAGEID                       NOT NULL  NUMBER(11,0)
LANGUAGEID                      NOT NULL  NUMBER(2,0)
NAME                                      VARCHAR2(80)
DESCRIPTION                               VARCHAR2(4000)
COMMENTS                                  VARCHAR2(4000)
QACOMMENTS                                VARCHAR2(4000)
GUIDELINE                                 VARCHAR2(20)
EDITED                          NOT NULL  NUMBER(1,0)
TIMESTAMP                       NOT NULL  DATE


I think I'm making progress. It seems to return the proper columns (I don't have data yet so I'm not sure if the values are correct). I didn't make use of decode. And I've never used max or decode so please verify that this is correct.


select packageid, Name, NameArabic
                  from (select max(packageid) AS packageid,
                  max(case when languageid = 1 then name end) Name,
                  max(case when languageid = 2 then name end) NameArabic 
                   from tblpackagetext group by packageid)


 sql>select * from tblpackagetext;

PACKAGEID LANGUAGEID NAME                 DESCRIPTION
--------- ---------- -------------------- -------------------- 
       1          1 English Name         English Description        
       1          2 Arabic  Name         Arabic  Description   
       2          1 Another English      More English

sql>select packageid,
  2         max(decode(languageid, 1, name, null)) name,
  3         max(decode(languageid, 2, name, null)) nameArabic,
  4         max(decode(languageid, 1, description, null)) description,
  5         max(decode(languageid, 2, description, null)) descriptionArabic
  6    from tblpackagetext
  7   group by packageid;

PACKAGEID NAME                 NAMEARABIC
--------- -------------------- ------------------------------
DESCRIPTION                   DESCRIPTIONARABIC
-------------------- ------------------------------
        1 English Name         Arabic Name
English Description  Arabic   Description
        2 Another EnglishMore English



Better u try to apply my first suggestion regarding prompt setting it will be more easier for u


best regards
Re: Multi-Language support in Forms [message #547150 is a reply to message #547121] Wed, 12 March 2008 16:23 Go to previous messageGo to next message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
Pls Administration of this forum kindly tell me why whatever post submitting reply its not appearing its removing or i dont know whats happening i cant see my post which i relied several time


THANKS & bEST REGARDS

Re: Multi-Language support in Forms [message #547151 is a reply to message #547121] Wed, 12 March 2008 16:45 Go to previous messageGo to next message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
why my question is to administration staff of this forum

why "ERROR: Insufficient Privileges"
since 4-5 years i have using using this account never seen this msg




Sad



Re: Multi-Language support in Forms [message #547152 is a reply to message #547121] Wed, 12 March 2008 19:12 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
Such questions should be posted in the Suggestions and Feedback forum, not here.
The system has been glitchy today, it's being looked into.
Re: Multi-Language support in Forms [message #547156 is a reply to message #547121] Tue, 13 March 2012 01:28 Go to previous messageGo to next message
babar82
Messages: 108
Registered: March 2009
Location: Karachi
Senior Member
Didn't work. The form behavior was changed as it was typing English from right to left. Also alert was showing messages irregularly.
Re: Multi-Language support in Forms [message #547327 is a reply to message #547121] Tue, 13 March 2012 13:33 Go to previous messageGo to next message
kandimalla
Messages: 17
Registered: November 2011
Location: Bahrain
Junior Member

For this,
create a custom.pll
add that to your form..........
create a table having the columns like
lookup_id, name_eng,name_ar
enter the field names in english and arabic in this table

In Forms------>
Item Property pallette
give the lookup_id in Hint property

It works.............


Re: Multi-Language support in Forms [message #547349 is a reply to message #547327] Tue, 13 March 2012 17:17 Go to previous message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
friend take this link it will be more helpful to u

http://docs.oracle.com/cd/B10500_01/server.920/a96529/toc.htm


baba

[Updated on: Tue, 13 March 2012 17:17]

Report message to a moderator

Previous Topic: how to sum rows in forms 6i
Next Topic: read regedit
Goto Forum:
  


Current Time: Fri Jul 05 23:19:46 CDT 2024