Re: [Fink-devel] Translating man page?

2004-02-09 Thread Michèle Garoche
Le 9 févr. 2004, à 10:43, Bertrand Lupart a écrit :

[FYI: http://www.macplus.org/magplus/article.php?id_article=5557
Thanks for the link.

It is not in the 10.2-gcc3.3 unstable tree, so I'll guess it does not
work on 10.3 too (problem with libc and glibc as far as I've read in
catopen).
Did you try it? These problems shouldn't be hard to fix.
Not skilled enough to do it.

Morevover it conflicts with manconf I use.
Reading the manconf description, you could remove it :)
http://fink.sourceforge.net/pdb/package.php/manconf
I can remove it on my system, but not on other's.

8888
# Set your man languages here
MANLANGDIRS=. fr es
# Install the man pages
install_man:
for d in ($MANLANGDIRS); do
# Code for installing the man pages for each language
done
8888
Finally, thanks to gnomefr chanel, I applied the solution used in 
Midnight Commander.

Michèle
http://micmacfr.homeunix.org


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Translating man page?

2004-02-04 Thread Bertrand Lupart
 Just install a more recent man (fink's one for example) and it will
 display localised man pages, following your environment settings.
 
 Worked for me with fink's man 1.5k.

 I've found no fink's man, sorry, just manconf which is for Jaguar 
 update and manedit, a graphical editor.

Saw that.

According to http://fink.sourceforge.net/pdb/package.php/man, the man
package is on 0.4.1 and 10.1 only.
But i got this on 10.2/unstable on my machine.

Dunno why the man package seems to have been discontinued. But if 10.3's
man is unable to deal with localized man page, it would be good to
reintegrate it :)

You could try to pick up the man info file from 10.2/unstable and put it
in your local repository. If it works, you could submit it, the hard
part may already be done :)
I can't do that myself since i'm stuck with 10.2 for now.

 I cannot 
 demand the user to install a Fink's man package I cannot even find for 
 that purpose.

Since the problem is beyond your package, it may be added in the FAQ for
example.

 Moreover it should work also on other systems (RPM and 
 Linux at the moment, but BSD is on its way too).

It's totally independant from the packaging system and the OS. It will
work until you have a recent man that handle it.

 I know theoretically how to do it, but I lack dramatically knowledge on 
 languages used in Makefike.
[snip]

All that is pretty application-specific.

 It works but it's very inelegant, and I'm not sure how to parameterize 
 it with a MANLANGDIRS = . fr es array for example. Something along 
 this:
 
 for d in $(MANLANGDIRS);
 do mandir=$(mandir)/$(MANLANGDIRS)/man1
 

8888
#!/bin/sh

MANLANGDIRS=. fr es

for d in ($MANLANGDIRS); do
  echo $d;
done
8888

That should do the trick.

-- 
Bertrand
Pike Language - http://pike.ida.liu.se/
Caudium WebServer - http://caudium.net/
CAMAS WebMail - http://caudium.net/camas/


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Translating man page?

2004-02-02 Thread Bertrand Lupart
 He shouldn't need to. From the man man page:
 ...
 More, its man page seems to require the charset in the path:
 ...in the order of precedence:
 
 lang_country.charset
 lang.charset
 en.charset
 Have a look at fink's man or 10.3's, they should handle this better.

 Same man page as on 10.2.8, rather old (1991). What I understood (I may 
 be wrong) from Linux man pages (sorry for the reference, but they seem 
 to be more advanced in localization), the scheme you mentioned is one 
 of the recommended way to name man pages that ensured correct 
 association of lang/country/charset in the event of country with more 
 than one language and more than one charset per language. That's not 
 the scheme used on Fink, see the dpkg-dev French man pages, it's on the 
 /sw/share/man/fr/man1, it's based on LANG. I don't know how it 
 determines the correct charset. Nevertheless I tend to follow the Fink 
 way of doing it.

There is no fink way of doing it nor a Linux way of doing it,
just a man way of handling locales.

The sybpath for localized man pages are (like mentioned in recent linux
man man page):

8888
language[_territory[.character-set[,version]]]
8888

Since territory, character-set and version are optional, the path used
by fink and linux are the same.

 Then even if the LC-xxx and LANG are set up, the loaded man pages are 
 the rooted ones, i.e. the english ones on /sw/share/man/ (default 
 proposed MANPATH)

That's because apple's man is too old or buggy and don't support that,
even if its man page mention it.

Just install a more recent man (fink's one for example) and it will
display localised man pages, following your environment settings.

Worked for me with fink's man 1.5k.

 So you have to prepend /sw/share/man/fr/ to the man path, 
 to get the French man pages. This way you'll have the French man pages, 
 if any, then the English ones.

Sure, it will work. But that's a hack :)

The way to go is to have a recent man that behaves correctly.

-- 
Bertrand
Pike Language - http://pike.ida.liu.se/
Caudium WebServer - http://caudium.net/
CAMAS WebMail - http://caudium.net/camas/


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Translating man page?

2004-01-31 Thread Bertrand Lupart
 This package should install the translated man pages into
 %p/share/man/{lang}/man[1-8]
 Oh; so simple. Sorry I'm always looking for something not so obvious.
 
 Then I just need to put a notice in the info file for the user so that 
 he prepends the path to his locale man pages to MANPATH.

He shouldn't need to. From the man man page: 

8888
By default, man searches for a localized manpage in a set of
locale subdirectories of each manpath(1) component.

Locale name is taken from the first of three environment
variables with a nonempty value: LC_ALL, LC_CTYPE, or LANG,
in the specified order.
8888

Your user should only need to set its environment variables to the correct
locales he uses for getting localized man pages.

That's the theory, but it seems it doen't work on 10.2.

A quick test and ktrace shows up 10.2.8's man don't give a fuck about that. 
More, its man page seems to require the charset in the path:

8888
Otherwise, man will search in the following subdirectories,
in the order of precedence:

lang_country.charset
lang.charset
en.charset
8888

Have a look at fink's man or 10.3's, they should handle this better.

-- 
Bertrand
Pike Language - http://pike.ida.liu.se/
Caudium WebServer - http://caudium.net/
CAMAS WebMail - http://caudium.net/camas/


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Translating man page?

2004-01-30 Thread Bertrand Lupart
 Is there a way to install translated man pages?
 
 I've seen this is done for dpkg-deb. Is there a way for a package (via 
 Fink) to install say es,fr,... man pages?

This package should install the translated man pages into
%p/share/man/{lang}/man[1-8]

-- 
Bertrand
Pike Language - http://pike.ida.liu.se/
Caudium WebServer - http://caudium.net/
CAMAS WebMail - http://caudium.net/camas/


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Translating man page?

2004-01-28 Thread Michèle Garoche
Is there a way to install translated man pages?

I've seen this is done for dpkg-deb. Is there a way for a package (via 
Fink) to install say es,fr,... man pages?

Michèle
http://micmacfr.homeunix.org
---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel