How can I display my license and readme files in the language selected?

asked 14 Sep '11, 05:08

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%


You can specify multiple license files using the <licenseFileList> tag. You will still need to use a regular <licenseFile> tag inside the project xml: it will be used as the default license file in case there's no custom license file for the current language.

Inside this tag, you can add as many <licenseFile> tags as license files you'll provide. For each <licenseFile> entry, you'll need to provide the license file path, its language identifier and the file encoding.

Here's an example of how it works:

<licenseFileList>
      <licenseFile>
              <code>en</code>
              <file>/home/user/license-english.txt</file>
              <encoding>iso8859-1</encoding>
      </licenseFile>
      <licenseFile>
              <code>jp</code>
              <file>/home/user/license-japanese.txt</file>
              <encoding>utf-8</encoding>
      </licenseFile>
      <licenseFile encoding="utf-8" code="es" file="/home/user/license-spanish.txt" />
</licenseFileList>

The installer will pick the right license file depending on the current selected language for the installer.

You can do a similar arrangement with readme files and the <readmeFileList> tag:

<readmeFileList>
      <readmeFile>
              <code>en</code>
              <file>/home/user/readme-english.txt</file>
              <encoding>iso8859-1</encoding>
      </readmeFile>
      <readmeFile>
              <code>jp</code>
              <file>/home/user/readme-japanese.txt</file>
              <encoding>utf-8</encoding>
      </readmeFile>
      <readmeFile encoding="utf-8" code="es" file="/home/user/readme-spanish.txt" />
</readmeFileList>
link

answered 14 Sep '11, 05:09

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×27
×26
×7

Asked: 14 Sep '11, 05:08

Seen: 1,740 times

Last updated: 14 Sep '11, 05:09