Apply Multi Languages to Your ADF Application Part 1

21 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€67.24
List Price:  €96.07
You save:  €28.82
£55.68
List Price:  £79.55
You save:  £23.86
CA$100.66
List Price:  CA$143.82
You save:  CA$43.15
A$111.82
List Price:  A$159.75
You save:  A$47.93
S$94.88
List Price:  S$135.55
You save:  S$40.66
HK$543.79
List Price:  HK$776.87
You save:  HK$233.08
CHF 62.67
List Price:  CHF 89.54
You save:  CHF 26.86
NOK kr792.28
List Price:  NOK kr1,131.89
You save:  NOK kr339.60
DKK kr501.55
List Price:  DKK kr716.53
You save:  DKK kr214.98
NZ$123.71
List Price:  NZ$176.74
You save:  NZ$53.02
د.إ257.07
List Price:  د.إ367.25
You save:  د.إ110.18
৳8,328.16
List Price:  ৳11,897.89
You save:  ৳3,569.72
₹5,958.01
List Price:  ₹8,511.81
You save:  ₹2,553.80
RM314.25
List Price:  RM448.95
You save:  RM134.70
₦108,236.03
List Price:  ₦154,629.53
You save:  ₦46,393.50
₨19,398.69
List Price:  ₨27,713.60
You save:  ₨8,314.91
฿2,394.21
List Price:  ฿3,420.45
You save:  ฿1,026.24
₺2,465.01
List Price:  ₺3,521.60
You save:  ₺1,056.58
B$426.13
List Price:  B$608.79
You save:  B$182.65
R1,290
List Price:  R1,842.93
You save:  R552.93
Лв131.30
List Price:  Лв187.58
You save:  Лв56.28
₩101,582.03
List Price:  ₩145,123.41
You save:  ₩43,541.37
₪254.54
List Price:  ₪363.65
You save:  ₪109.10
₱4,098.92
List Price:  ₱5,855.86
You save:  ₱1,756.93
¥10,967.38
List Price:  ¥15,668.35
You save:  ¥4,700.97
MX$1,406.50
List Price:  MX$2,009.38
You save:  MX$602.87
QR254.06
List Price:  QR362.96
You save:  QR108.89
P963.25
List Price:  P1,376.14
You save:  P412.88
KSh9,053.20
List Price:  KSh12,933.70
You save:  KSh3,880.50
E£3,568.78
List Price:  E£5,098.48
You save:  E£1,529.69
ብር8,687.63
List Price:  ብር12,411.43
You save:  ብር3,723.80
Kz64,250.82
List Price:  Kz91,790.82
You save:  Kz27,540
CLP$69,297.02
List Price:  CLP$99,000
You save:  CLP$29,702.97
CN¥510.87
List Price:  CN¥729.84
You save:  CN¥218.97
RD$4,243.89
List Price:  RD$6,062.96
You save:  RD$1,819.07
DA9,435.69
List Price:  DA13,480.14
You save:  DA4,044.44
FJ$162.05
List Price:  FJ$231.51
You save:  FJ$69.46
Q536.99
List Price:  Q767.16
You save:  Q230.17
GY$14,580.66
List Price:  GY$20,830.41
You save:  GY$6,249.74
ISK kr9,757.30
List Price:  ISK kr13,939.60
You save:  ISK kr4,182.30
DH701.41
List Price:  DH1,002.06
You save:  DH300.64
L1,291.33
List Price:  L1,844.84
You save:  L553.50
ден4,135.36
List Price:  ден5,907.91
You save:  ден1,772.55
MOP$557.92
List Price:  MOP$797.07
You save:  MOP$239.14
N$1,283.07
List Price:  N$1,833.03
You save:  N$549.96
C$2,564.57
List Price:  C$3,663.83
You save:  C$1,099.26
रु9,479.94
List Price:  रु13,543.35
You save:  रु4,063.41
S/259.51
List Price:  S/370.75
You save:  S/111.23
K282.61
List Price:  K403.75
You save:  K121.13
SAR262.99
List Price:  SAR375.71
You save:  SAR112.72
ZK1,928.73
List Price:  ZK2,755.44
You save:  ZK826.71
L334.62
List Price:  L478.06
You save:  L143.43
Kč1,690.23
List Price:  Kč2,414.72
You save:  Kč724.49
Ft27,882.67
List Price:  Ft39,834.10
You save:  Ft11,951.42
SEK kr772.23
List Price:  SEK kr1,103.23
You save:  SEK kr331
ARS$71,547.27
List Price:  ARS$102,214.77
You save:  ARS$30,667.50
Bs481.59
List Price:  Bs688.02
You save:  Bs206.42
COP$305,890.51
List Price:  COP$437,005.17
You save:  COP$131,114.66
₡35,162.35
List Price:  ₡50,234.08
You save:  ₡15,071.73
L1,769.11
List Price:  L2,527.41
You save:  L758.30
₲543,432.39
List Price:  ₲776,365.26
You save:  ₲232,932.87
$U3,131.93
List Price:  $U4,474.38
You save:  $U1,342.44
zł286.59
List Price:  zł409.44
You save:  zł122.84
Already have an account? Log In

