CUPS Home html page in other languages? [SOLVED]

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

CUPS Home html page in other languages? [SOLVED]

#1 Post by Argolance »

Hello,
How could I get CUPS configuration home html page in French or any other language than English? I have a French cups.mo file in /usr/share/locale/... but this doesn't seem to have any effect on this page.

Thank you.
Cordialement.
Last edited by Argolance on Mon 13 May 2013, 21:14, edited 2 times in total.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#2 Post by L18L »

cups 1.4:

homepage in /usr/share/doc/cups/fr/index.html and images

others in
/usr/share/cups/templates/fr/

effectiv only in fr browser

langpacks for seamonkey releases here:
https://ftp.mozilla.org/pub/mozilla.org ... /langpack/

Cordialment :)

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#3 Post by esmourguit »

Bonjour à toutes et tous,

@ Argolance,
Here is a snapshot of cups 1.5.3 in Wolx 5.5 (french Wary version).
You can get the files in french langpack.

Cordialement ;)
Attachments
cups.png
(137.61 KiB) Downloaded 533 times
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#4 Post by Argolance »

Hello,
Thank you mates!
Something strange: the installed version is 1.5.3 and the html window shows 1.4.8 on Puppy Precise :shock:

Cordialement.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#5 Post by L18L »

Argolance wrote:Something strange: the installed version is 1.5.3 and the html window shows 1.4.8 on Puppy Precise
How do you determine the version of cups?

Here is how I do it in my pinstall_hacks.sh

Code: Select all

#120816 cups doc
cupsVERSION=`grep CUPS /usr/share/cups/templates/header.tmpl | cut -d'<' -f2 | cut -d ' ' -f4` 
cupsVERSION=`echo ${cupsVERSION}| cut -d'.' -f1,2`
cp -a /tmp/cups/${cupsVERSION}/doc /usr/share           2>/dev/null #1.3 1.4
cp -a /tmp/cups/${cupsVERSION}/doc-root /usr/share/cups 2>/dev/null #1.5
[ `cp -a /tmp/cups/${cupsVERSION}/templates/* /usr/share/cups/templates` ] || echo "cups templates"
... and here is how it looks in Puppy Precise 5.5.93
Attachments
cups.png
(25.62 KiB) Downloaded 409 times

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#6 Post by Argolance »

Hello,
How do you determine the version of cups?
When trying to install cups using the PPM, Puppy says that cups 1.5.3 is already installed!

I found localized cups index.html.in files in the sources. What have I to do to get home page in French, for example?

Cordialement.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#7 Post by L18L »

Argolance wrote:When trying to install cups using the PPM, Puppy says that cups 1.5.3 is already installed!
Thank you, I could reproduce this error.

But if I search in "all repositories" or in "ubuntu-precise-main" there is a window...
which is telling what version is installed (1.4 in case of precise 5.5.93)
see picture
Argolance wrote: What have I to do to get home page in French, for example?
First of all: langpack french for seamonkey installed and activated.
Attachments
cups_installee.png
(33.19 KiB) Downloaded 993 times

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#8 Post by Argolance »

Hello,
First of all: langpack french for seamonkey installed and activated.
Does it mean that the French version of Seamonkey cannot display the index file properly, only the English version with the French pack for Seamonkey installed?

EDIT: This question because I am running Puppy Precise 5.4.3 with the French langpack installed and a French version of Seamonkey. If I replace the English index.html with the French one, I do not get the cups Home page in French but in English :?

Cordialement.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

CUPS configuration home html page in French

#9 Post by L18L »

Argolance wrote:Hello,
First of all: langpack french for seamonkey installed and activated.
Does it mean that the French version of Seamonkey cannot display the index file properly, only the English version with the French pack for Seamonkey installed?
No, does not mean this. Why have seamonkey french if langpack french for seamonkey is sufficient?
Argolance wrote:EDIT: If I replace the English index.html with the French one, I do not get the cups Home page in French but in English :?
I do not replace anything but
add German home page for CUPS in /usr/share/doc/cups/de/index.html
( my pinstall_hack.sh does it 8) )
Cordialement.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#10 Post by Argolance »

Hello L18L,
Thank you for replying.
do not replace anything but
add German home page for CUPS in /usr/share/doc/cups/de/index.html
I tried this (adding French home page for CUPS in /usr/share/doc/cups/fr/index.html) but:
  • 1) as the 1.4.8 sources files don't have the French index.html :shock:
    2) and as I thought the real installed version was 1.5.3 8)
