Session Manager Language Thread (New Translators Welcome)

Where developers, translators, and users meet...
FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Session Manager Language Thread (New Translators Welcome)

Post by FluxTorpedoe »

 
@all translators — Updated 2022-09-25

   Hi everyone!

:arrow:   Session Manager  needs your help to reach out to more people in their native language!

• DOWNLOADS:
— Latest English reference file v7.00: Download here

———————————————————————————

It is now supporting language files, fully compliant with XYplorer default language file and Interface Translation Tool.
=> It should be relatively easy to translate with ITT since there aren't many words not already present in XY.

• CONCEPT:
— Session Manager language files must be located in the same folder as SM main script, and must have the same filename, but with a 2 letters extension, e.g. "SessionManager.cz".
— SM uses the first language file it finds. In case of missing file (or missing entries) it falls back to its internal english language.
— A single language file contains all the text entries (without redundancy), either in full sentences, or in syntagmas of bigger sentences.
— The format is the same as XY language files, i.e. "id#=00|English Text|--|Translated Text".
:arrow: It can be translated manually directly in the file itself, or
:arrow: It can be translated through XY Interface Translation Tool (much faster, and with the benefit of leveraging already translated entries).


IMPORTANT:
— For languages with space needed before ":" use only non-breaking space " " –else menu breaks before colon.
— Do not use curly brackets "{}", not compatible with ITT


• POSTING NOTES:
— I've decided it's better and safer to keep XY and SM language files separately (even if they blend well for translation purposes), but
— To keep "publicity" and updates posting easy —and credit where it's due!— I think it would be better to leave you, the translators, post in your existing ML thread your SM language file (zipped inside a SessionManager_##.zip). I would then link to the file in your post, along with your name, in Session Manager main post.


• QUICK PROCEDURE to translate via ITT: (step-by-step below)
— Just append "SessionManager.en" at the end of your local language file, edit "Translators" entry in header of "SessionManager.xys" for real-time checking, and translate in XY's ITT as usual.


———————————————————————————


Of course, don't hesitate if you have any comment or suggestion…

Thanks in advance for your cooperation! :biggrin:
Flux


———————————————————————————


• STEP-BY-STEP PROCEDURE
1. Append the content of the unzipped reference file "SessionManager.en" at the end of a copy of your translated XY language file (e.g. "XYplorer\Data\Czech+SM.lng").
2. Select this local language file in XYplorer and open the "Interface Translation Tool".
3. Session Manager entries will appear at the end as "Not Yet Translated".
4. In header of "SessionManager.xys" script file, under "TRANSLATORS:", remove the "//" comment mark (and edit entry) to use this file in SM and check as you translate.

5. When translation is finished, replace the content of the reference file "SessionManager.en" (already in UTF-16LE) with your freshly translated SM part from the end of your XY language file.
6. Rename the extension of the reference file with the 2 letters identifying your language (e.g. "cz"), and copy this file in your script folder next to SM main script.
7. In header of "SessionManager.xys" script file, reinsert the "//" comment mark before the link to the main language file, so SM will use its new language file instead.
Last edited by FluxTorpedoe on 25 Sep 2022 18:08, edited 19 times in total.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Session Manager — Translators needed please

Post by SkyFrontier »

I'm on it - just need to finish some urgent stuff (~2 or 3 weeks).
Congrats!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager — Translators needed please

Post by FluxTorpedoe »

Cool, that's great news!!! :beer:

Well, of course as Murphy would have it, when I decided on using a 2 letters extension, I briefly considered the case of "ptbr" (really!), before I set my mind to something else… :blackstorm: :lol:
Hehe, we'll figure it out (don't know if "pb" exists)…

Thank you for your support! 8)
Flux

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Session Manager — Translators needed please

Post by SkyFrontier »

'pb' is an option, but the usual are 'por' (continental portuguese) or 'pob' (brazilian portuguese).
If I had the option, I'd prefer 'ptbr' - which is widely known ('pob' is not 'popular', so to speak).
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Regmos
Posts: 268
Joined: 22 Dec 2012 07:27
Location: Copenhagen

Re: Session Manager — Translators needed please

Post by Regmos »

Hi Flux
@regmos
Thanks for the initiative and the hard work! And you did it without even having SM v4 on hand!
No biggie, it's not my first translation :biggrin:

I got your PM and like the idea of gathering the translations i one place, so you will always find the latest SM_da HERE

I've spent the morning checking my translation, and it seems OK. I made a few minor corrections, and uploaded to the MLS thread. There will probably be more changes along the way (there always is :D ), but I'll upload a new file, if I make any changes.

BTW: Danish translates into Dansk, not Danske .
Kind regards
Regmos

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager — Translators needed please

Post by FluxTorpedoe »

Thank you! :)

I updated Session Manager's post with your link —and the "Dansk" correction :oops: .

Have a nice day, 8)
Flux

English language reference file v4.a1:
SessionManager_en.zip
(5.46 KiB) Downloaded 290 times
Last edited by FluxTorpedoe on 03 Sep 2019 16:09, edited 2 times in total.

Flora_RMC
Posts: 279
Joined: 28 Dec 2012 09:50

Re: Session Manager — Translators needed please

Post by Flora_RMC »

Hi FluxTorpedoe :D
I just finished the Italian translation (Italiano), and I was wondering how to share the file. Since I don't have the possibility to edit the first post in the Italian thread (it's not of my doing), I just created a new post with translation attached, and I was thinking of updating the same post in the future, so you can link at it and don't have to bother searching every time a different post with the updated files.
It's here: http://www.xyplorer.com/xyfc/viewtopic. ... 52#p127315
Hope this is OK... if not, let me know what works best for you :wink:

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Session Manager — Translators needed please

Post by SkyFrontier »

SkyFrontier wrote:'pb' is an option, but the usual are 'por' (continental portuguese) or 'pob' (brazilian portuguese).
If I had the option, I'd prefer 'ptbr' - which is widely known ('pob' is not 'popular', so to speak).
Any special care concerning this, Flux?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Session Manager — Translators needed please

Post by SkyFrontier »

ITT crashed on me.
Falling back to the hard way.

Code: Select all

Assinatura do problema:
  Nome do Evento de Problema:	APPCRASH
  Nome do Aplicativo:	XYplorer.exe
  Versão do Aplicativo:	15.50.0.202
  Carimbo de Data/Hora do Aplicativo:	55cb7937
  Nome do Módulo de Falhas:	KERNELBASE.dll
  Versão do Módulo de Falhas:	6.3.9600.16656
  Carimbo de Data/Hora do Módulo de Falhas:	531812f4
  Código de Exceção:	c000041d
  Deslocamento de Exceção:	00012c1a
  Versão do sistema operacional:	6.3.9600.2.0.0.768.100
  Identificação da Localidade:	1046
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Flora_RMC
Posts: 279
Joined: 28 Dec 2012 09:50

Re: Session Manager — Translators needed please

Post by Flora_RMC »

SkyFrontier wrote:ITT crashed on me.
Falling back to the hard way.
Yep, editing the sm.0006=00|{Layout Session}|--|{Layout Session} entry (or just clicking on it), the Translation Tool crashes, and XY with it. I don't know if it's the presence of the braces '{ }' or something else... In any case I solved the problem by directly translating that entry in the text file.
All the others are no problem for the ITT. :wink:

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Session Manager — Translators needed please

Post by SkyFrontier »

Flora_RMC wrote:
SkyFrontier wrote:ITT crashed on me.
Falling back to the hard way.
Yep, editing the sm.0006=00|{Layout Session}|--|{Layout Session} entry (or just clicking on it), the Translation Tool crashes, and XY with it. I don't know if it's the presence of the braces '{ }' or something else... In any case I solved the problem by directly translating that entry in the text file.
All the others are no problem for the ITT. :wink:
...Don...?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Session Manager — Translators needed please

Post by admin »

Sorry, no time to read all the stuff above. If you can make me a simple load+crash file, then I can look into it.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Session Manager — Translators needed please

Post by bdeshi »

Code: Select all

sm.0006=00|{Layout Session}|--|{Layout Session}
{...} regions are templates filled with dynamic text content at runtime. These are not / can't be displayed in the ITT in the original string. So when the original string has nothing but a {...}, there' nothing to display there, which is not expected behavior => crash.

Even simply a space prefix should avoid crashes.

Code: Select all

sm.0006=00| {Layout Session}|--| {Layout Session}
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager — Translators needed please

Post by FluxTorpedoe »

@Flora_RMC
Flora_RMC wrote:Hi FluxTorpedoe :D
I just finished the Italian translation (Italiano), and I was wondering how to share the file. […]
Hope this is OK... if not, let me know what works best for you :wink:
Grazie Mille ! :appl:
No problem for the link; I just updated Session Manager's page with it.
Please just let me know if/when you update it so that I can mention it on SM's page —we wouldn't want to miss it! :D

---------------------------

@SkyFrontier
SkyFrontier wrote:
SkyFrontier wrote:'pb' is an option, but the usual are 'por' (continental portuguese) or 'pob' (brazilian portuguese).
If I had the option, I'd prefer 'ptbr' - which is widely known ('pob' is not 'popular', so to speak).
Any special care concerning this, Flux?
(Just back online, sorry for the delay.) Well, I'd prefer 'ptbr' too, it feels more proper…
But I've kept SM's language detection very basic (automatically using the first "2 letters extension" file found), because it happens on SM startup. Which means I'd have to add more routines to support "ptbr"…
So if you're not too put off by "pb", well, that would be kind of ideal! ;)
Anyway, it wouldn't be seen anywhere but on the extension of the language file… :whistle:

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager — Translators needed please

Post by FluxTorpedoe »

SammaySarkar wrote:

Code: Select all

sm.0006=00|{Layout Session}|--|{Layout Session}
{...} regions are templates filled with dynamic text content at runtime. These are not / can't be displayed in the ITT in the original string. So when the original string has nothing but a {...}, there' nothing to display there, which is not expected behavior => crash.
Thanks Sammay for the debugging! :)

@all
To avoid further problems, I updated the english language file with "[]" instead of "{}" in this entry (only used as a visual notifier in the "Delete sessions" window).
Updated language file available at the end of the Session Manager [v4.a2 ML(3)] post.

English language reference file v4.a2:
SessionManager_en.zip
(5.46 KiB) Downloaded 277 times
Last edited by FluxTorpedoe on 03 Sep 2019 15:53, edited 2 times in total.

Post Reply