164
Views
8
Comments
Solved
Export Multilingual files from many modules
Application Type
Reactive, Service
Service Studio Version
11.11.14 (Build 47936)
Platform Version
11.13.0 (Build 31107)

We are in the process of migrating from the Multilingual Component to OutSystems Multilingual feature. We have many Modules that have translations (over 20!) in both Reactive and Service modules.

 After we update all the modules to use the new Multilingual files, what would be a good way to get an overview of all missing translations for many modules? Is there any way to export all  (or a selection of) Multilingual resource files in an environment?


2021-04-09 11-42-43
assif_tiger
 
MVP
Solution

Hi Emma,

  • Create a solution on the service center & add all the respective modules which have translations i.e MultilingualTranslation resource to this newly created solution.
  • Now Download the solution from the service center [ it will download the .osp file]
  • Extract the .osp file downloaded to get the OML files
  • On command prompt run bellow  [Make sure the CMD path is pointing to the zip extract-folder ]
    • Create Translations folder in the extracted folder
    • for %f in (*.oml) do "C:\Program Files\OutSystems\Development Environment 11\Service Studio\ServiceStudio.exe" -export %f Translations resX
  • This will give you an export of all Language [ Default & Add-on Langugae] Resource files in the Translation Folder.

 Hope it helps,
Assif

UserImage.jpg
Emma Thurlow

Hi Assif, thanks for that command!

I used xls for my use case instead of resX.

2021-04-09 11-42-43
assif_tiger
 
MVP
2021-03-24 17-29-38
Frederico Sousa
Champion

Is there a way to import with a command line command as well?

2018-03-07 11-42-27
Mark Baijens

Is this still supported? I don't seems to get any result after running the command and the command is not listed on: https://success.outsystems.com/documentation/11/reference/service_studio_command_line/

I don't get any errors either, I just see the command line looping over all the OML files without any result.

2021-03-24 17-29-38
Frederico Sousa
Champion


Hey Mark, no idea if it's still supported or not, but I still use it.Maybe you didn't pre-create the folder for the translations to go to, i wrote kind of a tutorial on how to do this in my company and I'll copy paste whatever is not containing internal info here."Open windows command line (as long as you have Service Studio installed in your PC) and navigate to your folder (example "cd Downloads\TranslationsTest"), create a folder named Translations inside it and then and use the command "for %f in (*.oml) do "C:\Program Files\OutSystems\Development Environment 11\Service Studio\ServiceStudio.exe" -export %f Translations xlsx" to export every translation file in each module to the folder that you created named Translations. Adapt that path of Service Studio to your instalation folder.This code will basically run the command for each oml in the folder that you're in. After you press return this will take a while so just hold until you have the files in the folder. "


After this you should have all your translation excel files inside the folder.

2018-03-07 11-42-27
Mark Baijens

Thank you for your reply. It does seem to work for xlsx, but unfortunately not for resX as in the original post.

UserImage.jpg
Hanno Coetzee

For reference: resX is no longer supported in the cross-platform version of Service Studio as per the documentation 

  • To .resX (.NET resource format). Exports all translatable text to the .resX files (not available in the cross-platform Service Studio).
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.