Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Sisusupport, Renate.Reinartz, Markus.Kreisel, Ilkka.Salmenius
New Topic Reply Printer Friendly
Export to json - Wish list for software localization tool - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Fri Jan 10th, 2020 08:04 am
PM Private Upload Quote Reply
snorre.olimstad
Member
 

Joined: Fri Jan 10th, 2020
Location:  
Posts: 1
Status: 
Offline
Hi,

Maestro Soft AS has about 1200 strings in four languages and we are now switching to Angular 8. It would be a hazzle to write all 4800 strings again, så how can we export all languages from Sisulizer to JSON (that can be used), that looks kind of like this:

{
"AllStrings": {
"MyPostings": "My postings",
"Archive": "Archive",
"NewPosting": "New posting",
"EditProfile": "Account - Edit profile",
"UserAdministration": "User administration",
"LogOff": "Log off",
"LogIn": "Log in"
}
}

We also need to have every language in a different .json-file, like "en.json" and "no.json".

Back To Top PM Private Upload Quote Reply

 Posted: Fri Jan 10th, 2020 08:57 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3322
Status: 
Offline
Hi,

Sisulizer can localize JSON files, but it is not a converter. So it can`t convert e.g. XML into JSON. The concept of Sisulizer is to use source files as a template or blue print and replace strings in it to create localized copies.

You need to create one source JSON with all original strings in it. Export all strings from Sisulizer into XML (or csv). Then write (or find) a little converter XML -> JSON. Should not be too hard to do.

Create a new Sisulizer project from the JSON you created.

Import all translations "by value" from your old project.

Check Project - Edit Source - <your source> in the new project to match your file output schema (<lang>.filename).

Sorry for not having a one click solution. But with above you should make the switch without loosing translations.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Fri Jan 10th, 2020 05:07 pm
PM Private Upload Quote Reply
jaska
Member
 

Joined: Thu Dec 7th, 2017
Location:  
Posts: 2
Status: 
Offline
It seems that you use some 3rd party Angular internationalization library such as ng-translate. Angular core has a built-in I18N support. It has many advantages over the 3rd party solutions

1) Minimal effect to templates. You just add i18n attribute instead of using complex syntax.

<p>This is a sample</p>

becomes to

<p i18n>This is a sample</p>

and NOT like

<p>{{ 'THIS_IS_SAMPLE' | translate:param }}</p>

2) The official Angular localization has the extract tool. You don't have to maintain manually the original resource file (.json in your case) but the extract tool scans you templates and source to create the resource file in XLIFF or XMB format.

The downside of Angular I18N is that it does not yet support strings in source code but that will change soon when Angular 9 will be released (in a few weeks). If you now have

str = 'This is a sample';

In Angular 9 you will write

str = $localize `This is a sample`;

Back To Top PM Private Upload Quote Reply

Current time is 05:23 am  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Wish list for software localization tool > Export to json



WowUltra modified by Sisulizer Copyright © 2007-18 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Impress - Privacy statement

Sisulizer software localization tool - Three simple steps to localize