Versions Compared

Key

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

...

Wiki Markup
{style}
.panel {-moz-border-radius: 7px;
border-radius: 7px;}
.panelMacro table {-moz-border-radius: 15px;
border-radius: 15px;}
{style}
Panel
borderColor2

The translation files are now hosted and managed on Transifex website. Get an account at Transifex and help translating to your language! If your language is missing, just head over to Transifex and request a new language.

Note
titleText length

The translations for many languages frequently exceed the length of the corresponding English source. It could be a problem for the layout of graphical components (e.g. buttons).

Tip
titleSpecial characters

Some characters representing values (%d, %s), new line (\n) and html tags must not be translated. For other translating recommendations, see Transifex help.

For special words or particular contexts look at the "Instructions" text box (gives explanations or definitions).


Building Weasis-i18n

Panel
borderColor2

weasis-i18n is the internationalization project of

...

Weasis. As a separate project, it can have its own release cycle. The fragments of plug-ins (OSGI concept) contain only the translation files

...

Supported languages: French, Japanese 

Binary Distributions

Download the internationalization plug-ins of the release 1.0.7

Building Weasis-i18n

Prerequisites

...

which are merged during runtime to the application.

That means the weasis-i18n.war file can be deployed at any time. The plug-in translation will be updated by Weasis only if the timestamp number has changed. This timestamp is set during the build phase described below.

Info
titleAdditional projects to obtain a full translation of Weasis

java-swing-dialogs translations must be updated manually in the weasis-launcher module and docking-frames translations must be packaged with the library.

Prerequisites

  1. JDK 6 or higher (Sun or OpenJDK)
  2. Maven 2.2 or higher

    for building and deploying bundles

    (http://maven.apache.org/guides/index.html)

Check out a release

...


svn co http://weasis.repositoryhosting.com/svn_public/weasis_weasis-i18n/tags/weasis-i18n-1.0.7
cd weasis-i18n-1.0.7

...

  1. Note

    If your computer is behind a proxy server, configure maven.

  2. Git (or directly download source from gitub), one of the following client:
    • CLI on Linux or Mac OS X -  Install git-core package
    • Windows - Tortoise Git - (When installing msysgit be sure to choose Unix style line endings)
    • Eclipse - Install egit

Getting the Source

To clone the repository, first install GIT and either clone using a graphical GIT client (such as Tortoise Git) or directly from the command line using the command:

Code Block
none
none
git svnclone co httpgit://weasis.repositoryhostinggithub.com/svn_publicnroduit/weasis_weasis-i18n/trunk weasis-i18n
cd weasis-i18n

...

.git

This command will copy the current development code (the "master" branch) into a local directory named weasis-i18n.
Note: Sources can also be browsed online or download as a zip file.

Build the distribution

  • Go in the weasis-i18n directory, Compile and install all the plug-ins in the local Maven repository
Code Block
none
none

mvn clean package

The distribution files are located in the distribution/target/dist folder.

Public repository (read only access)

http://weasis.repositoryhosting.com/svn_public/weasis_weasis-i18n

Browse online: https://weasis.repositoryhosting.com/trac/weasis_weasis-i18n/browser

Repository for translators (commit access)

https://weasis.repositoryhosting.com/svn/weasis_weasis-i18n

Commit access requests must be sent to ~nroduit

Subversion configuration

Using Eclipse: see Configure SVN
subversion client on Linux: add to ~./subversion/config: global-ignores = *.classpath *.project *.settings target
Windows: Tortoise SVN, in settings > Subversion, add "*.classpath *.project *.settings target" to Global ignore pattern.

Properties editor

Software for translating: http://attesoro.org

With Eclipse, I recommend to use the properties editor http://propedit.sourceforge.jp.

References for Java Locale:

Note
titleBe Careful
To make a translation, be careful of the length of the text (especially for ui components like buttons) and some items have a space at the end
 install -Dtransifex.credential=<"username:password">
Note

All of the API calls on Transifex require the user to be authenticated. So the value "username:password" must be replaced by your credential, see how to create an account.
Command with proxy server:
mvn clean install -DproxySet=true -DproxyHost=<host> -DproxyPort=<port> -Dtransifex.credential=<"username:password">

Info
titleOld versions

Get the GIT branch 1.2.x of weasis-i18n and build the package of https://www.transifex.com/organization/weasis/dashboard/weasis-12-old

The distribution files are located in the weasis-i18n-dist/target/dist folder. weasis-i18n.war must be placed in the same base context as weasis.war (if in other web context, the value of the property weasis.i18n in JNLP file must be adapted).

To update translation packs in weasis-portable, unzip weasis-i18n.zip and replace files in weasis-portable/weasis/bundle-i18n/.

Note: weasis-launcher-i18n cannot not be updated dynamically. It must be imported in the Weasis source (weasis-launcher).