summaryrefslogtreecommitdiffstats
path: root/po/cs.po
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2001-02-26 17:13:26 +0000
committerPablo Saratxaga <pablo@mandriva.com>2001-02-26 17:13:26 +0000
commit222785e1cbb090566b6d0c77e40571907570cb5a (patch)
tree8fdc9a83fad130cc52e9666da734368fcd43385e /po/cs.po
parentf9a03ce22e92bc887046f4ed1e833d3764c9b2f0 (diff)
downloadurpmi-222785e1cbb090566b6d0c77e40571907570cb5a.tar
urpmi-222785e1cbb090566b6d0c77e40571907570cb5a.tar.gz
urpmi-222785e1cbb090566b6d0c77e40571907570cb5a.tar.bz2
urpmi-222785e1cbb090566b6d0c77e40571907570cb5a.tar.xz
urpmi-222785e1cbb090566b6d0c77e40571907570cb5a.zip
updated Danish file
updated pot file
Diffstat (limited to 'po/cs.po')
-rw-r--r--po/cs.po60
1 files changed, 29 insertions, 31 deletions
diff --git a/po/cs.po b/po/cs.po
index 1dc5ca7f..ef65794b 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: urpmi 1.5\n"
-"POT-Creation-Date: 2001-02-17 15:50+0100\n"
+"POT-Creation-Date: 2001-02-26 16:35+0100\n"
"PO-Revision-Date: 2000-05-23 18:00+0200\n"
"Last-Translator: Vladimír Marek <vlmarek@volny.cz>\n"
"Language-Team: czech <cs@li.org>\n"
@@ -25,29 +25,29 @@ msgid ""
"You requested installation of package $rpm\n"
msgstr ""
-#: _irpm:31 urpmi:204
+#: _irpm:31 urpmi:207
msgid "Is it ok?"
msgstr "Je to správně?"
-#: _irpm:33 urpmi:207 urpmi:232
+#: _irpm:33 urpmi:210 urpmi:235
msgid "Ok"
msgstr "Ok"
-#: _irpm:34 urpmi:208 urpmi:233
+#: _irpm:34 urpmi:211 urpmi:236
msgid "Cancel"
msgstr "Zrušit"
-#: _irpm:40 urpmi:212 urpmi:261
+#: _irpm:40 urpmi:215 urpmi:264
msgid "Nn"
-msgstr ""
+msgstr "Nn"
-#: _irpm:41 urpmi:213 urpmi:262
+#: _irpm:41 urpmi:216 urpmi:265
msgid "Yy"
-msgstr ""
+msgstr "AaYy"
-#: _irpm:42 urpmi:214
+#: _irpm:42 urpmi:217
msgid " (Y/n) "
-msgstr ""
+msgstr " (A/n) "
#: _irpm:61
msgid "$rpm: command not found\n"
@@ -120,40 +120,40 @@ msgstr ""
#: placeholder.h:47 urpmi.update:52
#, c-format
msgid ""
-"missing the entry to update\n"
+"the entry to update is missing\n"
"(one of %s)\n"
msgstr ""
#: placeholder.h:51 urpmi.removemedia:49
#, c-format
msgid ""
-"missing the entry to remove\n"
+"the entry to remove is missing\n"
"(one of %s)\n"
msgstr ""
-#: urpmi:56
+#: urpmi:55
#, c-format
msgid "urpmi version %s"
msgstr ""
-#: urpmi:120
+#: urpmi:119
msgid "Only superuser is allowed to install local packages"
msgstr "Instalovat balíky může pouze root"
-#: urpmi:162
+#: urpmi:150
msgid "One of the following packages is needed:"
msgstr "Je zapotřebí jeden z následujících balíčků:"
-#: urpmi:170
+#: urpmi:158
#, c-format
msgid "What is your choice? (1-%d) "
msgstr "Jaká je Vaše volba? (1-%d) "
-#: urpmi:173
+#: urpmi:161
msgid "Sorry, bad choice, try again\n"
msgstr "Je mi líto, to je špatná volba. Zkuste to znovu\n"
-#: urpmi:203
+#: urpmi:206
#, c-format
msgid ""
"To satisfy dependencies, the following packages are going to be installed "
@@ -161,37 +161,35 @@ msgid ""
msgstr ""
"Aby byly splněny závislosti, budou nainstalovány následující balíčky (%d MB)"
-#: urpmi:229
+#: urpmi:232
#, fuzzy, c-format
msgid "Please insert the medium named \"%s\" on device [%s]"
msgstr "Prosím vložte %s nazvané %s"
-#: urpmi:230
+#: urpmi:233
msgid "Press enter when it's done..."
msgstr "A potom stiskněte Enter..."
-#: urpmi:243
+#: urpmi:246
msgid "everything already installed"
msgstr "vše je již nainstalováno"
-#: urpmi:252
+#: urpmi:255
#, c-format
msgid "installing %s\n"
msgstr "instaluji %s\n"
-#: urpmi:256 urpmi:268
+#: urpmi:259 urpmi:271
msgid "Installation failed"
msgstr "Chyba při instalaci"
-#: urpmi:263
-#, fuzzy
+#: urpmi:266
msgid "Try installation without checking dependencies? (Y/n) "
-msgstr "Mám zkusit instalaci bez kontroly závislostí?"
+msgstr "Mám zkusit instalaci bez kontroly závislostí? (A/n) "
-#: urpmi:269
-#, fuzzy
+#: urpmi:272
msgid "Try installation even more strongly (--force)? (Y/n) "
-msgstr "Mám zkusit instalaci ještě razantněji (--force)?"
+msgstr "Mám zkusit instalaci ještě razantněji (--force)? (A/n) "
#: urpmi.addmedia:36
msgid "usage: urpmi.addmedia <name> <url>"
@@ -223,13 +221,13 @@ msgstr ""
msgid "urpmq: cannot read rpm file \"$_\"\n"
msgstr ""
-#: urpmq:119
+#: urpmq:126
msgid ""
"some package have to be removed for being upgraded, this is not supported "
"yet\n"
msgstr ""
-#: urpmq:132
+#: urpmq:138
msgid "unable to get source packages, aborting"
msgstr ""
4 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
#include <sys/types.h>
#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__)
#include <sys/io.h>
#endif
#include <sys/mman.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include <ctype.h>
#include <fcntl.h>
#include <unistd.h>
#include "vesamode.h"
#include "vbe.h"
#ifdef HAVE_VBE
#include "int10/vbios.h"
#endif

#define DEBUG 0
#if DEBUG
#define bug  printf
#define D(X) X
#else
#define D(X)
#endif

#ifdef __i386__
#define cpuemu 1
#else
#define cpuemu 0
#endif

#ifdef HAVE_VBE
/*
 * Create a 'canonical' version, i.e. no spaces at start and end.
 *
 * Note: removes chars >= 0x80 as well (due to (char *))! This
 * is currently considered a feature.
 */
static char *canon_str(char *s, int len)
{
  char *m2, *m1, *m0 = malloc(len + 1);
  int i;

  for(m1 = m0, i = 0; i < len; i++) {
    if(m1 == m0 && s[i] <= ' ') continue;
    *m1++ = s[i];
  }
  *m1 = 0;
  while(m1 > m0 && m1[-1] <= ' ') {
    *--m1 = 0;
  }

  m2 = strdup(m0);
  free(m0);

  return m2;
}

static unsigned segofs2addr(unsigned char *segofs)
{
  return segofs[0] + (segofs[1] << 8) + (segofs[2] << 4)+ (segofs[3] << 12);
}


static unsigned get_data(unsigned char *buf, unsigned buf_size, unsigned addr)
{
  unsigned bufferaddr = 0x7e00;
  unsigned len;

  *buf = 0;
  len = 0;

  if(addr >= bufferaddr && addr < bufferaddr + 0x200) {
    len = bufferaddr + 0x200 - addr;
    if(len >= buf_size) len = buf_size - 1;
    memcpy(buf, addr + (char *) 0, len);
  }
  else if(addr >= 0x0c0000 && addr < 0x100000) {
    len = 0x100000 - addr;
    if(len >= buf_size) len = buf_size - 1;
    memcpy(buf, addr + (char *) 0, len);
  }

  buf[len] = 0;

  return len;
}

#define GET_WORD(ADDR, OFS) ((ADDR)[OFS] + ((ADDR)[(OFS) + 1] << 8))

int vbe_get_vbe_info(struct vbe_info *vbe)
{
  int i, l, u;
  unsigned char v[0x200];
  unsigned char tmp[1024];
  int ax, bx, cx;

  if (vbe == NULL)
    return 0;

  /* Setup registers for the interrupt call */
  ax = 0x4f00;
  bx = 0;
  cx = 0;
  memset(v, 0, sizeof(v));
  strcpy(v, "VBE2");

  /* Get VBE block */
  i = CallInt10(&ax, &bx, &cx, v, sizeof(v), cpuemu) & 0xffff;
  if (i != 0x4f) {
    D(bug("VBE: Error (0x4f00): 0x%04x\n", i));
    return 0;
  }

  /* Parse VBE block */
  vbe->version = GET_WORD(v, 0x04);
  vbe->oem_version = GET_WORD(v, 0x14);
  vbe->memory_size = GET_WORD(v, 0x12) << 16;
  D(bug("version = %u.%u, oem version = %u.%u\n",
	vbe->version >> 8, vbe->version & 0xff, vbe->oem_version >> 8, vbe->oem_version & 0xff));
  D(bug("memory = %uk\n", vbe->memory_size >> 10));

  l = get_data(tmp, sizeof tmp, u = segofs2addr(v + 0x06));
  vbe->oem_name = canon_str(tmp, l);
  D(bug("oem name [0x%05x] = \"%s\"\n", u, vbe->oem_name));

  l = get_data(tmp, sizeof tmp, u = segofs2addr(v + 0x16));
  vbe->vendor_name = canon_str(tmp, l);
  D(bug("vendor name [0x%05x] = \"%s\"\n", u, vbe->vendor_name));

  l = get_data(tmp, sizeof tmp, u = segofs2addr(v + 0x1a));
  vbe->product_name = canon_str(tmp, l);
  D(bug("product name [0x%05x] = \"%s\"\n", u, vbe->product_name));

  l = get_data(tmp, sizeof tmp, u = segofs2addr(v + 0x1e));
  vbe->product_revision = canon_str(tmp, l);
  D(bug("product revision [0x%05x] = \"%s\"\n", u, vbe->product_revision));

  l = get_data(tmp, sizeof tmp, u = segofs2addr(v + 0x0e)) >> 1;
  for(i = vbe->modes = 0; i < l && i < sizeof vbe->mode_list / sizeof *vbe->mode_list; i++) {
    u = GET_WORD(tmp, 2 * i);
    if(u != 0xffff)
      vbe->mode_list[vbe->modes++] = u;
    else
      break;
  }
  D(bug("%u video modes\n", vbe->modes));

  return 1;
}

/* Get EDID info. */
int vbe_get_edid_info(struct vbe_edid1_info *edid)
{
  int i;
  int ax, bx, cx;

  if (edid == NULL)
    return 0;

  /* Setup registers for the interrupt call */
  ax = 0x4f15;
  bx = 1;
  cx = 0;

  /* Get EDID block */
  i = CallInt10(&ax, &bx, &cx, (unsigned char *)edid, sizeof *edid, cpuemu) & 0xffff;
  if (i != 0x4f) {
    D(bug("EDID: Error (0x4f15): 0x%04x\n", i));
    return 0;
  }

  edid->manufacturer_name.p = ntohs(edid->manufacturer_name.p);
  return 1;
}
#endif

