On Sun, Nov 05, 2000 at 11:00:32AM +0200, Peteris Krisjanis wrote:
> It's seems rather easy, but I want to know excatly... howto ;)))
> 

Adding a new translation is fairly easy -- almost all the work
lies in actually translating the text.

Step One : Translate
   Make a subdirectory of nls/ for your language (xx_YY). Copy
   all of the .m files from nls/C to your directory. Edit each
   .m file (except for Translation.m... you can just erase that
   if it's there) and translate each line of text that starts
   with a '#' (leave the '#' there, though).

Step Two : Makefiles
   As is, Blackbox will ignore the translation you've just made.
   To fix this, first run the following in the xx_YY directory :
      sed s/da_DK/xx_YY/ ../da_DK/Makefile.am > Makefile.am

   Now move up to the nls directory and edit its Makefile.am. Find
   the SUBDIRS line and add your language to the list.

   Last but not least, go to the top of the source tree and edit
   configure.in. At the end of the file is a series of lines for
   translations :
      nls/Makefile
      nls/C/Makefile
      nls/da_DK/Makefile
      ...
   Add a line in there for your translation (nls/xx_YY/Makefile).

Step Three : auto*
   At the top of the source tree run the following :
      autoconf; automake --foreign --include-deps
   Reconfigure and recompile blackbox and your language should be
   installed and usuable just like all of the others.


Hope that helps (and that I haven't missed anything),
Jeff Raven

Reply via email to