Re: Czech translation needs fixups

2005-10-05 Thread Jindrich Novy
Hi Pavel,

On Tue, 2005-10-04 at 10:47 -0400, Pavel Roskin wrote:
 It would be great if you translate the new plural forms. 

The attached patch fixes some case problems in highlighted chracters
and yet more keyboard shortcut conflicts found in dialogs what I haven't
checked before. The plural forms are also translated.

Jindrich

-- 
Jindrich Novy [EMAIL PROTECTED], http://people.redhat.com/jnovy/
(o_   _o)
//\  The worst evil in the world is refusal to think. //\
V_/_ _\_V

--- mc/po/cs.po.cstrans	2005-10-04 23:15:08.0 +0200
+++ mc/po/cs.po	2005-10-05 12:53:44.0 +0200
@@ -527,9 +527,8 @@ msgstr uèení Kláves...
 msgid Syntax Highlighting...
 msgstr zvýraznìní syntaXe
 
-#, fuzzy
 msgid Save setup...
-msgstr ulo¾it naStavení
+msgstr ulo¾it naStavení...
 
 msgid  File 
 msgstr  Soubor 
@@ -695,7 +694,7 @@ msgid Skip
 msgstr Pøeskoèit
 
 msgid Set all
-msgstr Nastavit v¹e
+msgstr Nastavit V¹e
 
 msgid owner
 msgstr vlastník
@@ -761,7 +760,7 @@ msgid Full file list
 msgstr Plný seznam souborù
 
 msgid Brief file list
-msgstr Zhu¹tìný seznam souborù
+msgstr zHu¹tìný seznam souborù
 
 msgid Long file list
 msgstr Dlouhý seznam souborù
@@ -872,7 +871,7 @@ msgid Stopped
 msgstr Zastaveno
 
 msgid Stop
-msgstr Zastavit
+msgstr zAstavit
 
 msgid Resume
 msgstr Pokraèovat
@@ -935,10 +934,10 @@ msgid sticky bit
 msgstr bit 'sticky'
 
 msgid set group ID on execution
-msgstr pøi spu¹tìní nastavit èíslo skupiny
+msgstr nastavit GID pøi spu¹tìní
 
 msgid set user ID on execution
-msgstr pøi spu¹tìní nastavit èíslo u¾ivatele
+msgstr nastavit UID pøi spu¹tìní
 
 msgid Clear marked
 msgstr Smazat oznaèené
@@ -980,10 +979,10 @@ msgid Chmod command
 msgstr Chmod
 
 msgid Set users
-msgstr Nastav u¾ivatele
+msgstr Nastav U¾ivatele
 
 msgid Set groups
-msgstr Nastav skupiny
+msgstr Nastav Skupiny
 
 msgid  Name 
 msgstr  Jméno 
@@ -1763,7 +1762,7 @@ msgid Quit
 msgstr Konec
 
 msgid Panelize
-msgstr Panelizace
+msgstr PaneLizace
 
 msgid View - F3
 msgstr Vidìt - F3
@@ -1963,24 +1962,24 @@ msgid Modified:  %s
 msgstr Zmìnìn:%s
 
 #. TRANSLATORS: Status changed, like in the stat(2) man page
-#, fuzzy, c-format
+#, c-format
 msgid Status:%s
-msgstr Vytvoøen:  %s
+msgstr Stav:  %s
 
 #, c-format
 msgid Dev. type: major %lu, minor %lu
-msgstr 
+msgstr Typ zaøízení: velké %lu, malé %lu
 
 #, c-format
 msgid Size:  %s
 msgstr Velikost:  %s
 
-#, fuzzy, c-format
+#, c-format
 msgid  (%ld block)
 msgid_plural  (%ld blocks)
 msgstr[0]  (%ld blok)
-msgstr[1]  (%ld blok)
-msgstr[2]  (%ld blok)
+msgstr[1]  (%ld bloky)
+msgstr[2]  (%ld blokù)
 
 #, c-format
 msgid Owner: %s/%s
@@ -2011,7 +2010,7 @@ msgid Xterm window title
 msgstr nadpis okna Xtermu
 
 msgid hIntbar visible
-msgstr tipy viditelné
+msgstr tipY viditelné
 
 msgid Keybar visible
 msgstr Klávesy viditelné
@@ -2490,7 +2489,7 @@ msgid Use internal view
 msgstr pou¾ít interní prohlí¾Eè
 
 msgid use internal edIt
-msgstr pou¾ít interní editor
+msgstr pou¾ít interní eDitor
 
 msgid auto mEnus
 msgstr automatické Menu
@@ -2651,18 +2650,18 @@ msgstr Vlastník
 msgid Group
 msgstr Skupina
 
-#, fuzzy, c-format
+#, c-format
 msgid %s byte
 msgid_plural %s bytes
-msgstr[0] %s bytù
-msgstr[1] %s bytù
+msgstr[0] %s byte
+msgstr[1] %s byty
 msgstr[2] %s bytù
 
-#, fuzzy, c-format
+#, c-format
 msgid %s in %d file
 msgid_plural %s in %d files
-msgstr[0] %s bytù v %d souborech
-msgstr[1] %s bytù v %d souborech
+msgstr[0] %s byte v %d souborech
+msgstr[1] %s byty v %d souborech
 msgstr[2] %s bytù v %d souborech
 
 msgid readlink failed
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


print support

2005-10-05 Thread vadim
Hi!

I send for you patch for print support (it contains small fix relatively has
previously). But have problem with a2ps + utf-8, details in source

Apart patch I attach *.c  *.h files, which contains in patch.

If need correct it, please write me.

--

good luck!
Vadim Likhota [EMAIL PROTECTED]