/* Just read ranges from the EDID. */
void vbe_get_edid_ranges(struct vbe_edid1_info *edid,
			 unsigned char *hmin, unsigned char *hmax,
			 unsigned char *vmin, unsigned char *vmax)
{
	struct vbe_edid_monitor_descriptor *monitor;
	int i;

	*hmin = *hmax = *vmin = *vmax = 0;

	for(i = 0; i < 4; i++) {
		monitor = &edid->monitor_details.monitor_descriptor[i];
		if(monitor->type == vbe_edid_monitor_descriptor_range) {
			*hmin = monitor->data.range_data.horizontal_min;
			*hmax = monitor->data.range_data.horizontal_max;
			*vmin = monitor->data.range_data.vertical_min;
			*vmax = monitor->data.range_data.vertical_max;
		}
	}
}

static int compare_vbe_modelines(const void *m1, const void *m2)
{
	const struct vbe_modeline *M1 = (const struct vbe_modeline*) m1;
	const struct vbe_modeline *M2 = (const struct vbe_modeline*) m2;
	if(M1->width < M2->width) return -1;
	if(M1->width > M2->width) return 1;
	return 0;
}

struct vbe_modeline *vbe_get_edid_modelines(struct vbe_edid1_info *edid)
{
	struct vbe_modeline *ret;
	char buf[LINE_MAX];
	int modeline_count = 0, i, j;

	if (edid == NULL)
	  return NULL;

	memcpy(buf, &edid->established_timings,
	       sizeof(edid->established_timings));
	for(i = 0; i < (8 * sizeof(edid->established_timings)); i++) {
		if(buf[i / 8] & (1 << (i % 8))) {
			modeline_count++;
		}
	}

	/* Count the number of standard timings. */
	for(i = 0; i < 8; i++) {
		int x, v;
		x = edid->standard_timing[i].xresolution;
		v = edid->standard_timing[i].vfreq;
		if(((edid->standard_timing[i].xresolution & 0x01) != x) &&
		   ((edid->standard_timing[i].vfreq & 0x01) != v)) {
			modeline_count++;
		}
	}

	ret = malloc(sizeof(struct vbe_modeline) * (modeline_count + 1));
	if(ret == NULL) {
		return NULL;
	}
	memset(ret, 0, sizeof(struct vbe_modeline) * (modeline_count + 1));

	modeline_count = 0;

	/* Fill out established timings. */
	if(edid->established_timings.timing_720x400_70) {
		ret[modeline_count].width = 720;
		ret[modeline_count].height = 400;
		ret[modeline_count].refresh = 70;
		modeline_count++;
	}
	if(edid->established_timings.timing_720x400_88) {
		ret[modeline_count].width = 720;
		ret[modeline_count].height = 400;
		ret[modeline_count].refresh = 88;
		modeline_count++;
	}
	if(edid->established_timings.timing_640x480_60) {
		ret[modeline_count].width = 640;
		ret[modeline_count].height = 480;
		ret[modeline_count].refresh = 60;
		modeline_count++;
	}
	if(edid->established_timings.timing_640x480_67) {
		ret[modeline_count].width = 640;
		ret[modeline_count].height = 480;
		ret[modeline_count].refresh = 67;
		modeline_count++;
	}
	if(edid->established_timings.timing_640x480_72) {
		ret[modeline_count].width = 640;
		ret[modeline_count].height = 480;
		ret[modeline_count].refresh = 72;
		modeline_count++;
	}
	if(edid->established_timings.timing_640x480_75) {
		ret[modeline_count].width = 640;
		ret[modeline_count].height = 480;
		ret[modeline_count].refresh = 75;
		modeline_count++;
	}
	if(edid->established_timings.timing_800x600_56) {
		ret[modeline_count].width = 800;
		ret[modeline_count].height = 600;
		ret[modeline_count].refresh = 56;
		modeline_count++;
	}
	if(edid->established_timings.timing_800x600_60) {
		ret[modeline_count].width = 800;
		ret[modeline_count].height = 600;
		ret[modeline_count].refresh = 60;
		modeline_count++;
	}
	if(edid->established_timings.timing_800x600_72) {
		ret[modeline_count].width = 800;
		ret[modeline_count].height = 600;
		ret[modeline_count].refresh = 72;
		modeline_count++;
	}
	if(edid->established_timings.timing_800x600_75) {
		ret[modeline_count].width = 800;
		ret[modeline_count].height = 600;
		ret[modeline_count].refresh = 75;
		modeline_count++;
	}
	if(edid->established_timings.timing_832x624_75) {
		ret[modeline_count].width = 832;
		ret[modeline_count].height = 624;
		ret[modeline_count].refresh = 75;
		modeline_count++;
	}
	if(edid->established_timings.timing_1024x768_87i) {
		ret[modeline_count].width = 1024;
		ret[modeline_count].height = 768;
		ret[modeline_count].refresh = 87;
		ret[modeline_count].interlaced = 1;
		modeline_count++;
	}
	if(edid->established_timings.timing_1024x768_60){
		ret[modeline_count].width = 1024;
		ret[modeline_count].height = 768;
		ret[modeline_count].refresh = 60;
		modeline_count++;
	}
	if(edid->established_timings.timing_1024x768_70){
		ret[modeline_count].width = 1024;
		ret[modeline_count].height = 768;
		ret[modeline_count].refresh = 70;
		modeline_count++;
	}
	if(edid->established_timings.timing_1024x768_75){
		ret[modeline_count].width = 1024;
		ret[modeline_count].height = 768;
		ret[modeline_count].refresh = 75;
		modeline_count++;
	}
	if(edid->established_timings.timing_1280x1024_75) {
		ret[modeline_count].width = 1280;
		ret[modeline_count].height = 1024;
		ret[modeline_count].refresh = 75;
		modeline_count++;
	}