Transcript

Hello, in this video I will show you how you can apply localization into your EDF application localization means in your case should apply you can apply multi language in your ADF application. So, your your application can support multiple language. In this video I will show you how you can apply English and Arabic language in your native application. So that I can show you right to lift and lift right. So I have created a simple PDF application with one entity object one view object it has source now to create a beach template the speech template has two links one English one Arabic once it is a breeze in English link replicate is a publication should should switch to an English once the user base and arbic link the only the publication should switch to Arabic language. So let us create an idiom which template okay.

It has it maybe is this Have it as a head over the top has to Linkous and this is a beach buddy Nick is it was create one face it mean okay so this is my template in the first face it is here panel group layout because I need to add two links so I make it clear with horizontal and shoreline magazines alright site what is the right side the beach and I will add two legs here and here we can add the spacer. I quickly go through this because you should be able to do all of this This is just a design and this link I call it English and this link I will call it Arabic but in our big language okay and we should ns action should call method which will make the switch so I would call it here new been call it muy bien muy bien fue to be and I can give you the method call English language, action and his we can call Rita Misuk call Arabic language Okay, so this is the header and the body I will just add my face it me This is a simple page template has just two links and this is a body face saw a little scary to a PDF pages the first page will go view v1 southcom and BG two would be v2 and which could eat the beach one use my template Okay, pitch to use my template as well.

Okay, this is the two pages. So we can go for the finished page. We can add here, Bennett books just to say I am view one and I will track department's view here as a four row navigation and press OK this is symbol departments for the first page and we can do the same in the second page or we can drag it as a table so that was at Bennett books and view two and you will add Bennett collection and tech support maintenance Bennett collection has a table so now we have two pages. One Beach has a form and other page has a table. Okay and we need And the second beach here let us add some has a toolbar let's add some port on here like creation creating search for the table and see you back Okay, this was interview one here at the bottom which will move to the view tool so we can go say here Go to View two okay and interaction I will select v two same as a view to that was at the bottom here Cool Go to View one and I will select if we want.

Now, I have now two pages and I need to apply. So, localization in this wages, so, the first thing you will do is you will create a bundle a property file which has key and value. So, to create this I will stop for any of the components which I need the values the label or the tick is to be switched depending on the language of the application. For example, the first sin I will select here select the tick is three source. I will select the s3 source is he here he will create a resource bundle called view controller bundle that displayed the You will be fairest ends the key of this will be first the key that you will save. So, what happened now, you will find a view control bundle two properties created if you open it you will find there are key called fairest and the value is first and if you have a look here in the bottom you will find the tickets to become view control bundle it is pointed a view control bundle dot first which is a key and depending on the value to return it here.

So, we can do the same in the previous So, I will go here and select the resource it will display value key Yes. Same in next. Last, as you can see here it is edit is view control bundle okay Go to View to any tickets to have, you want to add the ticket itself in the property file like this set we should be able to switch the whole application depending on their property value was the same in the department ID so I will select here and here I will call the department. Id. This is the value and this is the key. Okay.

Here I will call it name and visa key we can see the port meant Name Manager lukesh So now, any text in your in if application want to display first, you should call this key first. If you have any text in your ETF application need to display manager the word manager you have to buy into this manager key. As you can see here, we pointed by calling view control wanted dot and the rights the key. So now all tickets we have all label and tickets we have in our page it is point to the SWOT This is a still I am view one so let us add this as well if you want. So any any tickets you have here in your niche, you should point it to the resource above. This is my first beach so it has jumped to the second one This is create insert, we can call it you.

