For the resume page of an artist website, I created several scructure fields, each with a headline. Until now, the headline was based on the label of the scructure field. The label cannot be changed by the client, i.e. the artist. Now, the website shall become multilingual and all headlines within the resume must be translated. I thought it would be nice if the client can change and translate the headlines in the resume. If I create a text field for each headline, the form becomes redundant and confusing. Do you have any advice for a better solution? Is it possible to let the client create as many resume blocks as he needs with custom headlines?
You can use translation variables in the blueprint
fields:
bio:
type: structure
label: label.bio
These translation variables can be translated by the user in the languages area.
I changed the code from:
fields:
education:
type: structure
columns:
education:
type: text
period:
type: text
width: 1/4
to
fields:
education:
type: structure
label: label.education
columns:
education:
type: text
period:
type: text
width: 1/4
It does not show up any possibilty for translation. What else do I have to apply?
Besides, I wonder if I can set it up in another way. I read about Table Blocks. What if I use a header cell spanning all columns and use it as the headline of the resume section? Or if I use the frist cell of the first table row as the headline?
You need to click on the language you want to translate, then you get to the language settings and the table where you can add translation variables:
I updated Kirby to 3.10.11 and adapted the respective blueprint to:
fields:
education:
type: structure
label: label.education
Then, in the panel main menu, I clicked on Languages and two languages showed up. If I then click on a language, a pop-up window opens. It looks different to the window or page you posted and does not show any language variables. Did I miss anything?
Oh,ok, Kirby 3 doesn’t have this feature