patch-mc-4.6.1-prn
Description: Binary data
#ifndef __MC_DLG_PRN_H
#define __MC_DLG_PRN_H

#ifdef HAVE_PRINT

#define PRINTCAP   /etc/printcap

int	show_print_dlg	(void);
void	print_file	(const char *fname);

#endif /* HAVE_PRINT */

#endif	/* __MC_DLG_PRN_H */
/* Print dialog module for the Midnight Commander
   Copyright (C) 2005 Likhota Vadim [EMAIL PROTECTED]

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
 
 /*
 2005 09 small fix add a2ps 
 2005 06 orig
 */

#include config.h

#ifdef HAVE_PRINT

#include stdio.h
#include errno.h

#include global.h
#include tty.h
#include execute.h
#include color.h
#include widget.h
#include wtools.h

#ifdef HAVE_CHARSET
#include charsets.h
#endif

#include dlg_prn.h

#define TEMP_BUF_LEN 1024

#define DLG_PRN_H 11
#define DLG_PRN_W 72

static char printer[32] = N_(default printer);
static char codepgf[32] = N_(default charset);
static char codepgt[32] = N_(default charset);
static int nprinter = 0, ncodepgf = 0, ncodepgt = 0;
static int sel_pln = 1, sel_prn = 0, sel_enc = 0;
static WCheck *check_pln, *check_prn, *check_enc;
static WButton *but_prn, *but_en1, *but_en2;

static void
prn_enter (Dlg_head * h, const int f_pos)
{
Dlg_head *chl_dlg = 0;
WListbox *chl_list;
int prnbox = ( f_pos == 2 ? 1 : 0 ); 	// 1 - printers, 0 - charsets
int lxx = (COLS - DLG_PRN_W) / 2 + (f_pos == 7 ? 50 : 25);
int lyy = (LINES - DLG_PRN_H) / 2 + (prnbox ? 0 : 2 );
char *title = ( prnbox ? _(printers) : _(charsets) );

if ( !(chl_dlg = create_dlg (lyy, lxx, 9, 20, dialog_colors, NULL,
		[print option], title, DLG_COMPACT))) {
	message (1, MSG_ERROR, Can't create child window.);
	return;
}

if ( !(chl_list = listbox_new (1, 1, 18, 7, NULL))) {
	message (1, MSG_ERROR, Can't create child lisbox.);
	destroy_dlg (chl_dlg);
	return;
}

listbox_add_item (chl_list, 0, 0,
	(prnbox ? N_(default printer) : N_(default charset)), NULL);

// read printcap file
if ( prnbox ) {
	char *p = PRINTCAP;
	char buf[TEMP_BUF_LEN], *bufi;
	FILE *f;

	f = (FILE *) fopen (p, r);
	if (f) {
	while ( fgets(buf, TEMP_BUF_LEN - 1, f) ) {
		int prflag = 0;
		if (*buf != '#') {
		bufi = buf;
		while ( *bufi != '\0' and (*bufi = '0' and *bufi = '9' or 
			*bufi = 'A' and *bufi = 'Z' or *bufi = 'a' and *bufi = 'z' or
			*bufi == '|' or *bufi == '_') {
			if ( *bufi == '|' ) {
			*bufi = '\0';
			prflag = 1;
			break;
			}
			else
			bufi++;
		}
		if ( prflag ) {
			listbox_add_item (chl_list, 0, 0, buf, NULL);
			prflag = 0;
		}
		}
	}
	if (fclose (f)  0)
		message (1, MSG_ERROR, Error while close file: %s., p);
	} else {
	message (1, MSG_ERROR, Can't open file for reading: %s., p);
	destroy_dlg (chl_dlg);
	return;
	}
}
#ifdef HAVE_CHARSET
else {
	int i = 0;
	for ( ; i  n_codepages; i++)
	listbox_add_item (chl_list, 0, 0, codepages[i].name, NULL);
}
#endif
	
add_widget (chl_dlg, chl_list);

run_dlg (chl_dlg);

switch (f_pos) {
case 2:
	strncpy(printer, chl_list-current-text, 32);
	strncpy(but_prn-text, printer, 32);
	nprinter = chl_list-pos;
	break;
case 5:
	strncpy(codepgf, chl_list-current-text, 32);
	strncpy(but_en1-text, codepgf, 32);
	ncodepgf = chl_list-pos;
	break;
case 7:
	strncpy(codepgt, chl_list-current-text, 32);
	strncpy(but_en2-text, codepgt, 32);
	ncodepgt = chl_list-pos;
	break;
}
destroy_dlg (chl_dlg);
}

static cb_ret_t
print_block_callback (struct Dlg_head *h, dlg_msg_t Msg, int Par)
{
int f_pos = h-current-dlg_id;

if (Msg == DLG_KEY) {
	switch (Par) {
	case '\n':
	if ( f_pos  8 ) {
		switch (f_pos) {
		case 2:
		if ( check_prn-state )
			prn_enter (h, f_pos);
		break;
		case 7:
		if ( !strcmp(but_en1-text, N_(default charset)) )
			break;
		case 5:
		if ( check_enc-state )
			prn_enter (h, f_pos);
		break;
		}
		return MSG_HANDLED;
	}
	break;
	}
} else
	return default_dlg_callback (h, Msg, Par);

return MSG_NOT_HANDLED;
}

/* 

Re: print support

2005-10-05 Thread Egmont Koblinger
 I send for you patch for print support (it contains small fix relatively has
 previously). But have problem with a2ps + utf-8, details in source

a2ps doesn't support UTF-8 at all.

However, if lpr of cups is invoked with an UTF-8 locale, it assumes UTF-8
encoding and correctly prints the plain text files which use UTF-8.



-- 
Egmont
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel