+ All Categories
Home > Documents > Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo...

Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo...

Date post: 19-Mar-2020
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
23
Using Crowdin and Ulteo Open Virtual Desktop in the translation process of Salome 2014-11-27 Salome User Day 2014 | Christophe Bourcier 24 NOVEMBRE 2014 | PAGE 2 CEA | 10 AVRIL 2012
Transcript
Page 1: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Using Crowdin and Ulteo

Open Virtual Desktop in the

translation process of Salome

2014-11-27

Salome User Day 2014 | Christophe Bourcier

24 NOVEMBRE 2014 | PAGE 2 CEA | 10 AVRIL 2012

Page 2: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Manage locale in Qt

Source file (*.ts):

xml

key/translation

one file per locale

edited via:

- text editor

- Qt Linguist

Binary file (*.qm):

compact binary format

used by the localized application

provides extremely fast lookups for translations

generated by lrelease at make install

24 NOVEMBRE 2014 | PAGE 3 CEA | 2014-11-27

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE TS>

<TS version="2.0" language="en_US">

<context>

<name>@default</name>

<message>

<source>GEOM_BOOL_REMOVE_EXTRA_EDGES</source>

<translation>Remove extra edges</translation>

</message>

</context>

</TS>

Page 3: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Qt Linguist

24 NOVEMBRE 2014 | PAGE 4 CEA | 2014-11-27

GUI to edit .ts files

Page 4: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Example: fuse dialog box

25 NOVEMBRE 2014

Page 5: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Crowdin

Goal:

manage localization of a project by a community of users

for mobile apps, web, desktop software and related assets

free for open-source projects

How:

web interface: https://crowdin.com

command line interface (java or ruby): crowdin-cli

History of Crowdin use for Salome:

initiated by Luca Dall’Olio (Alneos)

Japanese translations done by Japan Salome-Meca Working Group (JSWG)

integration of first Japanese translations in Salome 7.3.0 (Renaud Nedelec,

Euriware)

automatization of the integration of translations to update Japanese translations

in Salome 7.4.0 (Christophe Bourcier, CEA)

24 NOVEMBRE 2014 | PAGE 6 CEA | 2014-11-27

Page 6: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Crowdin: Salome localization

24 NOVEMBRE 2014 | PAGE 7 CEA | 2014-11-27 Translation 100% done

Translation 16% done

(the user first copied all english translations,

then translates to Romanian)

Page 7: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Crowdin: French localization progress per file

Page 8: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Crowdin: display untranslated sentence

See translation in

other languages

Page 9: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Crowdin: translate sentence

See translation of

similar sentences

Page 10: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Update translation source files in Crowdin

When:

before a new release (in beta stage)

so that users can translate the new features

Notify the translators:

Crowdin RSS feed

Message on Crowdin form

E-mail by the integrator to translators

What is done (in CLI):

get Salome sources from git master

put translation files in Crowdin source directory (local):

- "*_msg_en.ts"

- YACS/src/salomegui/resources/YACS_msg_fr.ts

- GUI/src/Qtx/resources/Qtx_msg_fr.ts

remove language suffix

upload new sources to Crowdin

upload new translations done on git to Crowdin

- only for English and French

24 NOVEMBRE 2014 | PAGE 11 CEA | 2014-11-27

Page 11: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Integrate translated files to Salome git repository

When:

when many files have been translated so that users can check their translations

before a new release (before rc stage)

Notify the integrator:

E-mail by a translator or a Salome manager

Crowdin RSS feed

What is done (in CLI):

download translation files from Crowdin

copy wanted languages in Salome sources (only Japanese for now)

git add only translation files

git commit -m "Update translation files from Crowdin"

git push

25 NOVEMBRE 2014 | PAGE 12 CEA | 2014-11-27

Page 12: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Check the translations

What has been done for 7.4.0:

download translations from Crowdin

integrate translated files to Salome git repository

compile Salome on Fedora 18

provide an archive with SalomeTools in CEA ftp

installation by the translators

check of the translations

update of the translations in Crowdin

loop until the translators give their agreement or the release date is reached

Idea to improve this workflow:

automatically build Salome on Ulteo Open Virtual Desktop

| PAGE 13 CEA | 2014-11-27

inte

gra

te

build provide

on ftp

install

& check

Page 13: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Ulteo Open Virtual Desktop

Who:

founded by Gaël Duval in 2006

acquired by AZNetwork in 2014

Goal:

provide desktop apps as web apps

provide remote desktop with your favourite apps

provide same apps to a group of users

opensource

similar commercial products:

- Citrix

- OVH HPC Spot

How:

works in any web browser (html5 or java client)

PC, tablet, smartphone

24 NOVEMBRE 2014 | PAGE 14 CEA | 2014-11-27

Page 15: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Check the translations (OVD workflow)

What has been done to improve the check translation workflow:

installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop

one application per language

every ½ hour:

- check if new translations have been done

- if needed, download translations

- make install in updated Salome modules

The new check workflow:

wait ½ hour max

launch Salome in the Virtual Desktop

| PAGE 16 CEA | 2014-11-27

inte

gra

te

check

build

Page 16: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Ulteo login

| PAGE 17 CEA | 2014-11-27

Page 17: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Ulteo desktop: check last Salome build information

| PAGE 18 CEA | 2014-11-27

Page 18: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Check Salome translation in Ulteo desktop (French)

| PAGE 19 CEA | 2014-11-27

Page 19: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Check Salome translation in Ulteo desktop (Japanese)

| PAGE 20 CEA | 2014-11-27

Page 20: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Check Salome translation in Ulteo desktop (Romanian)

| PAGE 21 CEA | 2014-11-27

Page 21: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Don’t forget to logout or disconnect to be able to

login again (without having to wait until the timeout)

| PAGE 22 CEA | 2014-11-27

Page 22: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

What’s next?

Require help from volunteers to translate Salome:

on Salome forum

from your native speaking colleagues

you!

Need one trusty person per language.

Contact me for a user account: [email protected]

Install OVD on a better server.

Find new ways to use OVD in your projects.

| PAGE 23 CEA | 2014-11-27

Page 23: Using Crowdin and Ulteo Open Virtual Desktop in the ......installation of Salome 7.5.0b1 on Ulteo Open Virtual Desktop one application per language every ½ hour: - check if new translations

Direction de l’Energie Nucléaire

Département de Modélisation des

Systèmes et Structures

Service de Thermohydraulique et de

Mécanique des Fluides

Commissariat à l’énergie atomique et aux énergies alternatives

Centre de Saclay | 91191 Gif-sur-Yvette Cedex

T. +33 (0)1 69 08 60 00

Etablissement public à caractère industriel et commercial | RCS Paris B 775 685 019 24 NOVEMBRE 2014

| PAGE 24

CEA | 10 AVRIL 2012


Recommended