... I used the 1.5.3 French index.html file. This is probably why this didn't work. :?
So, now, the only solution for me to get cups in French is to get/install the 1.5.3 cups version. Where could I get it please?

Cordialement.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#11 Post by L18L »

Argolance wrote:So, now, the only solution for me to get cups in French is to get/install the 1.5.3 cups version. Where could I get it please?
cups 1.4 has no French I see now :cry:

download CUPS sources from http://www.cups.org/software.php
home page is in doc/fr
templates in templates/fr

binary cups_1.5.3 in ppm ubuntu-precise-main

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#12 Post by Argolance »

Hello,
templates in templates/fr
This has to be copied too? I forgot to do this...
binary cups_1.5.3 in ppm ubuntu-precise-main
Yes, I tried this too but without success. I could not get the cups home page working anymore: "Connection refused"! Perhaps because I installed all the other 1.5.3 packages refering to cups (bsd, client, common and so on...)?
So what has to be installed, there are so many things listed?
Thanks.

Cordialement.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#13 Post by L18L »

Argolance wrote:Hello,
templates in templates/fr
This has to be copied too? I forgot to do this...
binary cups_1.5.3 in ppm ubuntu-precise-main
Yes, I tried this too but without success. I could not get the cups home page working anymore: "Connection refused"! Perhaps because I installed all the other 1.5.3 packages refering to cups (bsd, client, common and so on...)?
So what has to be installed, there are so many things listed?
Thanks.

Cordialement.
Sorry, I have never installed cups before.

First I would do it in a fresh (pfix=ram) puppy
Then deinstall cups
Then install cups_1.5
Then install seamonkey lanack
Then copy the needed fr files/directories from cups sources

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#14 Post by Argolance »

The problem is that I intend to integrate cups 1.5.3 to ToOpPy, which is an iso file! :cry:

Cordialement.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#15 Post by rcrsn51 »

Am I missing something here? Wary 5.5 has CUPS 1.4.8. So why does Wolx 5.5 have CUPS 1.5.3 components?

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#16 Post by Argolance »

Hello,
Am I missing something here? Wary 5.5 has CUPS 1.4.8. So why does Wolx 5.5 have CUPS 1.5.3 components?
I was exactly wondering the same thing... I found this thread though, where it is about CUPS 1.5.3 http://208.109.22.214/puppy/viewtopic.p ... 2110530d65 but couldn't go further to install/integrate it on/to Puppy/ToOpPy Precise...

Cordialement.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#17 Post by L18L »

rcrsn51 wrote:Am I missing something here? Wary 5.5 has CUPS 1.4.8. So why does Wolx 5.5 have CUPS 1.5.3 components?
I cannot speak for wolx
but I do know now
that CUPS 1.4.8 has no French index.html and templates.
1.5.3 has French.

[edit] wrote this before I have seen Argolance's last post
http://208.109.22.214/puppy/viewtopic.p ... 6&start=70 is about
cups matters if 1.4 or 1.5 or 1.6 (last digit useless for localization)

po files are used for translators only. there is no mo file.
Last edited by L18L on Mon 13 May 2013, 17:22, edited 1 time in total.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#18 Post by Argolance »

Hello,
Not sure: I think esmourguit, seeing that the French index file didn't exist for the 1.4.8 version, used the one of the 1.5.3 version but didn't change "CUPS 1.5.3" and "What's new in CUPS 1.5" inside the index html file.

Cordialement.
Last edited by Argolance on Tue 14 May 2013, 08:24, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#19 Post by rcrsn51 »

Maybe there is a safer way to do this.

Go to http://www.cups.org/software.php and get the source code for CUPS 1.5.

Inside, there are doc and template folders that have the fr translations.

Perhaps those files can be dropped directly into CUPS 1.4.8 without breaking anything.

[Edit] I read L18L's link above. I believe that's what he is doing.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#20 Post by L18L »

rcrsn51 wrote:Perhaps those files can be dropped directly into CUPS 1.4.8 without breaking anything.
[Edit] I read L18L's link above. I believe that's what he is doing.
No I was not doing this before
but now I did it: works but of course the text is for 1.5 not for 1.4

Post Reply