[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: language-env with Japanese/Thai/German/Spanish support



Hi,

On Thu, 24 Feb 2000 you wrote:
> I built a new version (0.02) of language-env, which German and Spanish
> are added to and Thai support is a bit improved.  Please check it.
[...]
> The package is available at
> ftp://surfchem0.riken.go.jp/pub/languge-env/
> because I am not an official member of Debian yet.

I just tried your package. Good work!

I'd like to propose a few improvements:

- The manpage set-language-env.1.gz says (second paragraph of 
  DESCRIPTION):
  
  "This version supports Japanese and Thai."

  IMHO it would be better to list all languages supported, to avoid
  confusion, so it should be: 
  This version supports Japanese, Thai, German and Spanish.
  (The order is up to you, of course :-) ).

- /usr/share/doc/language-env/README says (ca. middle of the text):
  "German support is written using user-de_0.8 package.
   Read README.de* for detail."
  However, there is no file README.de* in the package.

- You supply a de.dot.bashrc which updates bashrc. However, 
  according to manpage bash(1):
  "When an interactive shell that is not  a  login  shell  is
   started,  bash reads and executes commands from ~/.bashrc,
  ..."
  That is, .bashrc is NOT executed upon console login
  (for X-users it's different because opening an xterm does not
  count as a login shell). Thus, if you log in from the console,
  the settings from .bashrc are not executed, the user does not
  get the native language setting.
  I don't know how to handle that:
  add the same stuff to .bash_profile, have .bash_profile 
  source .bashrc ...?

> German and Spanish supports are written using user-de and user-es
> packages.  I translated a part of messages but the translation may
> be wrong.
There are some mistakes in the translations, and many strings are not
translated at all. Therefore I went through the files for German, 
correcting things. You can find the new support.de.pl at the end of 
this message.

In the files
de.dot.bashrc      
de.dot.emacs 
I think the descriptions at the beginning should be in German as well, 
since they are displayed to the user for selection. Therefore I
supply patches for de.dot.bashrc and de.dot.emacs at the end of this
mail.



One final remark: support.de.pl contains the line:
  if (&Sub::isinstalled("doc-linux")) {&Sub::addlist("doc-linux-de");} 
However, my Debian2.1/Slink does not have a package doc-linux. Maybe
it's new for potato? Anyway, why not just propose doc-linux-de to 
the user? doc-linux (which I assume contains English-language-
documentation) might not be installed because the user doesn't 
understand much English. We're only proposing packages anyway, so
there can't be much harm in proposing a package the user might
not want after all. After looking at the package description in
dselect, he/she can still choose. I'd propose you just put
           &Sub::addlist("linux-doc-de");
instead.

Greetings,

Sebastian Leske

P.S. BEWARE, the texts below are partially in the ISO-8859-1
codeset and therefore contain non-ASCII-characters. This whole
email is encoded as quoted-printable, so the characters should
all arrive intact, however if you don't get the umlauts
ä,ö,ü (a,o,u with " respectively) correctly, please mail me,
and I'll try sending the files uuencoded or something similar.


******************************************

Patch for de.dot.bashrc (from diff -u):

--- de.dot.bashrc       Thu Mar  9 10:27:54 2000
+++ /usr/share/language-env/de.dot.bashrc.orig  Thu Feb 24 03:34:54 2000
@@ -1,11 +1,7 @@
 # s comment -*-coding: iso-8859-1;-*-
-Aktiviert die vorhandene Unterstuetzung für Deutsch auf der
-Kommandozeile und in den meisten anderen Programmen.
-Wird beim Start von bash ausgefuehrt.
+Executed when bash is invoked.
 END
-Aktiviert die vorhandene Unterstützung für Deutsch auf der
-Kommandozeile und in den meisten anderen Programmen.
-Wird beim Start von bash ausgeführt.
+Executed when bash is invoked.
 END
 # $Id: language-de,v 1.4 1998/02/20 18:34:36 leutloff Exp $
 # settings for german speaking users    

*******************************************

Patch for de.dot.emacs (from diff -u):

--- de.dot.emacs        Thu Mar  9 10:28:32 2000
+++ /usr/share/language-env/de.dot.emacs.orig   Thu Feb 24 03:34:54 2000
@@ -1,7 +1,7 @@
 ;   comment -*-coding: iso-8859-1;-*-
-Deutsche Einstellungen für Emacs
+settings for emacs
 END
-Deutsche Einstellungen für Emacs
+settings for emacs
 END
 ; $Id: emacs,v 1.4 1998/02/20 18:35:26 leutloff Exp leutloff $     

********************************************

The proposed new support.de.pl (no patch, since most of the file
is changed):

***begin file support.de.pl

# !Deutsch,German! -*-coding: iso-8859-1;-*-
#
# ---------------------------------------------------
# isNC()
# ---------------------------------------------------
sub isNC($$$)
{
	return 0;
}

# ---------------------------------------------------
# initialize()
# ---------------------------------------------------
sub initialize()
{
	&Sub::addlist("locales");
	&Sub::addlist("manpages-de");
	if (&Sub::isinstalled("doc-linux")) {&Sub::addlist("doc-linux-de");}
	return 0;
}

# ---------------------------------------------------
# sourceset2displayset()
# ---------------------------------------------------
sub sourceset2displayset ($)
{
	return $_[0];
}

# ---------------------------------------------------
# analcode()
# ---------------------------------------------------
sub analcode($)
{
	return 0;
}

# ---------------------------------------------------
# convcode()
# ---------------------------------------------------
sub convcode($$)
{
	return $_[0];
}


# ---------------------------------------------------
# messages
# ---------------------------------------------------

%messages = (

# msgid
"\nPush [Enter] key to End.\n" =>
# msgstr (in ASCII)
"\nDruecken Sie [Enter] um das Programm zu beenden.\n\000" .
# msgstr (in native character set: for example ISO-8859-1)
"\nDrücken Sie [Enter] um das Programm zu beenden.\n" ,

"Now obtaining package list...\n" =>
"Erstelle Paketliste...\n" ,

"Do setting? " =>
"Diese Einstellung durchfuehren? \000" .
"Diese Einstellung durchführen?" ,

"Setting is not done.\n" =>
"Einstellung ist nicht erfolgt.\n" ,

"Do setting...\n" =>
"Einstellung erfolgt...\n" ,

"Cannot open \"%s\".\n" =>
"Kann \"%s\" nicht oeffnen.\n\000" .
"Kann \"%s\" nicht öffnen.\n" ,

"Cannot write to \"%s\".\n" =>
"Kann nicht in \"%s\" schreiben.\n" ,

"Cannot lock \"%s\".\n" =>
"Kann kein Lock erhalten auf \"%s\".\n" ,

"Cannot close \"%s\".\n" =>
"Kann \"%s\" nicht schliessen.\n\000" .
"Kann \"%s\" nicht schließen.\n" ,

"Install the following packages.\n" =>
"Folgende Pakete werden ergaenzend zur Installation vorgeschlagen:\n\000".
"Folgende Pakete werden ergänzend zur Installation vorgeschlagen:\n" ,

"   Setting is now done.  To activate these settings,\n".
"logout and login.\n".
"   Read each dotfile and confirm the modification.\n".
"If you don't like the setting, modify directly or\n".
"add overriding setting after 'language-env end' line.\n".
"   Read /usr/share/doc/language-env/README.* for detail.\n" =>
"   Einstellung sind erfolgt.  Sie werden beim naechsten\n".
"Login wirksam.\n".
"   Sie koennen die geaenderten Einstellungs-Dateien lesen und die\n".
"Aenderungen ueberpruefen. Falls notwendig, koennen Sie die hinzugefueg-\n".
"ten Zeilen direkt abaendern oder hinter der Zeile 'language-env end'\n".
"Einstellungen anfuegen, die so dann vor den vorhergehenden Einstel-\n".
"lungen Vorrang haben.\n".
"   Lesen Sie /usr/share/doc/language-env/README.* für naehere Angaben.\n\000" .
"   Einstellung sind erfolgt.  Sie werden beim nächsten\n".
"Login wirksam.\n".
"   Sie können die geänderten Einstellungs-Dateien lesen und die\n".
"Änderungen überprüfen. Falls notwendig, können Sie die hinzugefüg-\n".
"ten Zeilen direkt abändern oder hinter der Zeile 'language-env end'\n".
"Einstellungen anfügen, die so dann vor den vorhergehenden Einstel-\n".
"lungen Vorrang haben.\n".
"   Lesen Sie /usr/share/doc/language-env/README.* für nähere Angaben.\n" ,



"Usage: set-language-env [options]\n".
"  -l language : Specify language (otherwise choose from menu)\n".
"  -h          : This help message\n".
"  -v          : 'verbose mode'\n".
"  -s          : Display list of supported languages and exit\n".
"  -r          : Remove all settings\n".
"  -N          : Never fork another set-language-env (for internal use)\n".
"  -c          : Don't use native character set (for internal use)\n".
"  -C          : Use native character set (for internal use)\n" =>      
"Benutzung: set-language-env [Optionen]\n".
"  -l Sprache  : Sprache angeben (sonst wird ein Menue angezeigt)\n".
"  -h          : dieser Hilfe-Text\n".
"  -v          : 'verbose mode'(das Programm kommentiert was es tut)\n".
"  -s          : Zeigt nur eine Liste der unterstuetzten Sprachen an\n".
"  -r          : Entfernt alle Einstellungen\n".
"  -N          : Never fork another set-language-env (for internal use)\n".
"  -c          : Don't use native character set (for internal use)\n".
"  -C          : Use native character set (for internal use)\n\000".
"Benutzung: set-language-env [Optionen]\n".
"  -l Sprache  : Sprache angeben (sonst wird ein Menü angezeigt)\n".
"  -h          : dieser Hilfe-Text\n".
"  -v          : 'verbose mode'(das Programm kommentiert was es tut)\n".
"  -s          : Zeigt nur eine Liste der unterstützten Sprachen an\n".
"  -r          : Entfernt alle Einstellungen\n".
"  -N          : Never fork another set-language-env (for internal use)\n".
"  -c          : Don't use native character set (for internal use)\n".
"  -C          : Use native character set (for internal use)\n"
);

# ---------------------------------------------------
# yes and no
# ---------------------------------------------------
$yes_upper = "J";
$yes_lower = "j";
$no_upper = "N";
$no_lower = "n";

***end file support.de.pl



Reply to: