Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleLocalization with Template Fragments

The localization files are provided separately for each space or doctype base template. If a locale is not supported, the resource for the default locale is returned.

Section
titleSpaces

The localized resources for doctypes are stored per locale in the project folder at

Code Block
src/main/resources/spaces/[id of space descriptor]/l10n_[locale].properties
Code Block
languagetext
titleProperties File for the default Locale
# Space Wizard for ${space.name} ##############################################

${package}.${shortId}.blueprints.space.blueprint.name=${space.name}
${package}.${shortId}.blueprints.blueprint.description=${space.description}

${package}.${shortId}.blueprints.blueprint.dialog.choose.title=Create a ${space.name}
${package}.${shortId}.blueprints.blueprint.dialog.choose.heading=${space.name}
${package}.${shortId}.blueprints.blueprint.dialog.choose.description=${space.about}

${package}.blueprints.space.blueprint.def.name=${space.name} Definition
Note Box

Currently only one space per generated add-on project is supported.

Section
titleDoctypes

The localized resources for doctypes are stored per locale in the project folder at

Code Block
src/main/resources/doctypes/[id of the base template]/fragments/l10n_[locale].properties
Code Block
languagetext
titleProperties File for the default Locale
## ${doctypeNameLabel} ............................................................

### Documentation URLs
${package}projectdoc.url.${doctypeId}=${doctypeNameLabel.urlPart}
${package}projectdoc.url.${doctypeId}.label=${doctypeNameLabel}
${package}projectdoc.url.${doctypeId}.title=Documentation on the ${doctypeNameLabel} doctype

### Home and Index Pages
${package}projectdoc.doctype.${doctypeId}.home=${doctypeNameLabel.plural}
${package}projectdoc.content.${doctypeId}.home.title=${doctypeNameLabel.plural}
${package}projectdoc.content.${doctypeId}.home.description=Homepage of ${doctypeNameLabel.plural.lower}
${package}projectdoc.content.${doctypeId}.home.roots-only.title=${doctypeNameLabel.plural}
${package}projectdoc.content.${doctypeId}.home.roots-only.desc=List of central ${doctypeNameLabel.plural.lower}.
${package}projectdoc.content.${doctypeId}.index.all.title=All ${doctypeNameLabel.plural}
${package}projectdoc.content.${doctypeId}.index.all.desc=List of all ${doctypeNameLabel.plural.lower}.

### Template
${package}projectdoc.${doctypeId}.template.title=${doctypeNameLabel}

${package}projectdoc.doctype.${doctypeId}.children=Subordinate ${doctypeNameLabel.plural}

### Blueprint
${package}.blueprint.${doctypeId}.title=${doctypeNameLabel}
${package}.blueprint.${doctypeId}.create-link.title=${doctypeNameLabel}
#$${package}.blueprint.${doctypeId}.create-link.descriptionlabel=Create ${doctypeNameLabel}

${package}.doctype.blueprint.wizard.${doctypeId}.page1.title=Create a ${doctypeNameLabel}
${package}.doctype.blueprint.wizard.${doctypeId}.page1.desc.header=About ${doctypeNameLabel.plural}

${package}.doctype.${doctypeId}.create.label=Create ${doctypeNameLabel}
Section
titleSubordinate Topics
Display Table
doctypetopic
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name

...