IDEMPIERE-489 Make use of AD_Language configuration
This commit is contained in:
parent
b167a4c7df
commit
61608cd26d
|
@ -0,0 +1,398 @@
|
|||
-- Mar 15, 2013 5:15:08 PM COT
|
||||
-- IDEMPIERE-489 Make use of AD_Language configuration
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',0,111,210160,'D','N','N','N',0,'N',10,'N',19,'N',1793,'N','Y','954051a7-4b61-45d1-ad84-a949ccaf1084','Y','AD_PrintPaper_ID','Printer paper definition','Printer Paper Size, Orientation and Margins','Print Paper','Y',TO_DATE('2013-03-15 17:15:07','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-03-15 17:15:07','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:15:08 PM COT
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210160 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:15:20 PM COT
|
||||
ALTER TABLE AD_Language ADD AD_PrintPaper_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:17:33 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',0,111,210161,'D','N','N','N',0,'N',60,'N',10,'N',958,'N','Y','5b7516ac-f385-4c7c-9f10-e9aeb50d3306','Y','PrintName','The label text to be printed on a document or correspondence.','The Label to be printed indicates the name that will be printed on a document or correspondence. The max length is 2000 characters.','Print Text','Y',TO_DATE('2013-03-15 17:17:33','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-03-15 17:17:33','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:17:33 PM COT
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210161 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:17:50 PM COT
|
||||
ALTER TABLE AD_Language ADD PrintName NVARCHAR2(60) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:18:27 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2013-03-15 17:18:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210161
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:18:31 PM COT
|
||||
ALTER TABLE AD_Language MODIFY PrintName NVARCHAR2(60)
|
||||
;
|
||||
|
||||
update ad_language set printname=name
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:18:31 PM COT
|
||||
ALTER TABLE AD_Language MODIFY PrintName NOT NULL
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:16 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',112,36,'N','N',60428,'Y',201883,'N','D','AD_Language_UU','219839b4-3e13-46e4-9234-fcce533f06f0','Y','N',100,0,TO_DATE('2013-03-15 17:19:15','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-15 17:19:15','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:16 PM COT
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201883 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:16 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',112,10,'N','N',210160,'Y',201884,'N','Printer Paper Size, Orientation and Margins','D','Printer paper definition','Print Paper','29c3e7dd-bde7-4a09-8a61-f00545a2c0c9','Y','N',100,0,TO_DATE('2013-03-15 17:19:16','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-15 17:19:16','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:16 PM COT
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201884 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:17 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',112,60,'N','N',210161,'Y',201885,'N','The Label to be printed indicates the name that will be printed on a document or correspondence. The max length is 2000 characters.','D','The label text to be printed on a document or correspondence.','Print Text','186fd397-8266-47a6-b6de-04e846997038','Y','N',100,0,TO_DATE('2013-03-15 17:19:16','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-15 17:19:16','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:17 PM COT
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201885 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=10,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=289
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=20,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1995
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=30,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=216
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=40,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=217
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET ColumnSpan=5, SeqNo=50, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201885
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1346
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=90, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200654
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=100, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=218
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=110, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=219
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=120,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11172
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11175
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=150, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201884
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5226
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201883
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=289
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201883
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=5226
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=1995
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=216
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=217
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=3047
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=201885
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=5225
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=218
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=1346
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=11172
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=11175
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=11173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=201884
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=219
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 6:54:38 PM COT
|
||||
UPDATE AD_Column SET AD_Reference_Value_ID=319, IsMandatory='N', AD_Reference_ID=17,Updated=TO_DATE('2013-03-15 18:54:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13080
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 6:54:40 PM COT
|
||||
ALTER TABLE AD_Language MODIFY IsDecimalPoint CHAR(1) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 6:54:40 PM COT
|
||||
ALTER TABLE AD_Language MODIFY IsDecimalPoint NULL
|
||||
;
|
||||
|
||||
update ad_language set isdecimalpoint=null
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 6:59:39 PM COT
|
||||
UPDATE AD_Field SET SeqNo=140, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-03-15 18:59:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:00:48 PM COT
|
||||
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_DATE('2013-03-15 19:00:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=203
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:01:43 PM COT
|
||||
UPDATE AD_Column SET SeqNoSelection=1,Updated=TO_DATE('2013-03-15 19:01:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=203
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:01:59 PM COT
|
||||
UPDATE AD_Column SET SeqNoSelection=2,Updated=TO_DATE('2013-03-15 19:01:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=204
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:02:09 PM COT
|
||||
UPDATE AD_Column SET SeqNoSelection=3,Updated=TO_DATE('2013-03-15 19:02:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3886
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:03:37 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='ﺔﻴﺑﺮﻌﻟﺍ (AR)',Updated=TO_DATE('2013-03-15 19:03:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=115
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:04:38 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Български (BG)',Updated=TO_DATE('2013-03-15 19:04:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=118
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:05:07 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Català',Updated=TO_DATE('2013-03-15 19:05:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=119
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:05:46 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Dansk',Updated=TO_DATE('2013-03-15 19:05:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=121
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:06:48 PM COT
|
||||
UPDATE AD_Language SET PrintName='Deutsch',Updated=TO_DATE('2013-03-15 19:06:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=191
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:07:07 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Ελληνικά (GR)',Updated=TO_DATE('2013-03-15 19:07:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=125
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:07:35 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='English (AU)',Updated=TO_DATE('2013-03-15 19:07:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=126
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:08:10 PM COT
|
||||
UPDATE AD_Language SET PrintName='English (UK)',Updated=TO_DATE('2013-03-15 19:08:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=128
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:09:24 PM COT
|
||||
UPDATE AD_Language SET AD_PrintPaper_ID=101, PrintName='English',Updated=TO_DATE('2013-03-15 19:09:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=192
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:10:11 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', AD_PrintPaper_ID=101, PrintName='Español (Colombia)',Updated=TO_DATE('2013-03-15 19:10:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=136
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:10:38 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Español (DO)',Updated=TO_DATE('2013-03-15 19:10:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=138
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:11:21 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Español (EC)',Updated=TO_DATE('2013-03-15 19:11:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=139
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:11:49 PM COT
|
||||
UPDATE AD_Language SET PrintName='Español',Updated=TO_DATE('2013-03-15 19:11:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=140
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:12:07 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', AD_PrintPaper_ID=101, PrintName='Español (MX)',Updated=TO_DATE('2013-03-15 19:12:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=143
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:12:48 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Español (VE)',Updated=TO_DATE('2013-03-15 19:12:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=151
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:13:27 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Farsi', IsDecimalPoint='N',Updated=TO_DATE('2013-03-15 19:13:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=193
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:13:51 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Finnish', IsDecimalPoint='Y',Updated=TO_DATE('2013-03-15 19:13:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=153
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:14:29 PM COT
|
||||
UPDATE AD_Language SET DatePattern='MM/dd/yyyy', AD_PrintPaper_ID=101, PrintName='Français (CA)', IsDecimalPoint='Y',Updated=TO_DATE('2013-03-15 19:14:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=155
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:14:54 PM COT
|
||||
UPDATE AD_Language SET PrintName='Français',Updated=TO_DATE('2013-03-15 19:14:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=190
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:15:29 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Hrvatski',Updated=TO_DATE('2013-03-15 19:15:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=159
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:15:49 PM COT
|
||||
UPDATE AD_Language SET DatePattern='yyyy.MM.dd', PrintName='Magyar (HU)',Updated=TO_DATE('2013-03-15 19:15:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=160
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:16:12 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Indonesia Bahasa',Updated=TO_DATE('2013-03-15 19:16:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=50010
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:16:33 PM COT
|
||||
UPDATE AD_Language SET PrintName='Italiano',Updated=TO_DATE('2013-03-15 19:16:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=163
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:17:07 PM COT
|
||||
UPDATE AD_Language SET PrintName='日本語 (JP)',Updated=TO_DATE('2013-03-15 19:17:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=165
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:17:43 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Malaysian', IsDecimalPoint='N',Updated=TO_DATE('2013-03-15 19:17:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=50003
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:18:09 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Nederlands',Updated=TO_DATE('2013-03-15 19:18:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=171
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:18:32 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Norsk',Updated=TO_DATE('2013-03-15 19:18:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=172
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:19:06 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Polski',Updated=TO_DATE('2013-03-15 19:19:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:19:24 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Portuguese (BR)',Updated=TO_DATE('2013-03-15 19:19:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=174
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:19:50 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Română',Updated=TO_DATE('2013-03-15 19:19:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=176
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:20:11 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Русский (Russian)',Updated=TO_DATE('2013-03-15 19:20:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=177
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:20:37 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Slovenski',Updated=TO_DATE('2013-03-15 19:20:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=180
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:21:08 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Albanian', IsDecimalPoint='Y',Updated=TO_DATE('2013-03-15 19:21:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=181
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:21:49 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Српски (RS)',Updated=TO_DATE('2013-03-15 19:21:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=50015
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:22:13 PM COT
|
||||
UPDATE AD_Language SET DatePattern='yyyy-MM-dd', PrintName='Svenska',Updated=TO_DATE('2013-03-15 19:22:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=183
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:22:40 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='ไทย (TH)', IsDecimalPoint='N',Updated=TO_DATE('2013-03-15 19:22:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=184
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:23:14 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Việt Nam',Updated=TO_DATE('2013-03-15 19:23:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=194
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:23:48 PM COT
|
||||
UPDATE AD_Language SET DatePattern='yyyy-MM-dd', PrintName='简体中文 (CN)',Updated=TO_DATE('2013-03-15 19:23:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=187
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:24:14 PM COT
|
||||
UPDATE AD_Language SET PrintName='繁體中文 (TW)',Updated=TO_DATE('2013-03-15 19:24:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=189
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 10:32:23 PM COT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2013-03-15 22:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201884
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 10:32:23 PM COT
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_DATE('2013-03-15 22:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5226
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 10:32:23 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-03-15 22:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 10:32:23 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-03-15 22:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11175
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201303151727_IDEMPIERE-489.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,400 @@
|
|||
SET CLIENT_ENCODING TO 'UTF8';
|
||||
|
||||
-- Mar 15, 2013 5:15:08 PM COT
|
||||
-- IDEMPIERE-489 Make use of AD_Language configuration
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',0,111,210160,'D','N','N','N',0,'N',10,'N',19,'N',1793,'N','Y','954051a7-4b61-45d1-ad84-a949ccaf1084','Y','AD_PrintPaper_ID','Printer paper definition','Printer Paper Size, Orientation and Margins','Print Paper','Y',TO_TIMESTAMP('2013-03-15 17:15:07','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-03-15 17:15:07','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:15:08 PM COT
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210160 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:15:20 PM COT
|
||||
ALTER TABLE AD_Language ADD COLUMN AD_PrintPaper_ID NUMERIC(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:17:33 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',0,111,210161,'D','N','N','N',0,'N',60,'N',10,'N',958,'N','Y','5b7516ac-f385-4c7c-9f10-e9aeb50d3306','Y','PrintName','The label text to be printed on a document or correspondence.','The Label to be printed indicates the name that will be printed on a document or correspondence. The max length is 2000 characters.','Print Text','Y',TO_TIMESTAMP('2013-03-15 17:17:33','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-03-15 17:17:33','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:17:33 PM COT
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210161 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:17:50 PM COT
|
||||
ALTER TABLE AD_Language ADD COLUMN PrintName VARCHAR(60) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:18:27 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2013-03-15 17:18:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210161
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:18:31 PM COT
|
||||
INSERT INTO t_alter_column values('ad_language','PrintName','VARCHAR(60)',null,null)
|
||||
;
|
||||
|
||||
update ad_language set printname=name
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:18:31 PM COT
|
||||
INSERT INTO t_alter_column values('ad_language','PrintName',null,'NOT NULL',null)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:16 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',112,36,'N','N',60428,'Y',201883,'N','D','AD_Language_UU','219839b4-3e13-46e4-9234-fcce533f06f0','Y','N',100,0,TO_TIMESTAMP('2013-03-15 17:19:15','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-15 17:19:15','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:16 PM COT
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201883 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:16 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',112,10,'N','N',210160,'Y',201884,'N','Printer Paper Size, Orientation and Margins','D','Printer paper definition','Print Paper','29c3e7dd-bde7-4a09-8a61-f00545a2c0c9','Y','N',100,0,TO_TIMESTAMP('2013-03-15 17:19:16','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-15 17:19:16','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:16 PM COT
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201884 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:17 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',112,60,'N','N',210161,'Y',201885,'N','The Label to be printed indicates the name that will be printed on a document or correspondence. The max length is 2000 characters.','D','The label text to be printed on a document or correspondence.','Print Text','186fd397-8266-47a6-b6de-04e846997038','Y','N',100,0,TO_TIMESTAMP('2013-03-15 17:19:16','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-15 17:19:16','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:19:17 PM COT
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201885 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=10,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=289
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=20,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1995
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=30,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=216
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=40,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=217
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET ColumnSpan=5, SeqNo=50, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201885
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=2,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1346
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=90, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200654
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=100, IsDisplayed='Y', XPosition=2,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=218
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=110, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=219
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=120,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11172
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11175
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=150, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201884
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5226
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:22:48 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-03-15 17:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201883
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=289
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201883
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=5226
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=1995
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=216
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=217
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=3047
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=201885
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=5225
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=218
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=1346
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=11172
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=11175
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=11173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=201884
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 5:23:54 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=219
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 6:54:38 PM COT
|
||||
UPDATE AD_Column SET AD_Reference_Value_ID=319, IsMandatory='N', AD_Reference_ID=17,Updated=TO_TIMESTAMP('2013-03-15 18:54:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13080
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 6:54:40 PM COT
|
||||
INSERT INTO t_alter_column values('ad_language','IsDecimalPoint','CHAR(1)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 6:54:40 PM COT
|
||||
INSERT INTO t_alter_column values('ad_language','IsDecimalPoint',null,'NULL',null)
|
||||
;
|
||||
|
||||
update ad_language set isdecimalpoint=null
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 6:59:39 PM COT
|
||||
UPDATE AD_Field SET SeqNo=140, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-03-15 18:59:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:00:48 PM COT
|
||||
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2013-03-15 19:00:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=203
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:01:43 PM COT
|
||||
UPDATE AD_Column SET SeqNoSelection=1,Updated=TO_TIMESTAMP('2013-03-15 19:01:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=203
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:01:59 PM COT
|
||||
UPDATE AD_Column SET SeqNoSelection=2,Updated=TO_TIMESTAMP('2013-03-15 19:01:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=204
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:02:09 PM COT
|
||||
UPDATE AD_Column SET SeqNoSelection=3,Updated=TO_TIMESTAMP('2013-03-15 19:02:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3886
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:03:37 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='ﺔﻴﺑﺮﻌﻟﺍ (AR)',Updated=TO_TIMESTAMP('2013-03-15 19:03:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=115
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:04:38 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Български (BG)',Updated=TO_TIMESTAMP('2013-03-15 19:04:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=118
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:05:07 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Català',Updated=TO_TIMESTAMP('2013-03-15 19:05:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=119
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:05:46 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Dansk',Updated=TO_TIMESTAMP('2013-03-15 19:05:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=121
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:06:48 PM COT
|
||||
UPDATE AD_Language SET PrintName='Deutsch',Updated=TO_TIMESTAMP('2013-03-15 19:06:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=191
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:07:07 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Ελληνικά (GR)',Updated=TO_TIMESTAMP('2013-03-15 19:07:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=125
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:07:35 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='English (AU)',Updated=TO_TIMESTAMP('2013-03-15 19:07:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=126
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:08:10 PM COT
|
||||
UPDATE AD_Language SET PrintName='English (UK)',Updated=TO_TIMESTAMP('2013-03-15 19:08:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=128
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:09:24 PM COT
|
||||
UPDATE AD_Language SET AD_PrintPaper_ID=101, PrintName='English',Updated=TO_TIMESTAMP('2013-03-15 19:09:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=192
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:10:11 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', AD_PrintPaper_ID=101, PrintName='Español (Colombia)',Updated=TO_TIMESTAMP('2013-03-15 19:10:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=136
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:10:38 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Español (DO)',Updated=TO_TIMESTAMP('2013-03-15 19:10:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=138
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:11:21 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Español (EC)',Updated=TO_TIMESTAMP('2013-03-15 19:11:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=139
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:11:49 PM COT
|
||||
UPDATE AD_Language SET PrintName='Español',Updated=TO_TIMESTAMP('2013-03-15 19:11:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=140
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:12:07 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', AD_PrintPaper_ID=101, PrintName='Español (MX)',Updated=TO_TIMESTAMP('2013-03-15 19:12:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=143
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:12:48 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Español (VE)',Updated=TO_TIMESTAMP('2013-03-15 19:12:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=151
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:13:27 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Farsi', IsDecimalPoint='N',Updated=TO_TIMESTAMP('2013-03-15 19:13:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=193
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:13:51 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Finnish', IsDecimalPoint='Y',Updated=TO_TIMESTAMP('2013-03-15 19:13:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=153
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:14:29 PM COT
|
||||
UPDATE AD_Language SET DatePattern='MM/dd/yyyy', AD_PrintPaper_ID=101, PrintName='Français (CA)', IsDecimalPoint='Y',Updated=TO_TIMESTAMP('2013-03-15 19:14:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=155
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:14:54 PM COT
|
||||
UPDATE AD_Language SET PrintName='Français',Updated=TO_TIMESTAMP('2013-03-15 19:14:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=190
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:15:29 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Hrvatski',Updated=TO_TIMESTAMP('2013-03-15 19:15:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=159
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:15:49 PM COT
|
||||
UPDATE AD_Language SET DatePattern='yyyy.MM.dd', PrintName='Magyar (HU)',Updated=TO_TIMESTAMP('2013-03-15 19:15:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=160
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:16:12 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Indonesia Bahasa',Updated=TO_TIMESTAMP('2013-03-15 19:16:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=50010
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:16:33 PM COT
|
||||
UPDATE AD_Language SET PrintName='Italiano',Updated=TO_TIMESTAMP('2013-03-15 19:16:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=163
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:17:07 PM COT
|
||||
UPDATE AD_Language SET PrintName='日本語 (JP)',Updated=TO_TIMESTAMP('2013-03-15 19:17:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=165
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:17:43 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Malaysian', IsDecimalPoint='N',Updated=TO_TIMESTAMP('2013-03-15 19:17:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=50003
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:18:09 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Nederlands',Updated=TO_TIMESTAMP('2013-03-15 19:18:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=171
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:18:32 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Norsk',Updated=TO_TIMESTAMP('2013-03-15 19:18:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=172
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:19:06 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Polski',Updated=TO_TIMESTAMP('2013-03-15 19:19:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:19:24 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Portuguese (BR)',Updated=TO_TIMESTAMP('2013-03-15 19:19:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=174
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:19:50 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Română',Updated=TO_TIMESTAMP('2013-03-15 19:19:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=176
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:20:11 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Русский (Russian)',Updated=TO_TIMESTAMP('2013-03-15 19:20:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=177
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:20:37 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Slovenski',Updated=TO_TIMESTAMP('2013-03-15 19:20:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=180
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:21:08 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='Albanian', IsDecimalPoint='Y',Updated=TO_TIMESTAMP('2013-03-15 19:21:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=181
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:21:49 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd.MM.yyyy', PrintName='Српски (RS)',Updated=TO_TIMESTAMP('2013-03-15 19:21:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=50015
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:22:13 PM COT
|
||||
UPDATE AD_Language SET DatePattern='yyyy-MM-dd', PrintName='Svenska',Updated=TO_TIMESTAMP('2013-03-15 19:22:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=183
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:22:40 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd/MM/yyyy', PrintName='ไทย (TH)', IsDecimalPoint='N',Updated=TO_TIMESTAMP('2013-03-15 19:22:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=184
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:23:14 PM COT
|
||||
UPDATE AD_Language SET DatePattern='dd-MM-yyyy', PrintName='Việt Nam',Updated=TO_TIMESTAMP('2013-03-15 19:23:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=194
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:23:48 PM COT
|
||||
UPDATE AD_Language SET DatePattern='yyyy-MM-dd', PrintName='简体中文 (CN)',Updated=TO_TIMESTAMP('2013-03-15 19:23:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=187
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 7:24:14 PM COT
|
||||
UPDATE AD_Language SET PrintName='繁體中文 (TW)',Updated=TO_TIMESTAMP('2013-03-15 19:24:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=189
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 10:32:23 PM COT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2013-03-15 22:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201884
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 10:32:23 PM COT
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2013-03-15 22:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5226
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 10:32:23 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-03-15 22:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11173
|
||||
;
|
||||
|
||||
-- Mar 15, 2013 10:32:23 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-03-15 22:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11175
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201303151727_IDEMPIERE-489.sql') FROM dual
|
||||
;
|
||||
|
|
@ -93,6 +93,21 @@ public interface I_AD_Language
|
|||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_PrintPaper_ID */
|
||||
public static final String COLUMNNAME_AD_PrintPaper_ID = "AD_PrintPaper_ID";
|
||||
|
||||
/** Set Print Paper.
|
||||
* Printer paper definition
|
||||
*/
|
||||
public void setAD_PrintPaper_ID (int AD_PrintPaper_ID);
|
||||
|
||||
/** Get Print Paper.
|
||||
* Printer paper definition
|
||||
*/
|
||||
public int getAD_PrintPaper_ID();
|
||||
|
||||
public org.compiere.model.I_AD_PrintPaper getAD_PrintPaper() throws RuntimeException;
|
||||
|
||||
/** Column name CountryCode */
|
||||
public static final String COLUMNNAME_CountryCode = "CountryCode";
|
||||
|
||||
|
@ -167,12 +182,12 @@ public interface I_AD_Language
|
|||
/** Set Decimal Point.
|
||||
* The number notation has a decimal point (no decimal comma)
|
||||
*/
|
||||
public void setIsDecimalPoint (boolean IsDecimalPoint);
|
||||
public void setIsDecimalPoint (String IsDecimalPoint);
|
||||
|
||||
/** Get Decimal Point.
|
||||
* The number notation has a decimal point (no decimal comma)
|
||||
*/
|
||||
public boolean isDecimalPoint();
|
||||
public String getIsDecimalPoint();
|
||||
|
||||
/** Column name IsLoginLocale */
|
||||
public static final String COLUMNNAME_IsLoginLocale = "IsLoginLocale";
|
||||
|
@ -222,6 +237,19 @@ public interface I_AD_Language
|
|||
*/
|
||||
public String getName();
|
||||
|
||||
/** Column name PrintName */
|
||||
public static final String COLUMNNAME_PrintName = "PrintName";
|
||||
|
||||
/** Set Print Text.
|
||||
* The label text to be printed on a document or correspondence.
|
||||
*/
|
||||
public void setPrintName (String PrintName);
|
||||
|
||||
/** Get Print Text.
|
||||
* The label text to be printed on a document or correspondence.
|
||||
*/
|
||||
public String getPrintName();
|
||||
|
||||
/** Column name Processing */
|
||||
public static final String COLUMNNAME_Processing = "Processing";
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20121031L;
|
||||
private static final long serialVersionUID = 20130315L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_Language (Properties ctx, int AD_Language_ID, String trxName)
|
||||
|
@ -43,9 +43,9 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent
|
|||
// @SQL=SELECT NVL(MAX(AD_Language_ID),0)+1 AS DefaultValue FROM AD_Language
|
||||
setIsBaseLanguage (false);
|
||||
// N
|
||||
setIsDecimalPoint (false);
|
||||
setIsSystemLanguage (false);
|
||||
setName (null);
|
||||
setPrintName (null);
|
||||
} */
|
||||
}
|
||||
|
||||
|
@ -128,6 +128,34 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent
|
|||
return (String)get_Value(COLUMNNAME_AD_Language_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_PrintPaper getAD_PrintPaper() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_PrintPaper)MTable.get(getCtx(), org.compiere.model.I_AD_PrintPaper.Table_Name)
|
||||
.getPO(getAD_PrintPaper_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Print Paper.
|
||||
@param AD_PrintPaper_ID
|
||||
Printer paper definition
|
||||
*/
|
||||
public void setAD_PrintPaper_ID (int AD_PrintPaper_ID)
|
||||
{
|
||||
if (AD_PrintPaper_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_PrintPaper_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_PrintPaper_ID, Integer.valueOf(AD_PrintPaper_ID));
|
||||
}
|
||||
|
||||
/** Get Print Paper.
|
||||
@return Printer paper definition
|
||||
*/
|
||||
public int getAD_PrintPaper_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintPaper_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set ISO Country Code.
|
||||
@param CountryCode
|
||||
Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html
|
||||
|
@ -186,28 +214,28 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent
|
|||
return false;
|
||||
}
|
||||
|
||||
/** IsDecimalPoint AD_Reference_ID=319 */
|
||||
public static final int ISDECIMALPOINT_AD_Reference_ID=319;
|
||||
/** Yes = Y */
|
||||
public static final String ISDECIMALPOINT_Yes = "Y";
|
||||
/** No = N */
|
||||
public static final String ISDECIMALPOINT_No = "N";
|
||||
/** Set Decimal Point.
|
||||
@param IsDecimalPoint
|
||||
The number notation has a decimal point (no decimal comma)
|
||||
*/
|
||||
public void setIsDecimalPoint (boolean IsDecimalPoint)
|
||||
public void setIsDecimalPoint (String IsDecimalPoint)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsDecimalPoint, Boolean.valueOf(IsDecimalPoint));
|
||||
|
||||
set_Value (COLUMNNAME_IsDecimalPoint, IsDecimalPoint);
|
||||
}
|
||||
|
||||
/** Get Decimal Point.
|
||||
@return The number notation has a decimal point (no decimal comma)
|
||||
*/
|
||||
public boolean isDecimalPoint ()
|
||||
public String getIsDecimalPoint ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsDecimalPoint);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
return (String)get_Value(COLUMNNAME_IsDecimalPoint);
|
||||
}
|
||||
|
||||
/** Set Login Locale.
|
||||
|
@ -297,6 +325,23 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent
|
|||
return new KeyNamePair(get_ID(), getName());
|
||||
}
|
||||
|
||||
/** Set Print Text.
|
||||
@param PrintName
|
||||
The label text to be printed on a document or correspondence.
|
||||
*/
|
||||
public void setPrintName (String PrintName)
|
||||
{
|
||||
set_Value (COLUMNNAME_PrintName, PrintName);
|
||||
}
|
||||
|
||||
/** Get Print Text.
|
||||
@return The label text to be printed on a document or correspondence.
|
||||
*/
|
||||
public String getPrintName ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_PrintName);
|
||||
}
|
||||
|
||||
/** Set Process Now.
|
||||
@param Processing Process Now */
|
||||
public void setProcessing (boolean Processing)
|
||||
|
|
|
@ -1115,7 +1115,7 @@ public final class Env
|
|||
public static ArrayList<String> getLoginLanguages()
|
||||
{
|
||||
ArrayList<String> AD_Languages = new ArrayList<String>();
|
||||
String sql = "SELECT AD_Language FROM AD_Language WHERE IsLoginLocale = 'Y'";
|
||||
String sql = "SELECT AD_Language FROM AD_Language WHERE IsActive='Y' AND IsLoginLocale = 'Y'";
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
|
@ -1156,6 +1156,7 @@ public final class Env
|
|||
|
||||
boolean isSystemLanguage = false;
|
||||
ArrayList<String> AD_Languages = new ArrayList<String>();
|
||||
AD_Languages.add(Language.getBaseAD_Language());
|
||||
String sql = "SELECT DISTINCT AD_Language FROM AD_Message_Trl";
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
|
|
|
@ -85,8 +85,7 @@ public final class Ini implements Serializable
|
|||
private static final boolean DEFAULT_TRACEFILE = false;
|
||||
/** Language */
|
||||
public static final String P_LANGUAGE = "Language";
|
||||
private static final String DEFAULT_LANGUAGE = Language.getName
|
||||
(System.getProperty("user.language") + "_" + System.getProperty("user.country"));
|
||||
private static final String DEFAULT_LANGUAGE = Language.getName(System.getProperty("user.language") + "_" + System.getProperty("user.country"));
|
||||
/** Ini File Name */
|
||||
public static final String P_INI = "FileNameINI";
|
||||
private static final String DEFAULT_INI = "";
|
||||
|
|
|
@ -29,6 +29,9 @@ import java.util.logging.Logger;
|
|||
|
||||
import javax.print.attribute.standard.MediaSize;
|
||||
|
||||
import org.compiere.model.MLanguage;
|
||||
import org.compiere.print.MPrintPaper;
|
||||
|
||||
/**
|
||||
* Language Management.
|
||||
*
|
||||
|
@ -37,6 +40,11 @@ import javax.print.attribute.standard.MediaSize;
|
|||
*/
|
||||
public class Language implements Serializable
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 6705748825004207885L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -47,176 +55,22 @@ public class Language implements Serializable
|
|||
* http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm
|
||||
*************************************************************************/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -964846521004545703L;
|
||||
/** Base Language */
|
||||
public static final String AD_Language_en_US = "en_US";
|
||||
/** Additional Languages */
|
||||
private static final String AD_Language_en_GB = "en_GB";
|
||||
private static final String AD_Language_en_AU = "en_AU";
|
||||
private static final String AD_Language_ca_ES = "ca_ES";
|
||||
private static final String AD_Language_hr_HR = "hr_HR";
|
||||
private static final String AD_Language_de_DE = "de_DE";
|
||||
private static final String AD_Language_it_IT = "it_IT";
|
||||
private static final String AD_Language_es_ES = "es_ES";
|
||||
private static final String AD_Language_es_MX = "es_MX";
|
||||
private static final String AD_Language_es_CO = "es_CO";
|
||||
private static final String AD_Language_es_DO = "es_DO";
|
||||
private static final String AD_Language_fr_FR = "fr_FR";
|
||||
private static final String AD_Language_fr_CA = "fr_CA";
|
||||
private static final String AD_Language_bg_BG = "bg_BG";
|
||||
private static final String AD_Language_th_TH = "th_TH";
|
||||
private static final String AD_Language_pl_PL = "pl_PL";
|
||||
private static final String AD_Language_zh_TW = "zh_TW";
|
||||
private static final String AD_Language_nl_NL = "nl_NL";
|
||||
private static final String AD_Language_no_NO = "no_NO";
|
||||
private static final String AD_Language_pt_BR = "pt_BR";
|
||||
private static final String AD_Language_ru_RU = "ru_RU";
|
||||
private static final String AD_Language_sl_SI = "sl_SI";
|
||||
private static final String AD_Language_sr_RS = "sr_RS";
|
||||
private static final String AD_Language_sv_SE = "sv_SE";
|
||||
private static final String AD_Language_vi_VN = "vi_VN";
|
||||
private static final String AD_Language_zh_CN = "zh_CN";
|
||||
private static final String AD_Language_da_DK = "da_DK";
|
||||
private static final String AD_Language_ms_MY = "ms_MY";
|
||||
private static final String AD_Language_fa_IR = "fa_IR";
|
||||
private static final String AD_Language_fi_FI = "fi_FI";
|
||||
private static final String AD_Language_ro_RO = "ro_RO";
|
||||
private static final String AD_Language_ja_JP = "ja_JP";
|
||||
private static final String AD_Language_in_ID = "in_ID";
|
||||
private static final String AD_Language_ar_TN = "ar_TN";
|
||||
private static final String AD_Language_hu_HU = "hu_HU";
|
||||
private static final String AD_Language_el_GR = "el_GR";
|
||||
private static final String AD_Language_en_US = "en_US";
|
||||
|
||||
/***
|
||||
* System Languages.
|
||||
* If you want to add a language, extend the array
|
||||
* - or use the addLanguage() method.
|
||||
**/
|
||||
static private Language[] s_languages = {
|
||||
static private Language[] s_languages = new Language[] {
|
||||
new Language ("English",
|
||||
AD_Language_en_US, Locale.US, null, null,
|
||||
MediaSize.NA.LETTER), // Base Language
|
||||
// ordered by locale
|
||||
// Not predefined Locales - need to define decimal Point and date pattern (not sure about time)
|
||||
new Language ("\uFE94\uFEF4\uFE91\uFEAE\uFECC\uFEDF\uFE8D (AR)",
|
||||
AD_Language_ar_TN, new Locale("ar","TN"), new Boolean(true), "dd.MM.yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 (BG)",
|
||||
AD_Language_bg_BG, new Locale("bg","BG"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Catal\u00e0",
|
||||
AD_Language_ca_ES, new Locale("ca", "ES"), null, "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Deutsch",
|
||||
AD_Language_de_DE, Locale.GERMANY, null, null,
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Dansk",
|
||||
AD_Language_da_DK, new Locale("da","DK"), new Boolean(false), "dd-MM-yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("English (AU)",
|
||||
AD_Language_en_AU, new Locale("en","AU"), null, "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("English (UK)",
|
||||
AD_Language_en_GB, Locale.UK, null, null,
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Espa\u00f1ol",
|
||||
AD_Language_es_ES, new Locale("es","ES"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Espa\u00f1ol (MX)",
|
||||
AD_Language_es_MX, new Locale("es","MX"), new Boolean(true), "dd/MM/yyyy",
|
||||
MediaSize.NA.LETTER),
|
||||
new Language ("Espa\u00f1ol (CO)",
|
||||
AD_Language_es_CO, new Locale("es","ES"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.NA.LETTER),
|
||||
new Language ("Espa\u00f1ol (VE)",
|
||||
AD_Language_es_ES, new Locale("es","ES"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Espa\u00f1ol (EC)",
|
||||
AD_Language_es_ES, new Locale("es","ES"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Espa\u00f1ol (DO)",
|
||||
AD_Language_es_DO, new Locale("es","DO"), new Boolean(true), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac (GR)",
|
||||
AD_Language_el_GR, new Locale("el","GR"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Farsi",
|
||||
AD_Language_fa_IR, new Locale("fa","IR"), new Boolean(false), "dd-MM-yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Finnish",
|
||||
AD_Language_fi_FI, new Locale("fi","FI"), new Boolean(true), "dd.MM.yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Fran\u00e7ais",
|
||||
AD_Language_fr_FR, Locale.FRANCE, null, null, // dd.MM.yy
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Fran\u00e7ais (CA)",
|
||||
AD_Language_fr_CA, new Locale("fr","CA"), new Boolean(true), "MM/dd/yyyy", // MM/dd/yy
|
||||
MediaSize.NA.LETTER),
|
||||
new Language ("Hrvatski",
|
||||
AD_Language_hr_HR, new Locale("hr", "HR"), null, "dd.MM.yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Indonesia Bahasa",
|
||||
AD_Language_in_ID, new Locale("in","ID"), new Boolean(false), "dd-MM-yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Italiano",
|
||||
AD_Language_it_IT, Locale.ITALY, null, null, // dd.MM.yy
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("\u65e5\u672c\u8a9e (JP)",
|
||||
AD_Language_ja_JP, Locale.JAPAN, null, null,
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Malaysian",
|
||||
AD_Language_ms_MY, new Locale("ms","MY"), new Boolean(false), "dd-MM-yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Magyar (HU)",
|
||||
AD_Language_hu_HU, new Locale("hu","HU"), new Boolean(false), "yyyy.MM.dd",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Nederlands",
|
||||
AD_Language_nl_NL, new Locale("nl","NL"), new Boolean(false), "dd-MM-yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Norsk",
|
||||
AD_Language_no_NO, new Locale("no","NO"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Polski",
|
||||
AD_Language_pl_PL, new Locale("pl","PL"), new Boolean(false), "dd-MM-yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Portuguese (BR)",
|
||||
AD_Language_pt_BR, new Locale("pt","BR"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Rom\u00e2n\u0103",
|
||||
AD_Language_ro_RO, new Locale("ro","RO"), new Boolean(false), "dd.MM.yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("\u0420\u0443\u0441\u0441\u043a\u0438\u0439 (Russian)",
|
||||
AD_Language_ru_RU, new Locale("ru","RU"), new Boolean(false), "dd-MM-yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Slovenski",
|
||||
AD_Language_sl_SI, new Locale("sl", "SI"), null, "dd.MM.yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("\u0421\u0440\u043F\u0441\u043A\u0438 (RS)",
|
||||
AD_Language_sr_RS, new Locale("sr", "RS"), null, "dd.MM.yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Svenska",
|
||||
AD_Language_sv_SE, new Locale("sv","SE"), new Boolean(false), "yyyy-MM-dd",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("\u0e44\u0e17\u0e22 (TH)",
|
||||
AD_Language_th_TH, new Locale("th","TH"), new Boolean(false), "dd/MM/yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("Vi\u1EC7t Nam",
|
||||
AD_Language_vi_VN, new Locale("vi","VN"), new Boolean(false), "dd-MM-yyyy",
|
||||
MediaSize.ISO.A4),
|
||||
// Need to have (Windows) Asian Language Pack installed to view properly
|
||||
new Language ("\u7b80\u4f53\u4e2d\u6587 (CN)",
|
||||
AD_Language_zh_CN, Locale.CHINA, null, "yyyy-MM-dd",
|
||||
MediaSize.ISO.A4),
|
||||
new Language ("\u7e41\u9ad4\u4e2d\u6587 (TW)",
|
||||
AD_Language_zh_TW, Locale.TAIWAN, null, null, // dd.MM.yy
|
||||
MediaSize.ISO.A4)
|
||||
|
||||
AD_Language_en_US, Locale.US, null, null,
|
||||
MediaSize.NA.LETTER)
|
||||
};
|
||||
/** Default Language */
|
||||
private static Language s_loginLanguage = s_languages[0];
|
||||
|
||||
/** Base Language */
|
||||
private static Language s_baseLanguage = s_languages[0];
|
||||
|
||||
/** Logger */
|
||||
private static Logger log = Logger.getLogger(Language.class.getName());
|
||||
|
@ -238,13 +92,14 @@ public class Language implements Serializable
|
|||
public static Language getLanguage (int index)
|
||||
{
|
||||
if (index < 0 || index >= s_languages.length)
|
||||
return s_loginLanguage;
|
||||
return s_baseLanguage;
|
||||
return s_languages[index];
|
||||
} // getLanguage
|
||||
|
||||
/**
|
||||
* Add Language to supported Languages
|
||||
* @param language new language
|
||||
* @deprecated IDEMPIERE-489 Configure the language in the database
|
||||
*/
|
||||
public static void addLanguage (Language language)
|
||||
{
|
||||
|
@ -264,6 +119,7 @@ public class Language implements Serializable
|
|||
*/
|
||||
public static Language getLanguage (String langInfo)
|
||||
{
|
||||
int idxReplace = -1;
|
||||
String lang = langInfo;
|
||||
if (lang == null || lang.length() == 0)
|
||||
lang = System.getProperty("user.language", "");
|
||||
|
@ -271,32 +127,67 @@ public class Language implements Serializable
|
|||
// Search existing Languages
|
||||
for (int i = 0; i < s_languages.length; i++)
|
||||
{
|
||||
if (lang.equals(s_languages[i].getName())
|
||||
|| lang.equals(s_languages[i].getLanguageCode())
|
||||
|| lang.equals(s_languages[i].getAD_Language()))
|
||||
return s_languages[i];
|
||||
if ( lang.equals(s_languages[i].getName())
|
||||
|| lang.equals(s_languages[i].getLanguageCode())
|
||||
|| lang.equals(s_languages[i].getAD_Language())) {
|
||||
if (!s_languages[i].m_fromDB && DB.isConnected()) {
|
||||
// if language was not get from DB and now we're connected
|
||||
idxReplace = i;
|
||||
break;
|
||||
} else {
|
||||
return s_languages[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Create Language on the fly
|
||||
if (lang.length() == 5) // standard format <language>_<Country>
|
||||
{
|
||||
Language ll;
|
||||
String language = lang.substring(0,2);
|
||||
String country = lang.substring(3);
|
||||
Locale locale = new Locale(language, country);
|
||||
StringBuilder msglog = new StringBuilder()
|
||||
.append("Adding Language=").append(language).append(", Country=").append(country).append(", Locale=").append(locale);
|
||||
if (DB.isConnected()) {
|
||||
MLanguage dblang = MLanguage.get(Env.getCtx(), langInfo);
|
||||
Boolean decimalPoint = null;
|
||||
if (dblang.getIsDecimalPoint() != null)
|
||||
decimalPoint = "Y".equals(dblang.getIsDecimalPoint());
|
||||
if (!( language.equals(dblang.getLanguageISO())
|
||||
&& country.equals(dblang.getCountryCode())
|
||||
)
|
||||
) {
|
||||
locale = new Locale(dblang.getLanguageISO(), dblang.getCountryCode());
|
||||
}
|
||||
MediaSize mediaSize = MediaSize.ISO.A4;
|
||||
if (dblang.getAD_PrintPaper_ID() > 0) {
|
||||
MPrintPaper pp = MPrintPaper.get(dblang.getAD_PrintPaper_ID());
|
||||
mediaSize = pp.getMediaSize();
|
||||
}
|
||||
ll = new Language(dblang.getPrintName(), langInfo, locale, decimalPoint, dblang.getDatePattern(), mediaSize);
|
||||
ll.m_fromDB = true;
|
||||
if (dblang.isBaseLanguage()) {
|
||||
idxReplace = 0;
|
||||
s_baseLanguage = ll;
|
||||
}
|
||||
} else {
|
||||
ll = new Language (lang, lang, locale);
|
||||
}
|
||||
StringBuilder msglog = new StringBuilder("Adding Language=").append(language).append(", Country=").append(country).append(", Locale=").append(locale);
|
||||
if (log.isLoggable(Level.INFO)) log.info (msglog.toString());
|
||||
Language ll = new Language (lang, lang, locale);
|
||||
// Add to Languages
|
||||
ArrayList<Language> list = new ArrayList<Language>(Arrays.asList(s_languages));
|
||||
list.add(ll);
|
||||
s_languages = new Language [list.size()];
|
||||
list.toArray(s_languages);
|
||||
// Return Language
|
||||
if (idxReplace >= 0) {
|
||||
s_languages[idxReplace] = ll;
|
||||
} else {
|
||||
// Add to Languages
|
||||
ArrayList<Language> list = new ArrayList<Language>(Arrays.asList(s_languages));
|
||||
list.add(ll);
|
||||
s_languages = new Language [list.size()];
|
||||
list.toArray(s_languages);
|
||||
// Return Language
|
||||
}
|
||||
return ll;
|
||||
}
|
||||
// Get the default one
|
||||
return s_loginLanguage;
|
||||
return s_baseLanguage;
|
||||
} // getLanguage
|
||||
|
||||
/**
|
||||
|
@ -307,9 +198,9 @@ public class Language implements Serializable
|
|||
public static boolean isBaseLanguage (String langInfo)
|
||||
{
|
||||
if (langInfo == null || langInfo.length() == 0
|
||||
|| langInfo.equals(s_languages[0].getName())
|
||||
|| langInfo.equals(s_languages[0].getLanguageCode())
|
||||
|| langInfo.equals(s_languages[0].getAD_Language()))
|
||||
|| langInfo.equals(s_baseLanguage.getName())
|
||||
|| langInfo.equals(s_baseLanguage.getLanguageCode())
|
||||
|| langInfo.equals(s_baseLanguage.getAD_Language()))
|
||||
return true;
|
||||
return false;
|
||||
} // isBaseLanguage
|
||||
|
@ -320,7 +211,7 @@ public class Language implements Serializable
|
|||
*/
|
||||
public static Language getBaseLanguage()
|
||||
{
|
||||
return s_languages[0];
|
||||
return s_baseLanguage;
|
||||
} // getBase
|
||||
|
||||
/**
|
||||
|
@ -329,7 +220,7 @@ public class Language implements Serializable
|
|||
*/
|
||||
public static String getBaseAD_Language()
|
||||
{
|
||||
return s_languages[0].getAD_Language();
|
||||
return s_baseLanguage.getAD_Language();
|
||||
} // getBase
|
||||
|
||||
/**
|
||||
|
@ -367,7 +258,7 @@ public class Language implements Serializable
|
|||
return s_languages[i].getAD_Language();
|
||||
}
|
||||
}
|
||||
return s_loginLanguage.getAD_Language();
|
||||
return s_baseLanguage.getAD_Language();
|
||||
} // getLocale
|
||||
|
||||
/**
|
||||
|
@ -409,7 +300,6 @@ public class Language implements Serializable
|
|||
*/
|
||||
public static Language getLoginLanguage ()
|
||||
{
|
||||
// return s_loginLanguage; // See bug [2946164]
|
||||
return Env.getLanguage(Env.getCtx());
|
||||
} // getLanguage
|
||||
|
||||
|
@ -475,6 +365,7 @@ public class Language implements Serializable
|
|||
private Boolean m_leftToRight;
|
||||
private SimpleDateFormat m_dateFormat;
|
||||
private MediaSize m_mediaSize = MediaSize.ISO.A4;
|
||||
private boolean m_fromDB = false;
|
||||
|
||||
/**
|
||||
* Get Language Name.
|
||||
|
|
Loading…
Reference in New Issue