Page 1 of 5

Session Manager Language Thread (New Translators Welcome)

Posted: 03 Aug 2015 02:15
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.

Re: Session Manager — Translators needed please

Posted: 03 Aug 2015 02:50
by SkyFrontier
I'm on it - just need to finish some urgent stuff (~2 or 3 weeks).
Congrats!

Re: Session Manager — Translators needed please

Posted: 03 Aug 2015 03:21
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

Re: Session Manager — Translators needed please

Posted: 03 Aug 2015 03:33
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).

Re: Session Manager — Translators needed please

Posted: 03 Aug 2015 08:45
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 .

Re: Session Manager — Translators needed please

Posted: 03 Aug 2015 11:23
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 289 times

Re: Session Manager — Translators needed please

Posted: 09 Aug 2015 21:59
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:

Re: Session Manager — Translators needed please

Posted: 16 Aug 2015 16:44
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?

Re: Session Manager — Translators needed please

Posted: 16 Aug 2015 17:42
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

Re: Session Manager — Translators needed please

Posted: 17 Aug 2015 07:41
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:

Re: Session Manager — Translators needed please

Posted: 17 Aug 2015 18:11
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...?

Re: Session Manager — Translators needed please

Posted: 17 Aug 2015 19:18
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.

Re: Session Manager — Translators needed please

Posted: 17 Aug 2015 19:45
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}

Re: Session Manager — Translators needed please

Posted: 18 Aug 2015 19:30
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:

Re: Session Manager — Translators needed please

Posted: 18 Aug 2015 19:51
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