Developer forum

Forum » CMS - Standard features » Add translations to language layers

Add translations to language layers

Caro De Weze
Reply

Hi,

I have a general question. For example, if I want to add 4 language layers. Each layer contains an exact copy of the website. Is it easy to simply implement these translations without having to open each page and paste the translation into it? For example, can I load this via the database or is there another way?

Caro


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Caro,

 

Those live in an XML file called Translations.xml. If you search within the Templates folder you'll likely find several.

 

Assuming you are using Swift, focus on the one of the root of Templates/Designs/Swift, which should give you all the ones.

 

Best Regards,

Nuno Aguiar

 
Caro De Weze
Reply

Hi Nuno,

Thanks for the quick response. Unfortunately it's not exactly what I'm looking for. I really mean the content that you have entered on the page (e.g. in a text block).

Caro

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Caro,

 

Oh that's much harder. I don't believe there's an interface that supports that unfortunately.

 

Nuno

 
Caro De Weze
Reply

Hi Nuno,

That's too bad, but I already feared it. Is there an option to export all these content? This way we can simply translate that export.

Caro

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Caro,

 

Not that I know of. But maybe you can implement something using the Repository. It already indexes all searchable content. You can develop a method that exports all of the repository into a csv or excel file, where it also identifies the item type you're getting it from (so it's somewhat usable to import it back in).

 

It's not a simple job, I grant you that :\

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum