itshorty
itshorty

Reputation: 1562

Add custom translation Strings to liferay theme

I want to add some Translations to my Theme to call it with #language("key") in my template.vm files. After googling around I have still no clue where to place the Language.properties files.

Is it even possible to add Translations to a Theme? If so where I have to place these files?

Thx in advance - Florian

Upvotes: 1

Views: 2504

Answers (3)

asifaftab87
asifaftab87

Reputation: 1443

enter image description here

Please check this image and hope it is helpful for you In words create a folder docroot/WEB-INF/src folder this three are not different folder if you see in your project in your package explorer then this is the first folder inside your project. Thanks and regards asif aftab

Upvotes: 0

javamak
javamak

Reputation: 41

Create a hook to override the language files.

Refer Overriding language in below link

Upvotes: 1

Thiyagu
Thiyagu

Reputation: 1

It is very simple.. Add your "custom-key" on portal-impl.jar file for the language specific properties files. You could able to find language properties at portal-impl.jar\content\Language.properties. On .vm file add #language("custom-key"). Restart the server.

Thanks & Regards, Thiyagu.L

Upvotes: 0

Related Questions