Page 1 of 1

How to create a Swedish language pack?

Posted: Thu Jul 22, 2021 6:27 pm
by Kjellinux

After selecting Sweden and Swedish keyboard in Quick Setup on first boot, a window pops up informing me I need a Swedish language pack, but that none exists. Yet, some menu entries are in Swedish.

What is the source of those Swedish menue entries?

I know that at least Ubuntu and Linux Mint have Swedish user forums, and that even more distributions have Swedish language packs. I seem to recall having read somewhere that there might be additional resources available, but that these have to be downloaded and installed after initial installation and boot. Knowing that work tends to be well structured and often reused throughout the world of Linux, I suspect that there might be resources that could be used as is, or after some kind of adaptation. Can someone direct me towards more information in this area?

If I was to create a language pack for Puppy Linux, how much work are we talking about?

I read that there is a utility called MoManager for this purpose. When I try to open it, I get a message saying "Sorry, you must have the devx SFS loaded. Aborting." How do I fix this?


Re: Creating Swedish Language Pack

Posted: Thu Jul 22, 2021 7:47 pm
by williams2

The entries in the JWM (Joe's Window Manager) menu are in the .desktop files in /usr/share/applications/

For example: geany /usr/share/applications/lxrandr.desktop

Name[sv]=Visningsinställningar
Comment[sv]=Ändra skärmupplösning och gör inställningar för externa skärmar

.mo files are in /usr/share/locale/
Installing an application may copy /mo files to /usr/share/locale/

For example, I get this when I type in a terminal (console):

Code: Select all

find /usr/share/locale/sv*
/usr/share/locale/sv
/usr/share/locale/sv/LC_MESSAGES
/usr/share/locale/sv/LC_MESSAGES/geeqie.mo

The devx .sfs file is a package that includes the gcc complier and other useful utilities. You can download the sfs file using the QuickPet icon, or the sfs file usually is on the same web page as the Puppy iso file. The sfs file can be loaded using the sfs load program in the JWM menu.
Or you can type sfs_load in a terminal.


Re: Creating Swedish Language Pack

Posted: Thu Jul 22, 2021 10:17 pm
by HerrBert

No quickpet in FocalPup32...?
Get devx from http://distro.ibiblio.org/puppylinux/pu ... -20.12.htm
Click the according button to download devx.
After downloading click on the downloaded file and choose to install the .sfs file. Read the dialogs!
I'd suggest to uninstall the .sfs file before shutdown / saving session. To do so click the .sfs file again and choose to uninstall.

Creating a langpack from scratch is very ambitious.

Do not spend too much time trying to translate things in momanager. Many things fail to translate using momanager.
Some translations for installed packages may be available via Puppy Package Manager when enabling package type NLS.

To dig deeper into internationalization get familiar with xgettext, msgunfmt, msginit, msgmerge, msgfmt...

Good luck


Re: Creating Swedish Language Pack

Posted: Fri Jul 23, 2021 2:18 am
by Kjellinux

I'm impressed by how much Puppy Linux can fit into a very small .iso file, and by how little RAM is needed. I'm equally NOT impressed with the lack of stability and consistency. With every version of Puppy I test, I find new problems that need solving. Whenever I try to solve a problem, I find myself faced with at least two new ones that need to be solved.

So, Slacko Puppy 6.3.2 has an Sfs Manager that makes it very simple to download and install devx. But it will not work with the AnyDesk version that worked fine with FocalPup32.

FocalPup32, as far as I can see, does not have an Sfs Manager. Neither does it appear to have a quickpet. When I try to download the devx .sfs file, it stalls halfways. So, I download it to my desktop, transfer it to a USB, move the USB to the test rig where I run FocalPup32, and install it from the USB. All is well. Or NOT...

The SFS-Load insists that devx it is installed, but when i try to open MoManager, it tells me I need to install devx.

At the moment, the outlook of that Swedish language pack looks somewhat bleak...


Re: Creating Swedish Language Pack

Posted: Fri Jul 23, 2021 9:34 am
by peebee
Kjellinux wrote: Fri Jul 23, 2021 2:18 am

I'm equally NOT impressed with the lack of stability and consistency.

FocalPup32, as far as I can see, does not have an Sfs Manager. Neither does it appear to have a quickpet.

These are NOT Puppy standard items - i.e. they are not "in Woof-CE" - they are specific tools developed by individual developers for their Puppy version. Both need considerable effort on the part of the developer to keep them current. I DO NOT provide them in my builds.


Re: Creating Swedish Language Pack

Posted: Fri Jul 23, 2021 8:56 pm
by HerrBert

I'm impressed by how much Puppy Linux can fit into a very small .iso file, and by how little RAM is needed. I'm equally NOT impressed with the lack of stability and consistency. With every version of Puppy I test, I find new problems that need solving. Whenever I try to solve a problem, I find myself faced with at least two new ones that need to be solved.

Though this may go OT i have to admit that nearly every Puppy Linux i tried has it's issues. In most cases it's easy to fix by editing some lines of code in a script. Not a big deal if you are able to locate the problem. The problem with loaded devx not recognized by momanager i have reported in the FocalPup32 thread. It turns out to be a woofCE issue that hopefully soon will be fixed. An interim solution to get momanager working would be to link the devx relevant files.

Load devx .sfs and in a terminal run

Code: Select all

cd /usr/bin
for N in i686-linux-gnu-*;do X=${N/#i686-linux-gnu-}; ln -s $N ${X/%-10};done

This will enable your FocalPup32 to run momanager.


Re: Creating Swedish Language Pack

Posted: Fri Jul 23, 2021 11:08 pm
by Kjellinux

@HerrBert

HerrBert wrote: Fri Jul 23, 2021 8:56 pm

Though this may go OT i have to admit that nearly every Puppy Linux i tried has it's issues. In most cases it's easy to fix by editing some lines of code in a script. Not a big deal if you are able to locate the problem.

And there you have two MAJOR problems for regular users. They hav NO idea how to locate the problem, and they most certainly don't know how "editing some lines of code in a script" works.

HerrBert wrote: Fri Jul 23, 2021 8:56 pm

The problem with loaded devx not recognized by momanager i have reported in the FocalPup32 thread. It turns out to be a woofCE issue that hopefully soon will be fixed.

I saw that.

HerrBert wrote: Fri Jul 23, 2021 8:56 pm

An interim solution to get momanager working would be to link the devx relevant files.

Load devx .sfs and in a terminal run

Code: Select all

cd /usr/bin
for N in i686-linux-gnu-*;do X=${N/#i686-linux-gnu-}; ln -s $N ${X/%-10};done

This will enable your FocalPup32 to run momanager.

I should have realised... :P

Your interim solution worked though. AnyDesk still doesn't. I have yet to decide whether to proceed with the work of creating a Swedish language pack. The question I need to ask myself is how many hours of "hands on" an problem fixing will be required for every hour of effective work.

At least I have what might be the one and only copy of Puppy Linux where at least the first level menue entries are (mostly) in Swedish... :)


Re: Creating Swedish Language Pack

Posted: Sat Jul 24, 2021 4:35 am
by Kjellinux

I have now finished some translation and created a langpack pet. The instructions say I should mail it to bkauler@gmail.com, but I don't have an e-mail account on the machine where I'm running FocalPup32. How should I proceed?


Re: Creating Swedish Language Pack

Posted: Tue Jul 27, 2021 10:32 pm
by Kjellinux

I have now finished three categories in MoManager - Menu categories, Menu entries and SSS domains. The remaining three I don't know what to do with. Scripts and Binary executables come up with empty files, and XML files seem to contain a lot of code, but I cant't find anything to translate.

Since I don't have an e-mail account on the test rig, I don't know how to get the langpack pets to bkauler@gmail.com (= @BarryK ?), I include them here.

langpack_sv-20210724.pet
(105.94 KiB) Downloaded 57 times
langpack_sv-20210726.pet
(127.59 KiB) Downloaded 48 times

Re: How to create a Swedish language pack?

Posted: Sun Jul 03, 2022 1:42 am
by BarryK

@Kjellinux
I was searching the forum, to find where to post a report that I fixed a bug in momanager, and stumbled on your Swedish lang pack discussion thread.

Anyway, here is the fix for momanager:

https://bkhome.org/news/202207/fix-for- ... y-422.html

...the bug only affects pups that don't have 'grub4dos' installed.

The rest of this post, I have moved to the EasyOS section, more appropriate there:

https://forum.puppylinux.com/viewtopic.php?t=6265