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
€64.51
List Price:  €92.16
You save:  €27.65
£54.93
List Price:  £78.48
You save:  £23.54
CA$95.68
List Price:  CA$136.70
You save:  CA$41.01
A$105.53
List Price:  A$150.76
You save:  A$45.23
S$94.49
List Price:  S$134.99
You save:  S$40.50
HK$546.56
List Price:  HK$780.84
You save:  HK$234.27
CHF 64.08
List Price:  CHF 91.55
You save:  CHF 27.46
NOK kr740.69
List Price:  NOK kr1,058.18
You save:  NOK kr317.48
DKK kr481.62
List Price:  DKK kr688.07
You save:  DKK kr206.44
NZ$114.33
List Price:  NZ$163.34
You save:  NZ$49
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,200.05
List Price:  ৳11,714.86
You save:  ৳3,514.80
₹5,813.28
List Price:  ₹8,305.04
You save:  ₹2,491.76
RM329.26
List Price:  RM470.40
You save:  RM141.13
₦102,276.30
List Price:  ₦146,115.27
You save:  ₦43,838.96
₨19,447.66
List Price:  ₨27,783.57
You save:  ₨8,335.90
฿2,561.05
List Price:  ฿3,658.80
You save:  ฿1,097.75
₺2,254.58
List Price:  ₺3,220.97
You save:  ₺966.38
B$361.64
List Price:  B$516.65
You save:  B$155.01
R1,289.17
List Price:  R1,841.76
You save:  R552.58
Лв126.12
List Price:  Лв180.18
You save:  Лв54.05
₩95,655.33
List Price:  ₩136,656.33
You save:  ₩41,001
₪256.11
List Price:  ₪365.88
You save:  ₪109.77
₱4,073.73
List Price:  ₱5,819.86
You save:  ₱1,746.13
¥10,984.58
List Price:  ¥15,692.93
You save:  ¥4,708.35
MX$1,168.81
List Price:  MX$1,669.81
You save:  MX$500.99
QR254.92
List Price:  QR364.18
You save:  QR109.26
P949.81
List Price:  P1,356.93
You save:  P407.12
KSh9,122.85
List Price:  KSh13,033.20
You save:  KSh3,910.35
E£3,298.27
List Price:  E£4,712.01
You save:  E£1,413.74
ብር4,016.76
List Price:  ብር5,738.47
You save:  ብር1,721.71
Kz59,376.64
List Price:  Kz84,827.41
You save:  Kz25,450.77
CLP$63,455.03
List Price:  CLP$90,653.93
You save:  CLP$27,198.90
CN¥497.66
List Price:  CN¥710.97
You save:  CN¥213.31
RD$4,116.79
List Price:  RD$5,881.38
You save:  RD$1,764.59
DA9,410.57
List Price:  DA13,444.25
You save:  DA4,033.68
FJ$158.71
List Price:  FJ$226.74
You save:  FJ$68.02
Q543.03
List Price:  Q775.80
You save:  Q232.76
GY$14,626.09
List Price:  GY$20,895.31
You save:  GY$6,269.22
ISK kr9,672.61
List Price:  ISK kr13,818.61
You save:  ISK kr4,146
DH697.32
List Price:  DH996.21
You save:  DH298.89
L1,240.19
List Price:  L1,771.78
You save:  L531.58
ден3,973.31
List Price:  ден5,676.40
You save:  ден1,703.09
MOP$562.57
List Price:  MOP$803.71
You save:  MOP$241.13
N$1,284.81
List Price:  N$1,835.52
You save:  N$550.71
C$2,572.99
List Price:  C$3,675.86
You save:  C$1,102.87
रु9,296.83
List Price:  रु13,281.76
You save:  रु3,984.92
S/261.34
List Price:  S/373.37
You save:  S/112.02
K271.67
List Price:  K388.13
You save:  K116.45
SAR262.44
List Price:  SAR374.94
You save:  SAR112.49
ZK1,865.84
List Price:  ZK2,665.60
You save:  ZK799.76
L320.98
List Price:  L458.57
You save:  L137.58
Kč1,589.64
List Price:  Kč2,271.01
You save:  Kč681.37
Ft24,759.44
List Price:  Ft35,372.15
You save:  Ft10,612.70
SEK kr746.68
List Price:  SEK kr1,066.73
You save:  SEK kr320.05
ARS$62,326.79
List Price:  ARS$89,042.09
You save:  ARS$26,715.29
Bs483.06
List Price:  Bs690.12
You save:  Bs207.05
COP$270,493.43
List Price:  COP$386,435.76
You save:  COP$115,942.32
₡35,841.38
List Price:  ₡51,204.17
You save:  ₡15,362.78
L1,727.58
List Price:  L2,468.08
You save:  L740.49
₲525,820.15
List Price:  ₲751,203.84
You save:  ₲225,383.69
$U2,690.36
List Price:  $U3,843.53
You save:  $U1,153.17
zł274.38
List Price:  zł391.99
You save:  zł117.60
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.