Migrate
2014-02-03

Migration guide

You will find on this page some useful informations about how to migrate when som eAPI or mojo configuration changes.

Version 3.0

In version 3.0, there is some API modifications on class I18n (to be jdk 1.8 compatible) (see Issue 2687).

  • I18n._ method is renamed to I18n.t.
  • I18n.n_ method is renamed to I18n.n.
  • I18n.l_ method is renamed to I18n.l

You can apply these command on you project to do the migration

for f in $(grep -m 1 -I -nr 'I18n' . | grep -v '.svn' | awk -F ':' '{print $1}') ; do \
  echo $f ; \
  sed  -i -e 's/I18n\([.]\)n_/I18n\1n/g' $f ; \
  sed  -i -e 's/I18n\([.]\)l_/I18n\1l/g' $f ; \
  sed  -i -e 's/I18n\([.]\)_/I18n\1t/g' $f ; \
  sed  -i -e 's/n_(/n(/g' $f ; \
  sed  -i -e 's/l_(/l(/g' $f ; \
  sed  -i -e 's/_(/t(/g' $f  ; \
done

For jaxx application, apply also this:

for f in $(find -name "*.css")  ; do \
  echo $f ; \
  sed  -i -e 's/n_(/n(/g' $f ; \
  sed  -i -e 's/l_(/l(/g' $f ; \
  sed  -i -e 's/_(/t(/g' $f  ; \
done