unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to localise emacs to french ?
@ 2014-10-22 19:30 gelinp38
  2014-10-22 22:18 ` Pascal J. Bourguignon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gelinp38 @ 2014-10-22 19:30 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I found french-utf8.pl script to localise emacs menu items to french. But I fail to load it. To do so I add this lines into .emacs file :

;; --------------------------------------------
;; Tell emacs where is your personal elisp lib dir
(add-to-list 'load-path "~/.emacs.d/elisp")

;; load the packaged named xyz.
(load-library "french-utf8.pl")
;; --------------------------------------------

The result is a warning and menu always in french :

///////////////////////////////////////////////////
Warning (initialization): An error occurred while loading `/home/gelinp/.emacs':

File error: Cannot open load file, french-utf8

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.
///////////////////////////////////////////////////

Is .pl files sames as .el scripts ? Do I need to modify the .emacs file ?

Thank you for your help.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to localise emacs to french ?
  2014-10-22 19:30 How to localise emacs to french ? gelinp38
@ 2014-10-22 22:18 ` Pascal J. Bourguignon
  2014-10-23  7:58 ` gelinp38
  2014-10-23 14:14 ` sokobania.01
  2 siblings, 0 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2014-10-22 22:18 UTC (permalink / raw)
  To: help-gnu-emacs

gelinp38@gmail.com writes:

> Hi,
>
> I found french-utf8.pl script to localise emacs menu items to french. But I fail to load it. To do so I add this lines into .emacs file :
>
> ;; --------------------------------------------
> ;; Tell emacs where is your personal elisp lib dir
> (add-to-list 'load-path "~/.emacs.d/elisp")
>
> ;; load the packaged named xyz.
> (load-library "french-utf8.pl")
> ;; --------------------------------------------
>
> The result is a warning and menu always in french :
>
> ///////////////////////////////////////////////////
> Warning (initialization): An error occurred while loading `/home/gelinp/.emacs':
>
> File error: Cannot open load file, french-utf8
>
> To ensure normal operation, you should investigate and remove the
> cause of the error in your initialization file.  Start Emacs with
> the `--debug-init' option to view a complete error backtrace.
> ///////////////////////////////////////////////////
>
> Is .pl files sames as .el scripts ? Do I need to modify the .emacs file ?

'.pl' files are perl files.

You don't localize emacs from emacs lisp, because a lot of strings are
used and referenced from C code.

You have to do it from the source distribution of emacs, apparently, by
putting this french-utf8.pl file in some specific place in the sources
directory, and then compiling emacs will run this script and add the
French strings.  I don't know the details, but do read the comment in
french-utf8.pl and perhaps some further documentation in the place where
you found it.


-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to localise emacs to french ?
  2014-10-22 19:30 How to localise emacs to french ? gelinp38
  2014-10-22 22:18 ` Pascal J. Bourguignon
@ 2014-10-23  7:58 ` gelinp38
  2014-10-23 14:14 ` sokobania.01
  2 siblings, 0 replies; 4+ messages in thread
From: gelinp38 @ 2014-10-23  7:58 UTC (permalink / raw)
  To: help-gnu-emacs

Ok, thank you ! So I read into the "french-utf8.pl" file the information below :

# Create a modules subdirectory in your data directory, and put the
# file in there. It will be loaded automatically.

So I displayed the data-directory varaiable content : Its value is "/usr/share/emacs/23.4/etc/"? I created a "modules" directory into and put "french-utf8.pl" into. 

I restarded emacs : No result, menu interface is allways english... Do I need to call a command ? I don't think so. No warning else, all seems ok !

What can I do ? 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to localise emacs to french ?
  2014-10-22 19:30 How to localise emacs to french ? gelinp38
  2014-10-22 22:18 ` Pascal J. Bourguignon
  2014-10-23  7:58 ` gelinp38
@ 2014-10-23 14:14 ` sokobania.01
  2 siblings, 0 replies; 4+ messages in thread
From: sokobania.01 @ 2014-10-23 14:14 UTC (permalink / raw)
  To: help-gnu-emacs

Le mercredi 22 octobre 2014 21:30:46 UTC+2, geli...@gmail.com a écrit :
> Hi,
> 
> I found french-utf8.pl script to localise emacs menu items to french.

Hmmm I doubt this file will localize any emacs menus...

It seems dedicated to Oddmuse.

It contains a list a pairs of sentences (english and french).
But I don't recognize any standard emacs menu item.

> But I fail to load it. To do so I add this lines into .emacs file :
> ;; load the packaged named xyz.
> (load-library "french-utf8.pl")

> Is .pl files sames as .el scripts ? Do I need to modify the .emacs file ?

This file does not contain any emacs-lisp instruction.
It is NOT an emacs package to be loaded with "load-library".

It is a perl program, to be interpreted by a perl interpret.

It contains a call to the function AddModuleDescription 
which seems to be an Oddmuse function
as described in http://oddmuse.org/wiki/Modules

So, sorry, you are on a wrong path...

I don't know how to localize emacs in french.
I've never seen an emacs localized in french.
That would be a _lot_ of work, since you may have strings in
- C data
- C code
- lisp data
- lisp code
- lisp documentation
etc.

An interesting project though...


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-23 14:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 19:30 How to localise emacs to french ? gelinp38
2014-10-22 22:18 ` Pascal J. Bourguignon
2014-10-23  7:58 ` gelinp38
2014-10-23 14:14 ` sokobania.01

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).