Can you help translate SleepyHead into another language?

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Can you help translate SleepyHead into another language?

Post by jedimark » Mon Sep 09, 2013 10:33 pm

Bonjour,

I'm starting to get SleepyHead ready so it can be translated for non-English speaking users.. only after having realized how small a minority English only speakers like me are! Sorry for taking so long to work that out!

Quite a few people have asked me before about translating, and I was too foggy a mess to work it out. It turns out it was way easier than I thought. Thanks to Bram for showing me the way.

If you have got the time, and are reasonably fluent with the medical terms used in SleepyHead in both English and your native language, and want to help out with translating, please let me know. If you've asked about it already, please remind me.

The tool used for translation work is a free app called QtLinguist, and it's fairly straightforward to use. No programming involved, but you'll still need to know how to find your way around your computer. You will need the SleepyHead source code to get at the translation templates for your language (which I first need to create for each new supported language), and see comments and which might help figure out context. (a GIT client to download SleepyHead's source code from SourceForge is also needed.)

QtLinguist can be downloaded from here http://qt-apps.org/content/show.php/Qt+ ... tent=89360 although I'm not sure that's the latest version.

If you've helped translate apps before I'd very much like to hear from you, because I'm still very new to this whole process.

I'm very much looking forward to seeing SleepyHead become multi-lingual!

Regards

JediMark

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
Lazer1234
Posts: 301
Joined: Sat Aug 17, 2013 5:08 am
Location: Sweden

Re: Can you help translate SleepyHead into another language?

Post by Lazer1234 » Tue Sep 10, 2013 12:35 am

Det skulle vara en ära att få hjälpa till med Svenska översättningen. = It would be an honor to help with the Swedish translation.

_________________
Mask: TAP PAP Nasal Pillow CPAP Mask with Improved Stability Mouthpiece
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: APAP 7,8 - 20 EPR 3 No Ramp ResScan 5.1 SleepyHead 0.9.8.1
Everything I write I translate through Google Translate.
Hope you have patience with that, sometimes it can get a little crazy.
/Lazer1234

User avatar
avi123
Posts: 4509
Joined: Tue Dec 21, 2010 5:39 pm
Location: NC

Re: Can you help translate SleepyHead into another language?

Post by avi123 » Tue Sep 10, 2013 12:42 am

I doubt it that it would be easy to translate into Hebrew and Arabic which are written from right to left.

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments:  S9 Autoset machine; Ruby chinstrap under the mask straps; ResScan 5.6

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: Can you help translate SleepyHead into another language?

Post by jedimark » Tue Sep 10, 2013 1:23 am

avi123 wrote:I doubt it that it would be easy to translate into Hebrew and Arabic which are written from right to left.
Thanks for the reminder...

Layout direction is switchable in Qt, however I'm sure there will be plenty of headaches with these kind of languages.

My graphing code is certainly gonna need some tweaking for those cases, but that can be done in the text rendering functions.

Being multi-linguistically challenged, I'm a little worried about dealing with different numbering systems.. cross that bridge when I come to it I guess :/

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: Can you help translate SleepyHead into another language?

Post by jedimark » Tue Sep 10, 2013 1:27 am

Lazer1234 wrote:Det skulle vara en ära att få hjälpa till med Svenska översättningen. = It would be an honor to help with the Swedish translation.
Sweeeeet!

I'll make sure there is a template setup for Swedish...

I'll see if I can de-procrastinate myself enough to write up some getting started docs

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

JDS74
Posts: 3397
Joined: Sun Jan 23, 2011 2:57 pm
Location: South Carolina

Re: Can you help translate SleepyHead into another language?

Post by JDS74 » Tue Sep 10, 2013 6:02 am

I'm not a native Germa speaker but here is a first cut. I don't know if I have all the relevant terms and I won't be at all offended if the list is added to or corrected in order to get it right.

Good work Marm.
James

Term German
AHI AHI
Apnea Apnoe
Apnea Hypopnea Index Apnoe-Hypopnoe-Index
Average Durchschnitt
Change ändern
Changes Änderungen
Details Einzelheiten
EPAP EPAP
Events Ereignisse
Events/Hour Ereignisrate
Expiratory exspiratorischen
Flow fließen
Hour Stunde
Hours Stunden
Index
IPAP IPAP
Leak rate Leckrate
Leaks Lecks
Limit Begrenzung
Max. Max.
Maximum Maximum
Min. Min.
Minimum Minimum
Night Nacht
Oximetry Oximetry
Oxygen Sauerstoff
Partial pressure Partialdruck
Prescription Verschreibung
Pulse Rate Pulsfrequenz
Rate Rate
RERA Atmungsleistung Erregung
Serum Oxygen Partial Pressure Serum Sauerstoffpartialdruck
Settings Einstellungen
Sp02 ???
Summary Zusammenfassung
to zu
Total Summe

_________________
Mask: Oracle HC452 Oral CPAP Mask
Humidifier: DreamStation Heated Humidifier
Additional Comments: EverFlo Q 3.0 Liters O2 PR DSX900 ASV
Oracle 452 Lessons Learned Updated
DSX900 AutoSV with HC150 extra humidifier and Hibernite heated hose
Settings: EPAP Min-10.0, EPAP Max-17, PS Min-3, PS Max-10, Max Pressure-20, Rate-Auto, Biflex-1.
Sleepyhead and Encore Pro 2.21.

User avatar
A KLERK
Posts: 53
Joined: Wed Jan 23, 2013 12:42 pm
Location: Raamsdonksveer, The Netherlands
Contact:

Re: Can you help translate SleepyHead into another language?

Post by A KLERK » Tue Sep 10, 2013 9:51 am

For everyone who is interested: In the Netherlands we are well on our way to translate SleepyHead into Dutch. I will present the first results next week during our "UitleesMarkt" of the Apneuvereniging.
The program QT Linguïst is a great help and my friend Bram Prosman even sent a proposal to JediMark, which was acceptable. Not?

_________________
MachineMask
Additional Comments: Software: OSCAR of course!
Arie Klerk: Member of the Dutch Apnea Patients Association staff (https://www.apneuvereniging.nl) and proud to be Translations Team Coordinator for OSCAR on ApneaBoard.com
Looking for MORE translators!

JDS74
Posts: 3397
Joined: Sun Jan 23, 2011 2:57 pm
Location: South Carolina

Re: Can you help translate SleepyHead into another language?

Post by JDS74 » Tue Sep 10, 2013 10:00 am

Mark:

Did you also want the help files translated?
If so, where are they stored so I can begin work on the German translation?

James

_________________
Mask: Oracle HC452 Oral CPAP Mask
Humidifier: DreamStation Heated Humidifier
Additional Comments: EverFlo Q 3.0 Liters O2 PR DSX900 ASV
Oracle 452 Lessons Learned Updated
DSX900 AutoSV with HC150 extra humidifier and Hibernite heated hose
Settings: EPAP Min-10.0, EPAP Max-17, PS Min-3, PS Max-10, Max Pressure-20, Rate-Auto, Biflex-1.
Sleepyhead and Encore Pro 2.21.

User avatar
BlackSpinner
Posts: 9742
Joined: Sat Apr 25, 2009 5:44 pm
Location: Edmonton Alberta
Contact:

Re: Can you help translate SleepyHead into another language?

Post by BlackSpinner » Tue Sep 10, 2013 10:06 am

I am impressed.
I spent over 30 years beating software into multilingual states and it is not easy. What takes 6 characters in English can take 6 words in French (and each of the 3 human translators will come up with the 6 different words they consider most valid!) and NO you don't want to support a different version for each language! That was every non software supervisors first suggestion "to save money".

_________________
Machine: PR System One REMStar 60 Series Auto CPAP Machine
Additional Comments: Quatro mask for colds & flus S8 elite for back up
71. The lame can ride on horseback, the one-handed drive cattle. The deaf, fight and be useful. To be blind is better than to be burnt on the pyre. No one gets good from a corpse. The Havamal

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: Can you help translate SleepyHead into another language?

Post by jedimark » Tue Sep 10, 2013 10:11 am

A KLERK wrote:For everyone who is interested: In the Netherlands we are well on our way to translate SleepyHead into Dutch. I will present the first results next week during our "UitleesMarkt" of the Apneuvereniging.
The program QT Linguïst is a great help and my friend Bram Prosman even sent a proposal to JediMark, which was acceptable. Not?
Bram showed me it was easier than I originally thought.

I'm trying to reduce a lot of the string double-ups to lessen the workload.. I hope these changes don't mess your efforts up too much.
Running the "lupdate" command refreshes the templates from the source code.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: Can you help translate SleepyHead into another language?

Post by jedimark » Tue Sep 10, 2013 10:20 am

JDS74 wrote:Mark:

Did you also want the help files translated?
If so, where are they stored so I can begin work on the German translation?

James
Thanks for reminding me about that.. I've got to put some thought into how best to store that :/

Application string translations are relatively easy and handled by QtLinguist, but then there is stuff like the Users Guide in the Wiki...

Apart from few files in the docs directory in SleepyHead sourcecode, most of the rest of the docs is in the online wiki.

I'm guessing I just need add the language code after the filenames/URLs.. eg: index_de.html

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
A KLERK
Posts: 53
Joined: Wed Jan 23, 2013 12:42 pm
Location: Raamsdonksveer, The Netherlands
Contact:

Re: Can you help translate SleepyHead into another language?

Post by A KLERK » Tue Sep 10, 2013 10:31 am

jedimark wrote:
A KLERK wrote:I'm trying to reduce a lot of the string double-ups to lessen the workload.. I hope these changes don't mess your efforts up too much.
I'm retired, so very glad I have something usefull to do. And I get help from an official Dutch-English translator/interruptor.

_________________
MachineMask
Additional Comments: Software: OSCAR of course!
Arie Klerk: Member of the Dutch Apnea Patients Association staff (https://www.apneuvereniging.nl) and proud to be Translations Team Coordinator for OSCAR on ApneaBoard.com
Looking for MORE translators!

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: Can you help translate SleepyHead into another language?

Post by jedimark » Sun Sep 15, 2013 12:27 am

Things are moving along nicely.. getting a lot done this past couple of weeks in preparation for the next SleepyHead update.

SleepyHead's Translation loader is working now in the source code.

In the next build (or right now if you build from source ), you will be able to select languages from a drop down on first run, and change it later at will from the Help menu. Provided some translations are complete of course.

Languages are plugins, so it will be possible to add or update support for a language simply by dropping the file in the Translations folder. (The auto-updater will eventually handle all of that)

All I need now to make this work is the language templates to be worked on by willing translators using QtLinguist tool mentioned in the first post of this thread..
Once again, QtLinguist is freely available from http://qt-apps.org/content/show.php/Qt+ ... tent=89360

The best way to get the language templates is to download SleepyHead's source code with a GIT client, then you will find the templates are located in the "Translations" folder

You can alternatively download a snapshot of SleepyHead's source code here: http://sourceforge.net/p/sleepyhead/cod ... ster/tree/
But using GIT to download the source allows you to stay up to date much easier.

A free GIT client for windows can be found here.
http://git-scm.com/downloads
or
http://code.google.com/p/msysgit/downlo ... l:Featured

Linux users will find GIT in their distro's software repository.

Mac Users can either get GIT through MacPorts or in the Command Line tools component of Xcode. (XCode is free, however it is quite a large download, but having it is one of the components needed to build SleepyHead from source)

The GIT command to download SleepyHead source is:

Code: Select all

git clone git://git.code.sf.net/p/sleepyhead/code sleepyhead-code
Graphical interface users may only need to know this bit:

Code: Select all

git://git.code.sf.net/p/sleepyhead/code

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
Lazer1234
Posts: 301
Joined: Sat Aug 17, 2013 5:08 am
Location: Sweden

Re: Can you help translate SleepyHead into another language?

Post by Lazer1234 » Wed Oct 09, 2013 2:36 am

I have started with the translation into Swedish now. Is a little busy so it may take a while, a few days or a few weeks. I'm doing the best I can. It was a cinch to translate.

_________________
Mask: TAP PAP Nasal Pillow CPAP Mask with Improved Stability Mouthpiece
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: APAP 7,8 - 20 EPR 3 No Ramp ResScan 5.1 SleepyHead 0.9.8.1
Everything I write I translate through Google Translate.
Hope you have patience with that, sometimes it can get a little crazy.
/Lazer1234

User avatar
Lazer1234
Posts: 301
Joined: Sat Aug 17, 2013 5:08 am
Location: Sweden

Re: Can you help translate SleepyHead into another language?

Post by Lazer1234 » Wed Oct 09, 2013 6:22 am

Mark # Is it okay if I spread information about this program in Sweden? By publishing the link to the download page http://sourceforge.net/projects/sleepyhead/files/? There is so much need and so much ignorance in Sweden to decipher the data in cpap machines. I'm trying to educate Sweden in sleep quality

_________________
Mask: TAP PAP Nasal Pillow CPAP Mask with Improved Stability Mouthpiece
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: APAP 7,8 - 20 EPR 3 No Ramp ResScan 5.1 SleepyHead 0.9.8.1
Everything I write I translate through Google Translate.
Hope you have patience with that, sometimes it can get a little crazy.
/Lazer1234