	/* Add in standard timings. */
	for(i = 0; i < 8; i++) {
		float aspect = 1;
		int x, v;
		x = edid->standard_timing[i].xresolution;
		v = edid->standard_timing[i].vfreq;
		if(((edid->standard_timing[i].xresolution & 0x01) != x) &&
		   ((edid->standard_timing[i].vfreq & 0x01) != v)) {
			switch(edid->standard_timing[i].aspect) {
				case aspect_75: aspect = 0.7500; break;
				case aspect_8: aspect = 0.8000; break;
				case aspect_5625: aspect = 0.5625; break;
				default: aspect = 1; break;
			}
			x = (edid->standard_timing[i].xresolution + 31) * 8;
			ret[modeline_count].width = x;
			ret[modeline_count].height = x * aspect;
			ret[modeline_count].refresh =
				edid->standard_timing[i].vfreq + 60;
			modeline_count++;
		}
	}

	/* Now tack on any matching modelines. */
	for(i = 0; ret[i].refresh != 0; i++) {
		struct vesa_timing_t *t = NULL;
		for(j = 0; known_vesa_timings[j].refresh != 0; j++) {
			t = &known_vesa_timings[j];
			if(ret[i].width == t->x)
			if(ret[i].height == t->y)
			if(ret[i].refresh == t->refresh) {
				snprintf(buf, sizeof(buf),
					 "ModeLine \"%dx%d\"\t%6.2f "
					 "%4d %4d %4d %4d %4d %4d %4d %4d %s %s"
					 , t->x, t->y, t->dotclock,
					 t->timings[0],
					 t->timings[0] + t->timings[1],
					 t->timings[0] + t->timings[1] +
					 t->timings[2],
					 t->timings[0] + t->timings[1] +
					 t->timings[2] + t->timings[3],
					 t->timings[4],
					 t->timings[4] + t->timings[5],
					 t->timings[4] + t->timings[5] +
					 t->timings[6],
					 t->timings[4] + t->timings[5] +
					 t->timings[6] + t->timings[7],
					 t->hsync == hsync_pos ?
					 "+hsync" : "-hsync",
					 t->vsync == vsync_pos ?
					 "+vsync" : "-vsync");
				ret[i].modeline = strdup(buf);
				ret[i].hfreq = t->hfreq;
				ret[i].vfreq = t->vfreq;
			}
		}
	}

	modeline_count = 0;
	for(i = 0; ret[i].refresh != 0; i++) {
		modeline_count++;
	}
	qsort(ret, modeline_count, sizeof(ret[0]), compare_vbe_modelines);

	return ret;
}