Of course, we don't want to write hard coded here. So, I will select this abundant, I will create a new This is delete soldiers add delete we can call this save. So that was a save and this is called cancel and you will select cancel, go to View one, select tickets to resource. So now all tickets I have in my application in one file, property file exist. I am in view two as well this is should be in the resource bundle. Okay.

What else in the table itself? There have been the worst winter for example, what tomato years already exist So, all I need is just to point to this department ID. So, what you can do, you can do select the cost resource you will find all the resources which we have as you can simply select the water mint ID, this will sit next to this same here name does already exist. So I will select here in this manager already exists so I would dictate manage location, I will select the location. So now, all thickest in all pages I have in my PDF application now exist in this vulnerability file. To apply multiple language depending on what language you want, you should copy this vertifight for example, if you need English French and Arabic.

So, you have to copy this file three times. So, the minimal number of language you want you should copy this. So, now I agree, we agree that this is my birth file which need to be need to be translated. So, what I will do, I will go to to the file bus here and I will copy this poverty file two times because I need it for English and I need it for Arabic. So, all I will do is I will have the same name of the main probate file, but I will write underscore, e en for English it should be the same name and I would underscore er if you have you have French you can write underscore if R and so on. So, the minute ones language you want e r, e n or whatever you can try the same mean of the variable route The same name of zebra vertifight just add underscore and the shortcode of your language, this E R and e n. Actually, we wouldn't send it to the switcher we didn't implement the switcher yet.

So, here I will show you how you can write the code to switch the language. So, depending on what you write here your language you should set your language depending on the prefix which you add for the language here. So, let us now refresh you will find the file pervert file we come here. So for e anglish, we need this new change so for Arabic, we need to change this for was Arabic letter. For Arabic letter you need just if it is French, it is easy you can write the French you no problem but in Arabic literature you need to convert it as a human Unicode. So all of this should be converted to Unicode.

So to do this, just google opens their role and right click is to convert Unicode online select this link here you can add your Arabic language and it will convert to the UTF. So for example first here in Arabic like this, so I will copy this and I will put it in the first scene. So I will translate all all English value, I will keep the key as it is, is key is a key which we are using in the beach itself and I will To change only the value the value of each key Okay, so now I have translate all the Arabic ports as a Unicode. So here I have one n, which has the key, same the key here, but in the file which ends with underscore n, a, I have this value values, but is a broad fine which underscore er, I have this values.

So now our derivative file is ready. So all I need is I need to point to this pervert file and since the default vertifight which one is the default one? To do this, you should go to the faces config Good services conflict overview and I will go for application here, you should go into your resource model and what is your default to look to go into as your default that you do to go into your resource bundle you have to go to the package, since a file name without any promote your underscore anything, you just to copy the file name and you had preset and you raise a package which is view dot and just writes a file name without any language and we say the default locale will be n and the file name is the prefix which we are using to point to this which we are using here.

This is our board name. This is As a short name which we should use to call the keys in size this resource wanted so I will write it in here okay. So, this is it now, I configure my application to read the resource abundant from this and I will use this prefix or var to go into the key insights this resource abundant and the default locale for me is n. So it should be part of your resource wanted which is exist here. So, let us now just write the code which will switch your language from English to Arabic. So, here I create a switch language. This switch language will receive your language Which is in or your and all what this function will do it will is to look at or language in a variable in a decision school and I will let you know later why you need to do that after I stole 70 in decision school all what I need I will get the faces contiguous and I would create a new locale and I will get the view route and I will set this locale with my new locale language, this is what this function will do.

So, all I need to write inside the English action is the bitstream with which we add just I will call this which language and I will send here same in Arabic language I will call the same but I will send you here he or so, because of you will send n and E or you have to check that you have a perverted foil with the same prefix here. And er like this okay so this is the code which will switch you applications to selected language. Let us now try to run our view one and see ok so as you can see here, this is a default locale which is running which is English and all it is English so let's try now to brace in Arabic. Think here and you'll find all page coming from left to right. And as you can see, the old title is changed to Arabic back to English or Arabic so we can easily switch between two language in your EDF application if you go to view to the second pitch You will find it is coming to English again.

So if you select here Arabic language, it comes to the Arabic but if you navigate to another page back to it to return again to the default one this is the problem now. So the next video I will show you how you can keep your language into the old application does not switch it into the default language once you go to other bitch so see you in activity you

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.