How to create a Swedish language pack?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
Kjellinux
Posts: 151
Joined: Fri Jun 18, 2021 1:36 am
Has thanked: 1 time
Been thanked: 3 times

How to create a Swedish language pack?

Post 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?

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: Creating Swedish Language Pack

Post 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.

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

Re: Creating Swedish Language Pack

Post 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

Kjellinux
Posts: 151
Joined: Fri Jun 18, 2021 1:36 am
Has thanked: 1 time
Been thanked: 3 times

Re: Creating Swedish Language Pack

Post 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...

User avatar
peebee
Posts: 1637
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 714 times
Contact:

Re: Creating Swedish Language Pack

Post 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.

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

Re: Creating Swedish Language Pack

Post 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.

Kjellinux
Posts: 151
Joined: Fri Jun 18, 2021 1:36 am
Has thanked: 1 time
Been thanked: 3 times

Re: Creating Swedish Language Pack

Post 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... :)

Kjellinux
Posts: 151
Joined: Fri Jun 18, 2021 1:36 am
Has thanked: 1 time
Been thanked: 3 times

Re: Creating Swedish Language Pack

Post 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?

Kjellinux
Posts: 151
Joined: Fri Jun 18, 2021 1:36 am
Has thanked: 1 time
Been thanked: 3 times

Re: Creating Swedish Language Pack

Post 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 67 times
langpack_sv-20210726.pet
(127.59 KiB) Downloaded 61 times
User avatar
BarryK
Posts: 2704
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 739 times

Re: How to create a Swedish language pack?

Post 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

Post Reply

Return to “Beginners Help”