aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/tools.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/db/tools.php')
-rw-r--r--phpBB/phpbb/db/tools.php2554
1 files changed, 2554 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php
new file mode 100644
index 0000000000..7616849465
--- /dev/null
+++ b/phpBB/phpbb/db/tools.php
@@ -0,0 +1,2554 @@
+<?php
+/**
+*
+* @package dbal
+* @copyright (c) 2007 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+namespace phpbb\db;
+
+/**
+* Database Tools for handling cross-db actions such as altering columns, etc.
+* Currently not supported is returning SQL for creating tables.
+*
+* @package dbal
+*/
+class tools
+{
+ /**
+ * Current sql layer
+ */
+ var $sql_layer = '';
+
+ /**
+ * @var object DB object
+ */
+ var $db = null;
+
+ /**
+ * The Column types for every database we support
+ * @var array
+ */
+ var $dbms_type_map = array();
+
+ /**
+ * Get the column types for every database we support
+ *
+ * @return array
+ */
+ public static function get_dbms_type_map()
+ {
+ return array(
+ 'mysql_41' => array(
+ 'INT:' => 'int(%d)',
+ 'BINT' => 'bigint(20)',
+ 'UINT' => 'mediumint(8) UNSIGNED',
+ 'UINT:' => 'int(%d) UNSIGNED',
+ 'TINT:' => 'tinyint(%d)',
+ 'USINT' => 'smallint(4) UNSIGNED',
+ 'BOOL' => 'tinyint(1) UNSIGNED',
+ 'VCHAR' => 'varchar(255)',
+ 'VCHAR:' => 'varchar(%d)',
+ 'CHAR:' => 'char(%d)',
+ 'XSTEXT' => 'text',
+ 'XSTEXT_UNI'=> 'varchar(100)',
+ 'STEXT' => 'text',
+ 'STEXT_UNI' => 'varchar(255)',
+ 'TEXT' => 'text',
+ 'TEXT_UNI' => 'text',
+ 'MTEXT' => 'mediumtext',
+ 'MTEXT_UNI' => 'mediumtext',
+ 'TIMESTAMP' => 'int(11) UNSIGNED',
+ 'DECIMAL' => 'decimal(5,2)',
+ 'DECIMAL:' => 'decimal(%d,2)',
+ 'PDECIMAL' => 'decimal(6,3)',
+ 'PDECIMAL:' => 'decimal(%d,3)',
+ 'VCHAR_UNI' => 'varchar(255)',
+ 'VCHAR_UNI:'=> 'varchar(%d)',
+ 'VCHAR_CI' => 'varchar(255)',
+ 'VARBINARY' => 'varbinary(255)',
+ ),
+
+ 'mysql_40' => array(
+ 'INT:' => 'int(%d)',
+ 'BINT' => 'bigint(20)',
+ 'UINT' => 'mediumint(8) UNSIGNED',
+ 'UINT:' => 'int(%d) UNSIGNED',
+ 'TINT:' => 'tinyint(%d)',
+ 'USINT' => 'smallint(4) UNSIGNED',
+ 'BOOL' => 'tinyint(1) UNSIGNED',
+ 'VCHAR' => 'varbinary(255)',
+ 'VCHAR:' => 'varbinary(%d)',
+ 'CHAR:' => 'binary(%d)',
+ 'XSTEXT' => 'blob',
+ 'XSTEXT_UNI'=> 'blob',
+ 'STEXT' => 'blob',
+ 'STEXT_UNI' => 'blob',
+ 'TEXT' => 'blob',
+ 'TEXT_UNI' => 'blob',
+ 'MTEXT' => 'mediumblob',
+ 'MTEXT_UNI' => 'mediumblob',
+ 'TIMESTAMP' => 'int(11) UNSIGNED',
+ 'DECIMAL' => 'decimal(5,2)',
+ 'DECIMAL:' => 'decimal(%d,2)',
+ 'PDECIMAL' => 'decimal(6,3)',
+ 'PDECIMAL:' => 'decimal(%d,3)',
+ 'VCHAR_UNI' => 'blob',
+ 'VCHAR_UNI:'=> array('varbinary(%d)', 'limit' => array('mult', 3, 255, 'blob')),
+ 'VCHAR_CI' => 'blob',
+ 'VARBINARY' => 'varbinary(255)',
+ ),
+
+ 'firebird' => array(
+ 'INT:' => 'INTEGER',
+ 'BINT' => 'DOUBLE PRECISION',
+ 'UINT' => 'INTEGER',
+ 'UINT:' => 'INTEGER',
+ 'TINT:' => 'INTEGER',
+ 'USINT' => 'INTEGER',
+ 'BOOL' => 'INTEGER',
+ 'VCHAR' => 'VARCHAR(255) CHARACTER SET NONE',
+ 'VCHAR:' => 'VARCHAR(%d) CHARACTER SET NONE',
+ 'CHAR:' => 'CHAR(%d) CHARACTER SET NONE',
+ 'XSTEXT' => 'BLOB SUB_TYPE TEXT CHARACTER SET NONE',
+ 'STEXT' => 'BLOB SUB_TYPE TEXT CHARACTER SET NONE',
+ 'TEXT' => 'BLOB SUB_TYPE TEXT CHARACTER SET NONE',
+ 'MTEXT' => 'BLOB SUB_TYPE TEXT CHARACTER SET NONE',
+ 'XSTEXT_UNI'=> 'VARCHAR(100) CHARACTER SET UTF8',
+ 'STEXT_UNI' => 'VARCHAR(255) CHARACTER SET UTF8',
+ 'TEXT_UNI' => 'BLOB SUB_TYPE TEXT CHARACTER SET UTF8',
+ 'MTEXT_UNI' => 'BLOB SUB_TYPE TEXT CHARACTER SET UTF8',
+ 'TIMESTAMP' => 'INTEGER',
+ 'DECIMAL' => 'DOUBLE PRECISION',
+ 'DECIMAL:' => 'DOUBLE PRECISION',
+ 'PDECIMAL' => 'DOUBLE PRECISION',
+ 'PDECIMAL:' => 'DOUBLE PRECISION',
+ 'VCHAR_UNI' => 'VARCHAR(255) CHARACTER SET UTF8',
+ 'VCHAR_UNI:'=> 'VARCHAR(%d) CHARACTER SET UTF8',
+ 'VCHAR_CI' => 'VARCHAR(255) CHARACTER SET UTF8',
+ 'VARBINARY' => 'CHAR(255) CHARACTER SET NONE',
+ ),
+
+ 'mssql' => array(
+ 'INT:' => '[int]',
+ 'BINT' => '[float]',
+ 'UINT' => '[int]',
+ 'UINT:' => '[int]',
+ 'TINT:' => '[int]',
+ 'USINT' => '[int]',
+ 'BOOL' => '[int]',
+ 'VCHAR' => '[varchar] (255)',
+ 'VCHAR:' => '[varchar] (%d)',
+ 'CHAR:' => '[char] (%d)',
+ 'XSTEXT' => '[varchar] (1000)',
+ 'STEXT' => '[varchar] (3000)',
+ 'TEXT' => '[varchar] (8000)',
+ 'MTEXT' => '[text]',
+ 'XSTEXT_UNI'=> '[varchar] (100)',
+ 'STEXT_UNI' => '[varchar] (255)',
+ 'TEXT_UNI' => '[varchar] (4000)',
+ 'MTEXT_UNI' => '[text]',
+ 'TIMESTAMP' => '[int]',
+ 'DECIMAL' => '[float]',
+ 'DECIMAL:' => '[float]',
+ 'PDECIMAL' => '[float]',
+ 'PDECIMAL:' => '[float]',
+ 'VCHAR_UNI' => '[varchar] (255)',
+ 'VCHAR_UNI:'=> '[varchar] (%d)',
+ 'VCHAR_CI' => '[varchar] (255)',
+ 'VARBINARY' => '[varchar] (255)',
+ ),
+
+ 'mssqlnative' => array(
+ 'INT:' => '[int]',
+ 'BINT' => '[float]',
+ 'UINT' => '[int]',
+ 'UINT:' => '[int]',
+ 'TINT:' => '[int]',
+ 'USINT' => '[int]',
+ 'BOOL' => '[int]',
+ 'VCHAR' => '[varchar] (255)',
+ 'VCHAR:' => '[varchar] (%d)',
+ 'CHAR:' => '[char] (%d)',
+ 'XSTEXT' => '[varchar] (1000)',
+ 'STEXT' => '[varchar] (3000)',
+ 'TEXT' => '[varchar] (8000)',
+ 'MTEXT' => '[text]',
+ 'XSTEXT_UNI'=> '[varchar] (100)',
+ 'STEXT_UNI' => '[varchar] (255)',
+ 'TEXT_UNI' => '[varchar] (4000)',
+ 'MTEXT_UNI' => '[text]',
+ 'TIMESTAMP' => '[int]',
+ 'DECIMAL' => '[float]',
+ 'DECIMAL:' => '[float]',
+ 'PDECIMAL' => '[float]',
+ 'PDECIMAL:' => '[float]',
+ 'VCHAR_UNI' => '[varchar] (255)',
+ 'VCHAR_UNI:'=> '[varchar] (%d)',
+ 'VCHAR_CI' => '[varchar] (255)',
+ 'VARBINARY' => '[varchar] (255)',
+ ),
+
+ 'oracle' => array(
+ 'INT:' => 'number(%d)',
+ 'BINT' => 'number(20)',
+ 'UINT' => 'number(8)',
+ 'UINT:' => 'number(%d)',
+ 'TINT:' => 'number(%d)',
+ 'USINT' => 'number(4)',
+ 'BOOL' => 'number(1)',
+ 'VCHAR' => 'varchar2(255)',
+ 'VCHAR:' => 'varchar2(%d)',
+ 'CHAR:' => 'char(%d)',
+ 'XSTEXT' => 'varchar2(1000)',
+ 'STEXT' => 'varchar2(3000)',
+ 'TEXT' => 'clob',
+ 'MTEXT' => 'clob',
+ 'XSTEXT_UNI'=> 'varchar2(300)',
+ 'STEXT_UNI' => 'varchar2(765)',
+ 'TEXT_UNI' => 'clob',
+ 'MTEXT_UNI' => 'clob',
+ 'TIMESTAMP' => 'number(11)',
+ 'DECIMAL' => 'number(5, 2)',
+ 'DECIMAL:' => 'number(%d, 2)',
+ 'PDECIMAL' => 'number(6, 3)',
+ 'PDECIMAL:' => 'number(%d, 3)',
+ 'VCHAR_UNI' => 'varchar2(765)',
+ 'VCHAR_UNI:'=> array('varchar2(%d)', 'limit' => array('mult', 3, 765, 'clob')),
+ 'VCHAR_CI' => 'varchar2(255)',
+ 'VARBINARY' => 'raw(255)',
+ ),
+
+ 'sqlite' => array(
+ 'INT:' => 'int(%d)',
+ 'BINT' => 'bigint(20)',
+ 'UINT' => 'INTEGER UNSIGNED', //'mediumint(8) UNSIGNED',
+ 'UINT:' => 'INTEGER UNSIGNED', // 'int(%d) UNSIGNED',
+ 'TINT:' => 'tinyint(%d)',
+ 'USINT' => 'INTEGER UNSIGNED', //'mediumint(4) UNSIGNED',
+ 'BOOL' => 'INTEGER UNSIGNED', //'tinyint(1) UNSIGNED',
+ 'VCHAR' => 'varchar(255)',
+ 'VCHAR:' => 'varchar(%d)',
+ 'CHAR:' => 'char(%d)',
+ 'XSTEXT' => 'text(65535)',
+ 'STEXT' => 'text(65535)',
+ 'TEXT' => 'text(65535)',
+ 'MTEXT' => 'mediumtext(16777215)',
+ 'XSTEXT_UNI'=> 'text(65535)',
+ 'STEXT_UNI' => 'text(65535)',
+ 'TEXT_UNI' => 'text(65535)',
+ 'MTEXT_UNI' => 'mediumtext(16777215)',
+ 'TIMESTAMP' => 'INTEGER UNSIGNED', //'int(11) UNSIGNED',
+ 'DECIMAL' => 'decimal(5,2)',
+ 'DECIMAL:' => 'decimal(%d,2)',
+ 'PDECIMAL' => 'decimal(6,3)',
+ 'PDECIMAL:' => 'decimal(%d,3)',
+ 'VCHAR_UNI' => 'varchar(255)',
+ 'VCHAR_UNI:'=> 'varchar(%d)',
+ 'VCHAR_CI' => 'varchar(255)',
+ 'VARBINARY' => 'blob',
+ ),
+
+ 'postgres' => array(
+ 'INT:' => 'INT4',
+ 'BINT' => 'INT8',
+ 'UINT' => 'INT4', // unsigned
+ 'UINT:' => 'INT4', // unsigned
+ 'USINT' => 'INT2', // unsigned
+ 'BOOL' => 'INT2', // unsigned
+ 'TINT:' => 'INT2',
+ 'VCHAR' => 'varchar(255)',
+ 'VCHAR:' => 'varchar(%d)',
+ 'CHAR:' => 'char(%d)',
+ 'XSTEXT' => 'varchar(1000)',
+ 'STEXT' => 'varchar(3000)',
+ 'TEXT' => 'varchar(8000)',
+ 'MTEXT' => 'TEXT',
+ 'XSTEXT_UNI'=> 'varchar(100)',
+ 'STEXT_UNI' => 'varchar(255)',
+ 'TEXT_UNI' => 'varchar(4000)',
+ 'MTEXT_UNI' => 'TEXT',
+ 'TIMESTAMP' => 'INT4', // unsigned
+ 'DECIMAL' => 'decimal(5,2)',
+ 'DECIMAL:' => 'decimal(%d,2)',
+ 'PDECIMAL' => 'decimal(6,3)',
+ 'PDECIMAL:' => 'decimal(%d,3)',
+ 'VCHAR_UNI' => 'varchar(255)',
+ 'VCHAR_UNI:'=> 'varchar(%d)',
+ 'VCHAR_CI' => 'varchar_ci',
+ 'VARBINARY' => 'bytea',
+ ),
+ );
+ }
+
+ /**
+ * A list of types being unsigned for better reference in some db's
+ * @var array
+ */
+ var $unsigned_types = array('UINT', 'UINT:', 'USINT', 'BOOL', 'TIMESTAMP');
+
+ /**
+ * A list of supported DBMS. We change this class to support more DBMS, the DBMS itself only need to follow some rules.
+ * @var array
+ */
+ var $supported_dbms = array('firebird', 'mssql', 'mssqlnative', 'mysql_40', 'mysql_41', 'oracle', 'postgres', 'sqlite');
+
+ /**
+ * This is set to true if user only wants to return the 'to-be-executed' SQL statement(s) (as an array).
+ * This mode has no effect on some methods (inserting of data for example). This is expressed within the methods command.
+ */
+ var $return_statements = false;
+
+ /**
+ * Constructor. Set DB Object and set {@link $return_statements return_statements}.
+ *
+ * @param \phpbb\db\driver\driver_interface $db Database connection
+ * @param bool $return_statements True if only statements should be returned and no SQL being executed
+ */
+ public function __construct(\phpbb\db\driver\driver_interface $db, $return_statements = false)
+ {
+ $this->db = $db;
+ $this->return_statements = $return_statements;
+
+ $this->dbms_type_map = self::get_dbms_type_map();
+
+ // Determine mapping database type
+ switch ($this->db->sql_layer)
+ {
+ case 'mysql':
+ $this->sql_layer = 'mysql_40';
+ break;
+
+ case 'mysql4':
+ if (version_compare($this->db->sql_server_info(true), '4.1.3', '>='))
+ {
+ $this->sql_layer = 'mysql_41';
+ }
+ else
+ {
+ $this->sql_layer = 'mysql_40';
+ }
+ break;
+
+ case 'mysqli':
+ $this->sql_layer = 'mysql_41';
+ break;
+
+ case 'mssql':
+ case 'mssql_odbc':
+ $this->sql_layer = 'mssql';
+ break;
+
+ case 'mssqlnative':
+ $this->sql_layer = 'mssqlnative';
+ break;
+
+ default:
+ $this->sql_layer = $this->db->sql_layer;
+ break;
+ }
+ }
+
+ /**
+ * Setter for {@link $return_statements return_statements}.
+ *
+ * @param bool $return_statements True if SQL should not be executed but returned as strings
+ * @return null
+ */
+ public function set_return_statements($return_statements)
+ {
+ $this->return_statements = $return_statements;
+ }
+
+ /**
+ * Gets a list of tables in the database.
+ *
+ * @return array Array of table names (all lower case)
+ */
+ function sql_list_tables()
+ {
+ switch ($this->db->sql_layer)
+ {
+ case 'mysql':
+ case 'mysql4':
+ case 'mysqli':
+ $sql = 'SHOW TABLES';
+ break;
+
+ case 'sqlite':
+ $sql = 'SELECT name
+ FROM sqlite_master
+ WHERE type = "table"';
+ break;
+
+ case 'mssql':
+ case 'mssql_odbc':
+ case 'mssqlnative':
+ $sql = "SELECT name
+ FROM sysobjects
+ WHERE type='U'";
+ break;
+
+ case 'postgres':
+ $sql = 'SELECT relname
+ FROM pg_stat_user_tables';
+ break;
+
+ case 'firebird':
+ $sql = 'SELECT rdb$relation_name
+ FROM rdb$relations
+ WHERE rdb$view_source is null
+ AND rdb$system_flag = 0';
+ break;
+
+ case 'oracle':
+ $sql = 'SELECT table_name
+ FROM USER_TABLES';
+ break;
+ }
+
+ $result = $this->db->sql_query($sql);
+
+ $tables = array();
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ $name = current($row);
+ $tables[$name] = $name;
+ }
+ $this->db->sql_freeresult($result);
+
+ return $tables;
+ }
+
+ /**
+ * Check if table exists
+ *
+ *
+ * @param string $table_name The table name to check for
+ * @return bool true if table exists, else false
+ */
+ function sql_table_exists($table_name)
+ {
+ $this->db->sql_return_on_error(true);
+ $result = $this->db->sql_query_limit('SELECT * FROM ' . $table_name, 1);
+ $this->db->sql_return_on_error(false);
+
+ if ($result)
+ {
+ $this->db->sql_freeresult($result);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Create SQL Table
+ *
+ * @param string $table_name The table name to create
+ * @param array $table_data Array containing table data.
+ * @return array Statements if $return_statements is true.
+ */
+ function sql_create_table($table_name, $table_data)
+ {
+ // holds the DDL for a column
+ $columns = $statements = array();
+
+ if ($this->sql_table_exists($table_name))
+ {
+ return $this->_sql_run_sql($statements);
+ }
+
+ // Begin transaction
+ $statements[] = 'begin';
+
+ // Determine if we have created a PRIMARY KEY in the earliest
+ $primary_key_gen = false;
+
+ // Determine if the table requires a sequence
+ $create_sequence = false;
+
+ // Begin table sql statement
+ switch ($this->sql_layer)
+ {
+ case 'mssql':
+ case 'mssqlnative':
+ $table_sql = 'CREATE TABLE [' . $table_name . '] (' . "\n";
+ break;
+
+ default:
+ $table_sql = 'CREATE TABLE ' . $table_name . ' (' . "\n";
+ break;
+ }
+
+ if ($this->sql_layer == 'mssql' || $this->sql_layer == 'mssqlnative')
+ {
+ if (!isset($table_data['PRIMARY_KEY']))
+ {
+ $table_data['COLUMNS']['mssqlindex'] = array('UINT', null, 'auto_increment');
+ $table_data['PRIMARY_KEY'] = 'mssqlindex';
+ }
+ }
+
+ // Iterate through the columns to create a table
+ foreach ($table_data['COLUMNS'] as $column_name => $column_data)
+ {
+ // here lies an array, filled with information compiled on the column's data
+ $prepared_column = $this->sql_prepare_column_data($table_name, $column_name, $column_data);
+
+ if (isset($prepared_column['auto_increment']) && $prepared_column['auto_increment'] && strlen($column_name) > 26) // "${column_name}_gen"
+ {
+ trigger_error("Index name '${column_name}_gen' on table '$table_name' is too long. The maximum auto increment column length is 26 characters.", E_USER_ERROR);
+ }
+
+ // here we add the definition of the new column to the list of columns
+ switch ($this->sql_layer)
+ {
+ case 'mssql':
+ case 'mssqlnative':
+ $columns[] = "\t [{$column_name}] " . $prepared_column['column_type_sql_default'];
+ break;
+
+ default:
+ $columns[] = "\t {$column_name} " . $prepared_column['column_type_sql'];
+ break;
+ }
+
+ // see if we have found a primary key set due to a column definition if we have found it, we can stop looking
+ if (!$primary_key_gen)
+ {
+ $primary_key_gen = isset($prepared_column['primary_key_set']) && $prepared_column['primary_key_set'];
+ }
+
+ // create sequence DDL based off of the existance of auto incrementing columns
+ if (!$create_sequence && isset($prepared_column['auto_increment']) && $prepared_column['auto_increment'])
+ {
+ $create_sequence = $column_name;
+ }
+ }
+
+ // this makes up all the columns in the create table statement
+ $table_sql .= implode(",\n", $columns);
+
+ // Close the table for two DBMS and add to the statements
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ case 'mssql':
+ case 'mssqlnative':
+ $table_sql .= "\n);";
+ $statements[] = $table_sql;
+ break;
+ }
+
+ // we have yet to create a primary key for this table,
+ // this means that we can add the one we really wanted instead
+ if (!$primary_key_gen)
+ {
+ // Write primary key
+ if (isset($table_data['PRIMARY_KEY']))
+ {
+ if (!is_array($table_data['PRIMARY_KEY']))
+ {
+ $table_data['PRIMARY_KEY'] = array($table_data['PRIMARY_KEY']);
+ }
+
+ switch ($this->sql_layer)
+ {
+ case 'mysql_40':
+ case 'mysql_41':
+ case 'postgres':
+ case 'sqlite':
+ $table_sql .= ",\n\t PRIMARY KEY (" . implode(', ', $table_data['PRIMARY_KEY']) . ')';
+ break;
+
+ case 'firebird':
+ case 'mssql':
+ case 'mssqlnative':
+ // We need the data here
+ $old_return_statements = $this->return_statements;
+ $this->return_statements = true;
+
+ $primary_key_stmts = $this->sql_create_primary_key($table_name, $table_data['PRIMARY_KEY']);
+ foreach ($primary_key_stmts as $pk_stmt)
+ {
+ $statements[] = $pk_stmt;
+ }
+
+ $this->return_statements = $old_return_statements;
+ break;
+
+ case 'oracle':
+ $table_sql .= ",\n\t CONSTRAINT pk_{$table_name} PRIMARY KEY (" . implode(', ', $table_data['PRIMARY_KEY']) . ')';
+ break;
+ }
+ }
+ }
+
+ // close the table
+ switch ($this->sql_layer)
+ {
+ case 'mysql_41':
+ // make sure the table is in UTF-8 mode
+ $table_sql .= "\n) CHARACTER SET `utf8` COLLATE `utf8_bin`;";
+ $statements[] = $table_sql;
+ break;
+
+ case 'mysql_40':
+ case 'sqlite':
+ $table_sql .= "\n);";
+ $statements[] = $table_sql;
+ break;
+
+ case 'postgres':
+ // do we need to add a sequence for auto incrementing columns?
+ if ($create_sequence)
+ {
+ $statements[] = "CREATE SEQUENCE {$table_name}_seq;";
+ }
+
+ $table_sql .= "\n);";
+ $statements[] = $table_sql;
+ break;
+
+ case 'oracle':
+ $table_sql .= "\n)";
+ $statements[] = $table_sql;
+
+ // do we need to add a sequence and a tigger for auto incrementing columns?
+ if ($create_sequence)
+ {
+ // create the actual sequence
+ $statements[] = "CREATE SEQUENCE {$table_name}_seq";
+
+ // the trigger is the mechanism by which we increment the counter
+ $trigger = "CREATE OR REPLACE TRIGGER t_{$table_name}\n";
+ $trigger .= "BEFORE INSERT ON {$table_name}\n";
+ $trigger .= "FOR EACH ROW WHEN (\n";
+ $trigger .= "\tnew.{$create_sequence} IS NULL OR new.{$create_sequence} = 0\n";
+ $trigger .= ")\n";
+ $trigger .= "BEGIN\n";
+ $trigger .= "\tSELECT {$table_name}_seq.nextval\n";
+ $trigger .= "\tINTO :new.{$create_sequence}\n";
+ $trigger .= "\tFROM dual;\n";
+ $trigger .= "END;";
+
+ $statements[] = $trigger;
+ }
+ break;
+
+ case 'firebird':
+ if ($create_sequence)
+ {
+ $statements[] = "CREATE GENERATOR {$table_name}_gen;";
+ $statements[] = "SET GENERATOR {$table_name}_gen TO 0;";
+
+ $trigger = "CREATE TRIGGER t_$table_name FOR $table_name\n";
+ $trigger .= "BEFORE INSERT\nAS\nBEGIN\n";
+ $trigger .= "\tNEW.{$create_sequence} = GEN_ID({$table_name}_gen, 1);\nEND;";
+ $statements[] = $trigger;
+ }
+ break;
+ }
+
+ // Write Keys
+ if (isset($table_data['KEYS']))
+ {
+ foreach ($table_data['KEYS'] as $key_name => $key_data)
+ {
+ if (!is_array($key_data[1]))
+ {
+ $key_data[1] = array($key_data[1]);
+ }
+
+ $old_return_statements = $this->return_statements;
+ $this->return_statements = true;
+
+ $key_stmts = ($key_data[0] == 'UNIQUE') ? $this->sql_create_unique_index($table_name, $key_name, $key_data[1]) : $this->sql_create_index($table_name, $key_name, $key_data[1]);
+
+ foreach ($key_stmts as $key_stmt)
+ {
+ $statements[] = $key_stmt;
+ }
+
+ $this->return_statements = $old_return_statements;
+ }
+ }
+
+ // Commit Transaction
+ $statements[] = 'commit';
+
+ return $this->_sql_run_sql($statements);
+ }
+
+ /**
+ * Handle passed database update array.
+ * Expected structure...
+ * Key being one of the following
+ * drop_tables: Drop tables
+ * add_tables: Add tables
+ * change_columns: Column changes (only type, not name)
+ * add_columns: Add columns to a table
+ * drop_keys: Dropping keys
+ * drop_columns: Removing/Dropping columns
+ * add_primary_keys: adding primary keys
+ * add_unique_index: adding an unique index
+ * add_index: adding an index (can be column:index_size if you need to provide size)
+ *
+ * The values are in this format:
+ * {TABLE NAME} => array(
+ * {COLUMN NAME} => array({COLUMN TYPE}, {DEFAULT VALUE}, {OPTIONAL VARIABLES}),
+ * {KEY/INDEX NAME} => array({COLUMN NAMES}),
+ * )
+ *
+ * For more information have a look at /develop/create_schema_files.php (only available through SVN)
+ */
+ function perform_schema_changes($schema_changes)
+ {
+ if (empty($schema_changes))
+ {
+ return;
+ }
+
+ $statements = array();
+ $sqlite = false;
+
+ // For SQLite we need to perform the schema changes in a much more different way
+ if ($this->db->sql_layer == 'sqlite' && $this->return_statements)
+ {
+ $sqlite_data = array();
+ $sqlite = true;
+ }
+
+ // Drop tables?
+ if (!empty($schema_changes['drop_tables']))
+ {
+ foreach ($schema_changes['drop_tables'] as $table)
+ {
+ // only drop table if it exists
+ if ($this->sql_table_exists($table))
+ {
+ $result = $this->sql_table_drop($table);
+ if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+ }
+
+ // Add tables?
+ if (!empty($schema_changes['add_tables']))
+ {
+ foreach ($schema_changes['add_tables'] as $table => $table_data)
+ {
+ $result = $this->sql_create_table($table, $table_data);
+ if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+
+ // Change columns?
+ if (!empty($schema_changes['change_columns']))
+ {
+ foreach ($schema_changes['change_columns'] as $table => $columns)
+ {
+ foreach ($columns as $column_name => $column_data)
+ {
+ // If the column exists we change it, else we add it ;)
+ if ($column_exists = $this->sql_column_exists($table, $column_name))
+ {
+ $result = $this->sql_column_change($table, $column_name, $column_data, true);
+ }
+ else
+ {
+ $result = $this->sql_column_add($table, $column_name, $column_data, true);
+ }
+
+ if ($sqlite)
+ {
+ if ($column_exists)
+ {
+ $sqlite_data[$table]['change_columns'][] = $result;
+ }
+ else
+ {
+ $sqlite_data[$table]['add_columns'][] = $result;
+ }
+ }
+ else if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+ }
+
+ // Add columns?
+ if (!empty($schema_changes['add_columns']))
+ {
+ foreach ($schema_changes['add_columns'] as $table => $columns)
+ {
+ foreach ($columns as $column_name => $column_data)
+ {
+ // Only add the column if it does not exist yet
+ if ($column_exists = $this->sql_column_exists($table, $column_name))
+ {
+ continue;
+ // This is commented out here because it can take tremendous time on updates
+// $result = $this->sql_column_change($table, $column_name, $column_data, true);
+ }
+ else
+ {
+ $result = $this->sql_column_add($table, $column_name, $column_data, true);
+ }
+
+ if ($sqlite)
+ {
+ if ($column_exists)
+ {
+ continue;
+// $sqlite_data[$table]['change_columns'][] = $result;
+ }
+ else
+ {
+ $sqlite_data[$table]['add_columns'][] = $result;
+ }
+ }
+ else if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+ }
+
+ // Remove keys?
+ if (!empty($schema_changes['drop_keys']))
+ {
+ foreach ($schema_changes['drop_keys'] as $table => $indexes)
+ {
+ foreach ($indexes as $index_name)
+ {
+ if (!$this->sql_index_exists($table, $index_name))
+ {
+ continue;
+ }
+
+ $result = $this->sql_index_drop($table, $index_name);
+
+ if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+ }
+
+ // Drop columns?
+ if (!empty($schema_changes['drop_columns']))
+ {
+ foreach ($schema_changes['drop_columns'] as $table => $columns)
+ {
+ foreach ($columns as $column)
+ {
+ // Only remove the column if it exists...
+ if ($this->sql_column_exists($table, $column))
+ {
+ $result = $this->sql_column_remove($table, $column, true);
+
+ if ($sqlite)
+ {
+ $sqlite_data[$table]['drop_columns'][] = $result;
+ }
+ else if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+ }
+ }
+
+ // Add primary keys?
+ if (!empty($schema_changes['add_primary_keys']))
+ {
+ foreach ($schema_changes['add_primary_keys'] as $table => $columns)
+ {
+ $result = $this->sql_create_primary_key($table, $columns, true);
+
+ if ($sqlite)
+ {
+ $sqlite_data[$table]['primary_key'] = $result;
+ }
+ else if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+
+ // Add unqiue indexes?
+ if (!empty($schema_changes['add_unique_index']))
+ {
+ foreach ($schema_changes['add_unique_index'] as $table => $index_array)
+ {
+ foreach ($index_array as $index_name => $column)
+ {
+ if ($this->sql_unique_index_exists($table, $index_name))
+ {
+ continue;
+ }
+
+ $result = $this->sql_create_unique_index($table, $index_name, $column);
+
+ if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+ }
+
+ // Add indexes?
+ if (!empty($schema_changes['add_index']))
+ {
+ foreach ($schema_changes['add_index'] as $table => $index_array)
+ {
+ foreach ($index_array as $index_name => $column)
+ {
+ if ($this->sql_index_exists($table, $index_name))
+ {
+ continue;
+ }
+
+ $result = $this->sql_create_index($table, $index_name, $column);
+
+ if ($this->return_statements)
+ {
+ $statements = array_merge($statements, $result);
+ }
+ }
+ }
+ }
+
+ if ($sqlite)
+ {
+ foreach ($sqlite_data as $table_name => $sql_schema_changes)
+ {
+ // Create temporary table with original data
+ $statements[] = 'begin';
+
+ $sql = "SELECT sql
+ FROM sqlite_master
+ WHERE type = 'table'
+ AND name = '{$table_name}'
+ ORDER BY type DESC, name;";
+ $result = $this->db->sql_query($sql);
+
+ if (!$result)
+ {
+ continue;
+ }
+
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ // Create a backup table and populate it, destroy the existing one
+ $statements[] = preg_replace('#CREATE\s+TABLE\s+"?' . $table_name . '"?#i', 'CREATE TEMPORARY TABLE ' . $table_name . '_temp', $row['sql']);
+ $statements[] = 'INSERT INTO ' . $table_name . '_temp SELECT * FROM ' . $table_name;
+ $statements[] = 'DROP TABLE ' . $table_name;
+
+ // Get the columns...
+ preg_match('#\((.*)\)#s', $row['sql'], $matches);
+
+ $plain_table_cols = trim($matches[1]);
+ $new_table_cols = preg_split('/,(?![\s\w]+\))/m', $plain_table_cols);
+ $column_list = array();
+
+ foreach ($new_table_cols as $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ if ($entities[0] == 'PRIMARY')
+ {
+ continue;
+ }
+ $column_list[] = $entities[0];
+ }
+
+ // note down the primary key notation because sqlite only supports adding it to the end for the new table
+ $primary_key = false;
+ $_new_cols = array();
+
+ foreach ($new_table_cols as $key => $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ if ($entities[0] == 'PRIMARY')
+ {
+ $primary_key = $declaration;
+ continue;
+ }
+ $_new_cols[] = $declaration;
+ }
+
+ $new_table_cols = $_new_cols;
+
+ // First of all... change columns
+ if (!empty($sql_schema_changes['change_columns']))
+ {
+ foreach ($sql_schema_changes['change_columns'] as $column_sql)
+ {
+ foreach ($new_table_cols as $key => $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ if (strpos($column_sql, $entities[0] . ' ') === 0)
+ {
+ $new_table_cols[$key] = $column_sql;
+ }
+ }
+ }
+ }
+
+ if (!empty($sql_schema_changes['add_columns']))
+ {
+ foreach ($sql_schema_changes['add_columns'] as $column_sql)
+ {
+ $new_table_cols[] = $column_sql;
+ }
+ }
+
+ // Now drop them...
+ if (!empty($sql_schema_changes['drop_columns']))
+ {
+ foreach ($sql_schema_changes['drop_columns'] as $column_name)
+ {
+ // Remove from column list...
+ $new_column_list = array();
+ foreach ($column_list as $key => $value)
+ {
+ if ($value === $column_name)
+ {
+ continue;
+ }
+
+ $new_column_list[] = $value;
+ }
+
+ $column_list = $new_column_list;
+
+ // Remove from table...
+ $_new_cols = array();
+ foreach ($new_table_cols as $key => $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ if (strpos($column_name . ' ', $entities[0] . ' ') === 0)
+ {
+ continue;
+ }
+ $_new_cols[] = $declaration;
+ }
+ $new_table_cols = $_new_cols;
+ }
+ }
+
+ // Primary key...
+ if (!empty($sql_schema_changes['primary_key']))
+ {
+ $new_table_cols[] = 'PRIMARY KEY (' . implode(', ', $sql_schema_changes['primary_key']) . ')';
+ }
+ // Add a new one or the old primary key
+ else if ($primary_key !== false)
+ {
+ $new_table_cols[] = $primary_key;
+ }
+
+ $columns = implode(',', $column_list);
+
+ // create a new table and fill it up. destroy the temp one
+ $statements[] = 'CREATE TABLE ' . $table_name . ' (' . implode(',', $new_table_cols) . ');';
+ $statements[] = 'INSERT INTO ' . $table_name . ' (' . $columns . ') SELECT ' . $columns . ' FROM ' . $table_name . '_temp;';
+ $statements[] = 'DROP TABLE ' . $table_name . '_temp';
+
+ $statements[] = 'commit';
+ }
+ }
+
+ if ($this->return_statements)
+ {
+ return $statements;
+ }
+ }
+
+ /**
+ * Gets a list of columns of a table.
+ *
+ * @param string $table Table name
+ *
+ * @return array Array of column names (all lower case)
+ */
+ function sql_list_columns($table)
+ {
+ $columns = array();
+
+ switch ($this->sql_layer)
+ {
+ case 'mysql_40':
+ case 'mysql_41':
+ $sql = "SHOW COLUMNS FROM $table";
+ break;
+
+ // PostgreSQL has a way of doing this in a much simpler way but would
+ // not allow us to support all versions of PostgreSQL
+ case 'postgres':
+ $sql = "SELECT a.attname
+ FROM pg_class c, pg_attribute a
+ WHERE c.relname = '{$table}'
+ AND a.attnum > 0
+ AND a.attrelid = c.oid";
+ break;
+
+ // same deal with PostgreSQL, we must perform more complex operations than
+ // we technically could
+ case 'mssql':
+ case 'mssqlnative':
+ $sql = "SELECT c.name
+ FROM syscolumns c
+ LEFT JOIN sysobjects o ON c.id = o.id
+ WHERE o.name = '{$table}'";
+ break;
+
+ case 'oracle':
+ $sql = "SELECT column_name
+ FROM user_tab_columns
+ WHERE LOWER(table_name) = '" . strtolower($table) . "'";
+ break;
+
+ case 'firebird':
+ $sql = "SELECT RDB\$FIELD_NAME as FNAME
+ FROM RDB\$RELATION_FIELDS
+ WHERE RDB\$RELATION_NAME = '" . strtoupper($table) . "'";
+ break;
+
+ case 'sqlite':
+ $sql = "SELECT sql
+ FROM sqlite_master
+ WHERE type = 'table'
+ AND name = '{$table}'";
+
+ $result = $this->db->sql_query($sql);
+
+ if (!$result)
+ {
+ return false;
+ }
+
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ preg_match('#\((.*)\)#s', $row['sql'], $matches);
+
+ $cols = trim($matches[1]);
+ $col_array = preg_split('/,(?![\s\w]+\))/m', $cols);
+
+ foreach ($col_array as $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ if ($entities[0] == 'PRIMARY')
+ {
+ continue;
+ }
+
+ $column = strtolower($entities[0]);
+ $columns[$column] = $column;
+ }
+
+ return $columns;
+ break;
+ }
+
+ $result = $this->db->sql_query($sql);
+
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ $column = strtolower(current($row));
+ $columns[$column] = $column;
+ }
+ $this->db->sql_freeresult($result);
+
+ return $columns;
+ }
+
+ /**
+ * Check whether a specified column exist in a table
+ *
+ * @param string $table Table to check
+ * @param string $column_name Column to check
+ *
+ * @return bool True if column exists, false otherwise
+ */
+ function sql_column_exists($table, $column_name)
+ {
+ $columns = $this->sql_list_columns($table);
+
+ return isset($columns[$column_name]);
+ }
+
+ /**
+ * Check if a specified index exists in table. Does not return PRIMARY KEY and UNIQUE indexes.
+ *
+ * @param string $table_name Table to check the index at
+ * @param string $index_name The index name to check
+ *
+ * @return bool True if index exists, else false
+ */
+ function sql_index_exists($table_name, $index_name)
+ {
+ if ($this->sql_layer == 'mssql' || $this->sql_layer == 'mssqlnative')
+ {
+ $sql = "EXEC sp_statistics '$table_name'";
+ $result = $this->db->sql_query($sql);
+
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ if ($row['TYPE'] == 3)
+ {
+ if (strtolower($row['INDEX_NAME']) == strtolower($index_name))
+ {
+ $this->db->sql_freeresult($result);
+ return true;
+ }
+ }
+ }
+ $this->db->sql_freeresult($result);
+
+ return false;
+ }
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ $sql = "SELECT LOWER(RDB\$INDEX_NAME) as index_name
+ FROM RDB\$INDICES
+ WHERE RDB\$RELATION_NAME = '" . strtoupper($table_name) . "'
+ AND RDB\$UNIQUE_FLAG IS NULL
+ AND RDB\$FOREIGN_KEY IS NULL";
+ $col = 'index_name';
+ break;
+
+ case 'postgres':
+ $sql = "SELECT ic.relname as index_name
+ FROM pg_class bc, pg_class ic, pg_index i
+ WHERE (bc.oid = i.indrelid)
+ AND (ic.oid = i.indexrelid)
+ AND (bc.relname = '" . $table_name . "')
+ AND (i.indisunique != 't')
+ AND (i.indisprimary != 't')";
+ $col = 'index_name';
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $sql = 'SHOW KEYS
+ FROM ' . $table_name;
+ $col = 'Key_name';
+ break;
+
+ case 'oracle':
+ $sql = "SELECT index_name
+ FROM user_indexes
+ WHERE table_name = '" . strtoupper($table_name) . "'
+ AND generated = 'N'
+ AND uniqueness = 'NONUNIQUE'";
+ $col = 'index_name';
+ break;
+
+ case 'sqlite':
+ $sql = "PRAGMA index_list('" . $table_name . "');";
+ $col = 'name';
+ break;
+ }
+
+ $result = $this->db->sql_query($sql);
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ if (($this->sql_layer == 'mysql_40' || $this->sql_layer == 'mysql_41') && !$row['Non_unique'])
+ {
+ continue;
+ }
+
+ // These DBMS prefix index name with the table name
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ case 'oracle':
+ case 'postgres':
+ case 'sqlite':
+ $row[$col] = substr($row[$col], strlen($table_name) + 1);
+ break;
+ }
+
+ if (strtolower($row[$col]) == strtolower($index_name))
+ {
+ $this->db->sql_freeresult($result);
+ return true;
+ }
+ }
+ $this->db->sql_freeresult($result);
+
+ return false;
+ }
+
+ /**
+ * Check if a specified index exists in table. Does not return PRIMARY KEY and UNIQUE indexes.
+ *
+ * @param string $table_name Table to check the index at
+ * @param string $index_name The index name to check
+ *
+ * @return bool True if index exists, else false
+ */
+ function sql_unique_index_exists($table_name, $index_name)
+ {
+ if ($this->sql_layer == 'mssql' || $this->sql_layer == 'mssqlnative')
+ {
+ $sql = "EXEC sp_statistics '$table_name'";
+ $result = $this->db->sql_query($sql);
+
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ // Usually NON_UNIQUE is the column we want to check, but we allow for both
+ if ($row['TYPE'] == 3)
+ {
+ if (strtolower($row['INDEX_NAME']) == strtolower($index_name))
+ {
+ $this->db->sql_freeresult($result);
+ return true;
+ }
+ }
+ }
+ $this->db->sql_freeresult($result);
+ return false;
+ }
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ $sql = "SELECT LOWER(RDB\$INDEX_NAME) as index_name
+ FROM RDB\$INDICES
+ WHERE RDB\$RELATION_NAME = '" . strtoupper($table_name) . "'
+ AND RDB\$UNIQUE_FLAG IS NOT NULL
+ AND RDB\$FOREIGN_KEY IS NULL";
+ $col = 'index_name';
+ break;
+
+ case 'postgres':
+ $sql = "SELECT ic.relname as index_name, i.indisunique
+ FROM pg_class bc, pg_class ic, pg_index i
+ WHERE (bc.oid = i.indrelid)
+ AND (ic.oid = i.indexrelid)
+ AND (bc.relname = '" . $table_name . "')
+ AND (i.indisprimary != 't')";
+ $col = 'index_name';
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $sql = 'SHOW KEYS
+ FROM ' . $table_name;
+ $col = 'Key_name';
+ break;
+
+ case 'oracle':
+ $sql = "SELECT index_name, table_owner
+ FROM user_indexes
+ WHERE table_name = '" . strtoupper($table_name) . "'
+ AND generated = 'N'
+ AND uniqueness = 'UNIQUE'";
+ $col = 'index_name';
+ break;
+
+ case 'sqlite':
+ $sql = "PRAGMA index_list('" . $table_name . "');";
+ $col = 'name';
+ break;
+ }
+
+ $result = $this->db->sql_query($sql);
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ if (($this->sql_layer == 'mysql_40' || $this->sql_layer == 'mysql_41') && ($row['Non_unique'] || $row[$col] == 'PRIMARY'))
+ {
+ continue;
+ }
+
+ if ($this->sql_layer == 'sqlite' && !$row['unique'])
+ {
+ continue;
+ }
+
+ if ($this->sql_layer == 'postgres' && $row['indisunique'] != 't')
+ {
+ continue;
+ }
+
+ // These DBMS prefix index name with the table name
+ switch ($this->sql_layer)
+ {
+ case 'oracle':
+ // Two cases here... prefixed with U_[table_owner] and not prefixed with table_name
+ if (strpos($row[$col], 'U_') === 0)
+ {
+ $row[$col] = substr($row[$col], strlen('U_' . $row['table_owner']) + 1);
+ }
+ else if (strpos($row[$col], strtoupper($table_name)) === 0)
+ {
+ $row[$col] = substr($row[$col], strlen($table_name) + 1);
+ }
+ break;
+
+ case 'firebird':
+ case 'postgres':
+ case 'sqlite':
+ $row[$col] = substr($row[$col], strlen($table_name) + 1);
+ break;
+ }
+
+ if (strtolower($row[$col]) == strtolower($index_name))
+ {
+ $this->db->sql_freeresult($result);
+ return true;
+ }
+ }
+ $this->db->sql_freeresult($result);
+
+ return false;
+ }
+
+ /**
+ * Private method for performing sql statements (either execute them or return them)
+ * @access private
+ */
+ function _sql_run_sql($statements)
+ {
+ if ($this->return_statements)
+ {
+ return $statements;
+ }
+
+ // We could add error handling here...
+ foreach ($statements as $sql)
+ {
+ if ($sql === 'begin')
+ {
+ $this->db->sql_transaction('begin');
+ }
+ else if ($sql === 'commit')
+ {
+ $this->db->sql_transaction('commit');
+ }
+ else
+ {
+ $this->db->sql_query($sql);
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Function to prepare some column information for better usage
+ * @access private
+ */
+ function sql_prepare_column_data($table_name, $column_name, $column_data)
+ {
+ if (strlen($column_name) > 30)
+ {
+ trigger_error("Column name '$column_name' on table '$table_name' is too long. The maximum is 30 characters.", E_USER_ERROR);
+ }
+
+ // Get type
+ list($column_type, $orig_column_type) = $this->get_column_type($column_data[0]);
+
+ // Adjust default value if db-dependent specified
+ if (is_array($column_data[1]))
+ {
+ $column_data[1] = (isset($column_data[1][$this->sql_layer])) ? $column_data[1][$this->sql_layer] : $column_data[1]['default'];
+ }
+
+ $sql = '';
+
+ $return_array = array();
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ $sql .= " {$column_type} ";
+ $return_array['column_type_sql_type'] = " {$column_type} ";
+
+ if (!is_null($column_data[1]))
+ {
+ $sql .= 'DEFAULT ' . ((is_numeric($column_data[1])) ? $column_data[1] : "'{$column_data[1]}'") . ' ';
+ $return_array['column_type_sql_default'] = ((is_numeric($column_data[1])) ? $column_data[1] : "'{$column_data[1]}'") . ' ';
+ }
+
+ $sql .= 'NOT NULL';
+
+ // This is a UNICODE column and thus should be given it's fair share
+ if (preg_match('/^X?STEXT_UNI|VCHAR_(CI|UNI:?)/', $column_data[0]))
+ {
+ $sql .= ' COLLATE UNICODE';
+ }
+
+ $return_array['auto_increment'] = false;
+ if (isset($column_data[2]) && $column_data[2] == 'auto_increment')
+ {
+ $return_array['auto_increment'] = true;
+ }
+
+ break;
+
+ case 'mssql':
+ case 'mssqlnative':
+ $sql .= " {$column_type} ";
+ $sql_default = " {$column_type} ";
+
+ // For adding columns we need the default definition
+ if (!is_null($column_data[1]))
+ {
+ // For hexadecimal values do not use single quotes
+ if (strpos($column_data[1], '0x') === 0)
+ {
+ $return_array['default'] = 'DEFAULT (' . $column_data[1] . ') ';
+ $sql_default .= $return_array['default'];
+ }
+ else
+ {
+ $return_array['default'] = 'DEFAULT (' . ((is_numeric($column_data[1])) ? $column_data[1] : "'{$column_data[1]}'") . ') ';
+ $sql_default .= $return_array['default'];
+ }
+ }
+
+ if (isset($column_data[2]) && $column_data[2] == 'auto_increment')
+ {
+// $sql .= 'IDENTITY (1, 1) ';
+ $sql_default .= 'IDENTITY (1, 1) ';
+ }
+
+ $return_array['textimage'] = $column_type === '[text]';
+
+ $sql .= 'NOT NULL';
+ $sql_default .= 'NOT NULL';
+
+ $return_array['column_type_sql_default'] = $sql_default;
+
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $sql .= " {$column_type} ";
+
+ // For hexadecimal values do not use single quotes
+ if (!is_null($column_data[1]) && substr($column_type, -4) !== 'text' && substr($column_type, -4) !== 'blob')
+ {
+ $sql .= (strpos($column_data[1], '0x') === 0) ? "DEFAULT {$column_data[1]} " : "DEFAULT '{$column_data[1]}' ";
+ }
+ $sql .= 'NOT NULL';
+
+ if (isset($column_data[2]))
+ {
+ if ($column_data[2] == 'auto_increment')
+ {
+ $sql .= ' auto_increment';
+ }
+ else if ($this->sql_layer === 'mysql_41' && $column_data[2] == 'true_sort')
+ {
+ $sql .= ' COLLATE utf8_unicode_ci';
+ }
+ }
+
+ break;
+
+ case 'oracle':
+ $sql .= " {$column_type} ";
+ $sql .= (!is_null($column_data[1])) ? "DEFAULT '{$column_data[1]}' " : '';
+
+ // In Oracle empty strings ('') are treated as NULL.
+ // Therefore in oracle we allow NULL's for all DEFAULT '' entries
+ // Oracle does not like setting NOT NULL on a column that is already NOT NULL (this happens only on number fields)
+ if (!preg_match('/number/i', $column_type))
+ {
+ $sql .= ($column_data[1] === '') ? '' : 'NOT NULL';
+ }
+
+ $return_array['auto_increment'] = false;
+ if (isset($column_data[2]) && $column_data[2] == 'auto_increment')
+ {
+ $return_array['auto_increment'] = true;
+ }
+
+ break;
+
+ case 'postgres':
+ $return_array['column_type'] = $column_type;
+
+ $sql .= " {$column_type} ";
+
+ $return_array['auto_increment'] = false;
+ if (isset($column_data[2]) && $column_data[2] == 'auto_increment')
+ {
+ $default_val = "nextval('{$table_name}_seq')";
+ $return_array['auto_increment'] = true;
+ }
+ else if (!is_null($column_data[1]))
+ {
+ $default_val = "'" . $column_data[1] . "'";
+ $return_array['null'] = 'NOT NULL';
+ $sql .= 'NOT NULL ';
+ }
+
+ $return_array['default'] = $default_val;
+
+ $sql .= "DEFAULT {$default_val}";
+
+ // Unsigned? Then add a CHECK contraint
+ if (in_array($orig_column_type, $this->unsigned_types))
+ {
+ $return_array['constraint'] = "CHECK ({$column_name} >= 0)";
+ $sql .= " CHECK ({$column_name} >= 0)";
+ }
+
+ break;
+
+ case 'sqlite':
+ $return_array['primary_key_set'] = false;
+ if (isset($column_data[2]) && $column_data[2] == 'auto_increment')
+ {
+ $sql .= ' INTEGER PRIMARY KEY';
+ $return_array['primary_key_set'] = true;
+ }
+ else
+ {
+ $sql .= ' ' . $column_type;
+ }
+
+ $sql .= ' NOT NULL ';
+ $sql .= (!is_null($column_data[1])) ? "DEFAULT '{$column_data[1]}'" : '';
+
+ break;
+ }
+
+ $return_array['column_type_sql'] = $sql;
+
+ return $return_array;
+ }
+
+ /**
+ * Get the column's database type from the type map
+ *
+ * @param string $column_map_type
+ * @return array column type for this database
+ * and map type without length
+ */
+ function get_column_type($column_map_type)
+ {
+ if (strpos($column_map_type, ':') !== false)
+ {
+ list($orig_column_type, $column_length) = explode(':', $column_map_type);
+ if (!is_array($this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']))
+ {
+ $column_type = sprintf($this->dbms_type_map[$this->sql_layer][$orig_column_type . ':'], $column_length);
+ }
+ else
+ {
+ if (isset($this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']['rule']))
+ {
+ switch ($this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']['rule'][0])
+ {
+ case 'div':
+ $column_length /= $this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']['rule'][1];
+ $column_length = ceil($column_length);
+ $column_type = sprintf($this->dbms_type_map[$this->sql_layer][$orig_column_type . ':'][0], $column_length);
+ break;
+ }
+ }
+
+ if (isset($this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']['limit']))
+ {
+ switch ($this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']['limit'][0])
+ {
+ case 'mult':
+ $column_length *= $this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']['limit'][1];
+ if ($column_length > $this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']['limit'][2])
+ {
+ $column_type = $this->dbms_type_map[$this->sql_layer][$orig_column_type . ':']['limit'][3];
+ }
+ else
+ {
+ $column_type = sprintf($this->dbms_type_map[$this->sql_layer][$orig_column_type . ':'][0], $column_length);
+ }
+ break;
+ }
+ }
+ }
+ $orig_column_type .= ':';
+ }
+ else
+ {
+ $orig_column_type = $column_map_type;
+ $column_type = $this->dbms_type_map[$this->sql_layer][$column_map_type];
+ }
+
+ return array($column_type, $orig_column_type);
+ }
+
+ /**
+ * Add new column
+ */
+ function sql_column_add($table_name, $column_name, $column_data, $inline = false)
+ {
+ $column_data = $this->sql_prepare_column_data($table_name, $column_name, $column_data);
+ $statements = array();
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ // Does not support AFTER statement, only POSITION (and there you need the column position)
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD "' . strtoupper($column_name) . '" ' . $column_data['column_type_sql'];
+ break;
+
+ case 'mssql':
+ case 'mssqlnative':
+ // Does not support AFTER, only through temporary table
+ $statements[] = 'ALTER TABLE [' . $table_name . '] ADD [' . $column_name . '] ' . $column_data['column_type_sql_default'];
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $after = (!empty($column_data['after'])) ? ' AFTER ' . $column_data['after'] : '';
+ $statements[] = 'ALTER TABLE `' . $table_name . '` ADD COLUMN `' . $column_name . '` ' . $column_data['column_type_sql'] . $after;
+ break;
+
+ case 'oracle':
+ // Does not support AFTER, only through temporary table
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD ' . $column_name . ' ' . $column_data['column_type_sql'];
+ break;
+
+ case 'postgres':
+ // Does not support AFTER, only through temporary table
+ if (version_compare($this->db->sql_server_info(true), '8.0', '>='))
+ {
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD COLUMN "' . $column_name . '" ' . $column_data['column_type_sql'];
+ }
+ else
+ {
+ // old versions cannot add columns with default and null information
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD COLUMN "' . $column_name . '" ' . $column_data['column_type'] . ' ' . $column_data['constraint'];
+
+ if (isset($column_data['null']))
+ {
+ if ($column_data['null'] == 'NOT NULL')
+ {
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ALTER COLUMN ' . $column_name . ' SET NOT NULL';
+ }
+ }
+
+ if (isset($column_data['default']))
+ {
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ALTER COLUMN ' . $column_name . ' SET DEFAULT ' . $column_data['default'];
+ }
+ }
+
+ break;
+
+ case 'sqlite':
+
+ if ($inline && $this->return_statements)
+ {
+ return $column_name . ' ' . $column_data['column_type_sql'];
+ }
+
+ if (version_compare(sqlite_libversion(), '3.0') == -1)
+ {
+ $sql = "SELECT sql
+ FROM sqlite_master
+ WHERE type = 'table'
+ AND name = '{$table_name}'
+ ORDER BY type DESC, name;";
+ $result = $this->db->sql_query($sql);
+
+ if (!$result)
+ {
+ break;
+ }
+
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ $statements[] = 'begin';
+
+ // Create a backup table and populate it, destroy the existing one
+ $statements[] = preg_replace('#CREATE\s+TABLE\s+"?' . $table_name . '"?#i', 'CREATE TEMPORARY TABLE ' . $table_name . '_temp', $row['sql']);
+ $statements[] = 'INSERT INTO ' . $table_name . '_temp SELECT * FROM ' . $table_name;
+ $statements[] = 'DROP TABLE ' . $table_name;
+
+ preg_match('#\((.*)\)#s', $row['sql'], $matches);
+
+ $new_table_cols = trim($matches[1]);
+ $old_table_cols = preg_split('/,(?![\s\w]+\))/m', $new_table_cols);
+ $column_list = array();
+
+ foreach ($old_table_cols as $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ if ($entities[0] == 'PRIMARY')
+ {
+ continue;
+ }
+ $column_list[] = $entities[0];
+ }
+
+ $columns = implode(',', $column_list);
+
+ $new_table_cols = $column_name . ' ' . $column_data['column_type_sql'] . ',' . $new_table_cols;
+
+ // create a new table and fill it up. destroy the temp one
+ $statements[] = 'CREATE TABLE ' . $table_name . ' (' . $new_table_cols . ');';
+ $statements[] = 'INSERT INTO ' . $table_name . ' (' . $columns . ') SELECT ' . $columns . ' FROM ' . $table_name . '_temp;';
+ $statements[] = 'DROP TABLE ' . $table_name . '_temp';
+
+ $statements[] = 'commit';
+ }
+ else
+ {
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD ' . $column_name . ' [' . $column_data['column_type_sql'] . ']';
+ }
+ break;
+ }
+
+ return $this->_sql_run_sql($statements);
+ }
+
+ /**
+ * Drop column
+ */
+ function sql_column_remove($table_name, $column_name, $inline = false)
+ {
+ $statements = array();
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ $statements[] = 'ALTER TABLE ' . $table_name . ' DROP "' . strtoupper($column_name) . '"';
+ break;
+
+ case 'mssql':
+ case 'mssqlnative':
+ $sql = "SELECT CAST(SERVERPROPERTY('productversion') AS VARCHAR(25)) AS mssql_version";
+ $result = $this->db->sql_query($sql);
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ // Remove default constraints
+ if ($row['mssql_version'][0] == '8') // SQL Server 2000
+ {
+ // http://msdn.microsoft.com/en-us/library/aa175912%28v=sql.80%29.aspx
+ // Deprecated in SQL Server 2005
+ $statements[] = "DECLARE @drop_default_name VARCHAR(100), @cmd VARCHAR(1000)
+ SET @drop_default_name =
+ (SELECT so.name FROM sysobjects so
+ JOIN sysconstraints sc ON so.id = sc.constid
+ WHERE object_name(so.parent_obj) = '{$table_name}'
+ AND so.xtype = 'D'
+ AND sc.colid = (SELECT colid FROM syscolumns
+ WHERE id = object_id('{$table_name}')
+ AND name = '{$column_name}'))
+ IF @drop_default_name <> ''
+ BEGIN
+ SET @cmd = 'ALTER TABLE [{$table_name}] DROP CONSTRAINT [' + @drop_default_name + ']'
+ EXEC(@cmd)
+ END";
+ }
+ else
+ {
+ $sql = "SELECT dobj.name AS def_name
+ FROM sys.columns col
+ LEFT OUTER JOIN sys.objects dobj ON (dobj.object_id = col.default_object_id AND dobj.type = 'D')
+ WHERE col.object_id = object_id('{$table_name}')
+ AND col.name = '{$column_name}'
+ AND dobj.name IS NOT NULL";
+ $result = $this->db->sql_query($sql);
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ if ($row)
+ {
+ $statements[] = 'ALTER TABLE [' . $table_name . '] DROP CONSTRAINT [' . $row['def_name'] . ']';
+ }
+ }
+
+ $statements[] = 'ALTER TABLE [' . $table_name . '] DROP COLUMN [' . $column_name . ']';
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $statements[] = 'ALTER TABLE `' . $table_name . '` DROP COLUMN `' . $column_name . '`';
+ break;
+
+ case 'oracle':
+ $statements[] = 'ALTER TABLE ' . $table_name . ' DROP COLUMN ' . $column_name;
+ break;
+
+ case 'postgres':
+ $statements[] = 'ALTER TABLE ' . $table_name . ' DROP COLUMN "' . $column_name . '"';
+ break;
+
+ case 'sqlite':
+
+ if ($inline && $this->return_statements)
+ {
+ return $column_name;
+ }
+
+ if (version_compare(sqlite_libversion(), '3.0') == -1)
+ {
+ $sql = "SELECT sql
+ FROM sqlite_master
+ WHERE type = 'table'
+ AND name = '{$table_name}'
+ ORDER BY type DESC, name;";
+ $result = $this->db->sql_query($sql);
+
+ if (!$result)
+ {
+ break;
+ }
+
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ $statements[] = 'begin';
+
+ // Create a backup table and populate it, destroy the existing one
+ $statements[] = preg_replace('#CREATE\s+TABLE\s+"?' . $table_name . '"?#i', 'CREATE TEMPORARY TABLE ' . $table_name . '_temp', $row['sql']);
+ $statements[] = 'INSERT INTO ' . $table_name . '_temp SELECT * FROM ' . $table_name;
+ $statements[] = 'DROP TABLE ' . $table_name;
+
+ preg_match('#\((.*)\)#s', $row['sql'], $matches);
+
+ $new_table_cols = trim($matches[1]);
+ $old_table_cols = preg_split('/,(?![\s\w]+\))/m', $new_table_cols);
+ $column_list = array();
+
+ foreach ($old_table_cols as $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ if ($entities[0] == 'PRIMARY' || $entities[0] === $column_name)
+ {
+ continue;
+ }
+ $column_list[] = $entities[0];
+ }
+
+ $columns = implode(',', $column_list);
+
+ $new_table_cols = preg_replace('/' . $column_name . '[^,]+(?:,|$)/m', '', $new_table_cols);
+
+ // create a new table and fill it up. destroy the temp one
+ $statements[] = 'CREATE TABLE ' . $table_name . ' (' . $new_table_cols . ');';
+ $statements[] = 'INSERT INTO ' . $table_name . ' (' . $columns . ') SELECT ' . $columns . ' FROM ' . $table_name . '_temp;';
+ $statements[] = 'DROP TABLE ' . $table_name . '_temp';
+
+ $statements[] = 'commit';
+ }
+ else
+ {
+ $statements[] = 'ALTER TABLE ' . $table_name . ' DROP COLUMN ' . $column_name;
+ }
+ break;
+ }
+
+ return $this->_sql_run_sql($statements);
+ }
+
+ /**
+ * Drop Index
+ */
+ function sql_index_drop($table_name, $index_name)
+ {
+ $statements = array();
+
+ switch ($this->sql_layer)
+ {
+ case 'mssql':
+ case 'mssqlnative':
+ $statements[] = 'DROP INDEX ' . $table_name . '.' . $index_name;
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $statements[] = 'DROP INDEX ' . $index_name . ' ON ' . $table_name;
+ break;
+
+ case 'firebird':
+ case 'oracle':
+ case 'postgres':
+ case 'sqlite':
+ $statements[] = 'DROP INDEX ' . $table_name . '_' . $index_name;
+ break;
+ }
+
+ return $this->_sql_run_sql($statements);
+ }
+
+ /**
+ * Drop Table
+ */
+ function sql_table_drop($table_name)
+ {
+ $statements = array();
+
+ if (!$this->sql_table_exists($table_name))
+ {
+ return $this->_sql_run_sql($statements);
+ }
+
+ // the most basic operation, get rid of the table
+ $statements[] = 'DROP TABLE ' . $table_name;
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ $sql = 'SELECT RDB$GENERATOR_NAME as gen
+ FROM RDB$GENERATORS
+ WHERE RDB$SYSTEM_FLAG = 0
+ AND RDB$GENERATOR_NAME = \'' . strtoupper($table_name) . "_GEN'";
+ $result = $this->db->sql_query($sql);
+
+ // does a generator exist?
+ if ($row = $this->db->sql_fetchrow($result))
+ {
+ $statements[] = "DROP GENERATOR {$row['gen']};";
+ }
+ $this->db->sql_freeresult($result);
+ break;
+
+ case 'oracle':
+ $sql = 'SELECT A.REFERENCED_NAME
+ FROM USER_DEPENDENCIES A, USER_TRIGGERS B
+ WHERE A.REFERENCED_TYPE = \'SEQUENCE\'
+ AND A.NAME = B.TRIGGER_NAME
+ AND B.TABLE_NAME = \'' . strtoupper($table_name) . "'";
+ $result = $this->db->sql_query($sql);
+
+ // any sequences ref'd to this table's triggers?
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ $statements[] = "DROP SEQUENCE {$row['referenced_name']}";
+ }
+ $this->db->sql_freeresult($result);
+ break;
+
+ case 'postgres':
+ // PGSQL does not "tightly" bind sequences and tables, we must guess...
+ $sql = "SELECT relname
+ FROM pg_class
+ WHERE relkind = 'S'
+ AND relname = '{$table_name}_seq'";
+ $result = $this->db->sql_query($sql);
+
+ // We don't even care about storing the results. We already know the answer if we get rows back.
+ if ($this->db->sql_fetchrow($result))
+ {
+ $statements[] = "DROP SEQUENCE {$table_name}_seq;\n";
+ }
+ $this->db->sql_freeresult($result);
+ break;
+ }
+
+ return $this->_sql_run_sql($statements);
+ }
+
+ /**
+ * Add primary key
+ */
+ function sql_create_primary_key($table_name, $column, $inline = false)
+ {
+ $statements = array();
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ case 'postgres':
+ case 'mysql_40':
+ case 'mysql_41':
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD PRIMARY KEY (' . implode(', ', $column) . ')';
+ break;
+
+ case 'mssql':
+ case 'mssqlnative':
+ $sql = "ALTER TABLE [{$table_name}] WITH NOCHECK ADD ";
+ $sql .= "CONSTRAINT [PK_{$table_name}] PRIMARY KEY CLUSTERED (";
+ $sql .= '[' . implode("],\n\t\t[", $column) . ']';
+ $sql .= ')';
+
+ $statements[] = $sql;
+ break;
+
+ case 'oracle':
+ $statements[] = 'ALTER TABLE ' . $table_name . 'add CONSTRAINT pk_' . $table_name . ' PRIMARY KEY (' . implode(', ', $column) . ')';
+ break;
+
+ case 'sqlite':
+
+ if ($inline && $this->return_statements)
+ {
+ return $column;
+ }
+
+ $sql = "SELECT sql
+ FROM sqlite_master
+ WHERE type = 'table'
+ AND name = '{$table_name}'
+ ORDER BY type DESC, name;";
+ $result = $this->db->sql_query($sql);
+
+ if (!$result)
+ {
+ break;
+ }
+
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ $statements[] = 'begin';
+
+ // Create a backup table and populate it, destroy the existing one
+ $statements[] = preg_replace('#CREATE\s+TABLE\s+"?' . $table_name . '"?#i', 'CREATE TEMPORARY TABLE ' . $table_name . '_temp', $row['sql']);
+ $statements[] = 'INSERT INTO ' . $table_name . '_temp SELECT * FROM ' . $table_name;
+ $statements[] = 'DROP TABLE ' . $table_name;
+
+ preg_match('#\((.*)\)#s', $row['sql'], $matches);
+
+ $new_table_cols = trim($matches[1]);
+ $old_table_cols = preg_split('/,(?![\s\w]+\))/m', $new_table_cols);
+ $column_list = array();
+
+ foreach ($old_table_cols as $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ if ($entities[0] == 'PRIMARY')
+ {
+ continue;
+ }
+ $column_list[] = $entities[0];
+ }
+
+ $columns = implode(',', $column_list);
+
+ // create a new table and fill it up. destroy the temp one
+ $statements[] = 'CREATE TABLE ' . $table_name . ' (' . $new_table_cols . ', PRIMARY KEY (' . implode(', ', $column) . '));';
+ $statements[] = 'INSERT INTO ' . $table_name . ' (' . $columns . ') SELECT ' . $columns . ' FROM ' . $table_name . '_temp;';
+ $statements[] = 'DROP TABLE ' . $table_name . '_temp';
+
+ $statements[] = 'commit';
+ break;
+ }
+
+ return $this->_sql_run_sql($statements);
+ }
+
+ /**
+ * Add unique index
+ */
+ function sql_create_unique_index($table_name, $index_name, $column)
+ {
+ $statements = array();
+
+ $table_prefix = substr(CONFIG_TABLE, 0, -6); // strlen(config)
+ if (strlen($table_name . $index_name) - strlen($table_prefix) > 24)
+ {
+ $max_length = strlen($table_prefix) + 24;
+ trigger_error("Index name '{$table_name}_$index_name' on table '$table_name' is too long. The maximum is $max_length characters.", E_USER_ERROR);
+ }
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ case 'postgres':
+ case 'oracle':
+ case 'sqlite':
+ $statements[] = 'CREATE UNIQUE INDEX ' . $table_name . '_' . $index_name . ' ON ' . $table_name . '(' . implode(', ', $column) . ')';
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD UNIQUE INDEX ' . $index_name . '(' . implode(', ', $column) . ')';
+ break;
+
+ case 'mssql':
+ case 'mssqlnative':
+ $statements[] = 'CREATE UNIQUE INDEX [' . $index_name . '] ON [' . $table_name . ']([' . implode('], [', $column) . '])';
+ break;
+ }
+
+ return $this->_sql_run_sql($statements);
+ }
+
+ /**
+ * Add index
+ */
+ function sql_create_index($table_name, $index_name, $column)
+ {
+ $statements = array();
+
+ $table_prefix = substr(CONFIG_TABLE, 0, -6); // strlen(config)
+ if (strlen($table_name . $index_name) - strlen($table_prefix) > 24)
+ {
+ $max_length = strlen($table_prefix) + 24;
+ trigger_error("Index name '{$table_name}_$index_name' on table '$table_name' is too long. The maximum is $max_length characters.", E_USER_ERROR);
+ }
+
+ // remove index length unless MySQL4
+ if ('mysql_40' != $this->sql_layer)
+ {
+ $column = preg_replace('#:.*$#', '', $column);
+ }
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ case 'postgres':
+ case 'oracle':
+ case 'sqlite':
+ $statements[] = 'CREATE INDEX ' . $table_name . '_' . $index_name . ' ON ' . $table_name . '(' . implode(', ', $column) . ')';
+ break;
+
+ case 'mysql_40':
+ // add index size to definition as required by MySQL4
+ foreach ($column as $i => $col)
+ {
+ if (false !== strpos($col, ':'))
+ {
+ list($col, $index_size) = explode(':', $col);
+ $column[$i] = "$col($index_size)";
+ }
+ }
+ // no break
+ case 'mysql_41':
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD INDEX ' . $index_name . '(' . implode(', ', $column) . ')';
+ break;
+
+ case 'mssql':
+ case 'mssqlnative':
+ $statements[] = 'CREATE INDEX [' . $index_name . '] ON [' . $table_name . ']([' . implode('], [', $column) . '])';
+ break;
+ }
+
+ return $this->_sql_run_sql($statements);
+ }
+
+ /**
+ * List all of the indices that belong to a table,
+ * does not count:
+ * * UNIQUE indices
+ * * PRIMARY keys
+ */
+ function sql_list_index($table_name)
+ {
+ $index_array = array();
+
+ if ($this->sql_layer == 'mssql' || $this->sql_layer == 'mssqlnative')
+ {
+ $sql = "EXEC sp_statistics '$table_name'";
+ $result = $this->db->sql_query($sql);
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ if ($row['TYPE'] == 3)
+ {
+ $index_array[] = $row['INDEX_NAME'];
+ }
+ }
+ $this->db->sql_freeresult($result);
+ }
+ else
+ {
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ $sql = "SELECT LOWER(RDB\$INDEX_NAME) as index_name
+ FROM RDB\$INDICES
+ WHERE RDB\$RELATION_NAME = '" . strtoupper($table_name) . "'
+ AND RDB\$UNIQUE_FLAG IS NULL
+ AND RDB\$FOREIGN_KEY IS NULL";
+ $col = 'index_name';
+ break;
+
+ case 'postgres':
+ $sql = "SELECT ic.relname as index_name
+ FROM pg_class bc, pg_class ic, pg_index i
+ WHERE (bc.oid = i.indrelid)
+ AND (ic.oid = i.indexrelid)
+ AND (bc.relname = '" . $table_name . "')
+ AND (i.indisunique != 't')
+ AND (i.indisprimary != 't')";
+ $col = 'index_name';
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $sql = 'SHOW KEYS
+ FROM ' . $table_name;
+ $col = 'Key_name';
+ break;
+
+ case 'oracle':
+ $sql = "SELECT index_name
+ FROM user_indexes
+ WHERE table_name = '" . strtoupper($table_name) . "'
+ AND generated = 'N'
+ AND uniqueness = 'NONUNIQUE'";
+ $col = 'index_name';
+ break;
+
+ case 'sqlite':
+ $sql = "PRAGMA index_info('" . $table_name . "');";
+ $col = 'name';
+ break;
+ }
+
+ $result = $this->db->sql_query($sql);
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ if (($this->sql_layer == 'mysql_40' || $this->sql_layer == 'mysql_41') && !$row['Non_unique'])
+ {
+ continue;
+ }
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ case 'oracle':
+ case 'postgres':
+ case 'sqlite':
+ $row[$col] = substr($row[$col], strlen($table_name) + 1);
+ break;
+ }
+
+ $index_array[] = $row[$col];
+ }
+ $this->db->sql_freeresult($result);
+ }
+
+ return array_map('strtolower', $index_array);
+ }
+
+ /**
+ * Change column type (not name!)
+ */
+ function sql_column_change($table_name, $column_name, $column_data, $inline = false)
+ {
+ $column_data = $this->sql_prepare_column_data($table_name, $column_name, $column_data);
+ $statements = array();
+
+ switch ($this->sql_layer)
+ {
+ case 'firebird':
+ // Change type...
+ if (!empty($column_data['column_type_sql_default']))
+ {
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ALTER COLUMN "' . strtoupper($column_name) . '" TYPE ' . ' ' . $column_data['column_type_sql_type'];
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ALTER COLUMN "' . strtoupper($column_name) . '" SET DEFAULT ' . ' ' . $column_data['column_type_sql_default'];
+ }
+ else
+ {
+ // TODO: try to change pkey without removing trigger, generator or constraints. ATM this query may fail.
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ALTER COLUMN "' . strtoupper($column_name) . '" TYPE ' . ' ' . $column_data['column_type_sql_type'];
+ }
+ break;
+
+ case 'mssql':
+ case 'mssqlnative':
+ $statements[] = 'ALTER TABLE [' . $table_name . '] ALTER COLUMN [' . $column_name . '] ' . $column_data['column_type_sql'];
+
+ if (!empty($column_data['default']))
+ {
+ $sql = "SELECT CAST(SERVERPROPERTY('productversion') AS VARCHAR(25)) AS mssql_version";
+ $result = $this->db->sql_query($sql);
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ // Using TRANSACT-SQL for this statement because we do not want to have colliding data if statements are executed at a later stage
+ if ($row['mssql_version'][0] == '8') // SQL Server 2000
+ {
+ $statements[] = "DECLARE @drop_default_name VARCHAR(100), @cmd VARCHAR(1000)
+ SET @drop_default_name =
+ (SELECT so.name FROM sysobjects so
+ JOIN sysconstraints sc ON so.id = sc.constid
+ WHERE object_name(so.parent_obj) = '{$table_name}'
+ AND so.xtype = 'D'
+ AND sc.colid = (SELECT colid FROM syscolumns
+ WHERE id = object_id('{$table_name}')
+ AND name = '{$column_name}'))
+ IF @drop_default_name <> ''
+ BEGIN
+ SET @cmd = 'ALTER TABLE [{$table_name}] DROP CONSTRAINT [' + @drop_default_name + ']'
+ EXEC(@cmd)
+ END
+ SET @cmd = 'ALTER TABLE [{$table_name}] ADD CONSTRAINT [DF_{$table_name}_{$column_name}_1] {$column_data['default']} FOR [{$column_name}]'
+ EXEC(@cmd)";
+ }
+ else
+ {
+ $statements[] = "DECLARE @drop_default_name VARCHAR(100), @cmd VARCHAR(1000)
+ SET @drop_default_name =
+ (SELECT dobj.name FROM sys.columns col
+ LEFT OUTER JOIN sys.objects dobj ON (dobj.object_id = col.default_object_id AND dobj.type = 'D')
+ WHERE col.object_id = object_id('{$table_name}')
+ AND col.name = '{$column_name}'
+ AND dobj.name IS NOT NULL)
+ IF @drop_default_name <> ''
+ BEGIN
+ SET @cmd = 'ALTER TABLE [{$table_name}] DROP CONSTRAINT [' + @drop_default_name + ']'
+ EXEC(@cmd)
+ END
+ SET @cmd = 'ALTER TABLE [{$table_name}] ADD CONSTRAINT [DF_{$table_name}_{$column_name}_1] {$column_data['default']} FOR [{$column_name}]'
+ EXEC(@cmd)";
+ }
+ }
+ break;
+
+ case 'mysql_40':
+ case 'mysql_41':
+ $statements[] = 'ALTER TABLE `' . $table_name . '` CHANGE `' . $column_name . '` `' . $column_name . '` ' . $column_data['column_type_sql'];
+ break;
+
+ case 'oracle':
+ $statements[] = 'ALTER TABLE ' . $table_name . ' MODIFY ' . $column_name . ' ' . $column_data['column_type_sql'];
+ break;
+
+ case 'postgres':
+ $sql = 'ALTER TABLE ' . $table_name . ' ';
+
+ $sql_array = array();
+ $sql_array[] = 'ALTER COLUMN ' . $column_name . ' TYPE ' . $column_data['column_type'];
+
+ if (isset($column_data['null']))
+ {
+ if ($column_data['null'] == 'NOT NULL')
+ {
+ $sql_array[] = 'ALTER COLUMN ' . $column_name . ' SET NOT NULL';
+ }
+ else if ($column_data['null'] == 'NULL')
+ {
+ $sql_array[] = 'ALTER COLUMN ' . $column_name . ' DROP NOT NULL';
+ }
+ }
+
+ if (isset($column_data['default']))
+ {
+ $sql_array[] = 'ALTER COLUMN ' . $column_name . ' SET DEFAULT ' . $column_data['default'];
+ }
+
+ // we don't want to double up on constraints if we change different number data types
+ if (isset($column_data['constraint']))
+ {
+ $constraint_sql = "SELECT consrc as constraint_data
+ FROM pg_constraint, pg_class bc
+ WHERE conrelid = bc.oid
+ AND bc.relname = '{$table_name}'
+ AND NOT EXISTS (
+ SELECT *
+ FROM pg_constraint as c, pg_inherits as i
+ WHERE i.inhrelid = pg_constraint.conrelid
+ AND c.conname = pg_constraint.conname
+ AND c.consrc = pg_constraint.consrc
+ AND c.conrelid = i.inhparent
+ )";
+
+ $constraint_exists = false;
+
+ $result = $this->db->sql_query($constraint_sql);
+ while ($row = $this->db->sql_fetchrow($result))
+ {
+ if (trim($row['constraint_data']) == trim($column_data['constraint']))
+ {
+ $constraint_exists = true;
+ break;
+ }
+ }
+ $this->db->sql_freeresult($result);
+
+ if (!$constraint_exists)
+ {
+ $sql_array[] = 'ADD ' . $column_data['constraint'];
+ }
+ }
+
+ $sql .= implode(', ', $sql_array);
+
+ $statements[] = $sql;
+ break;
+
+ case 'sqlite':
+
+ if ($inline && $this->return_statements)
+ {
+ return $column_name . ' ' . $column_data['column_type_sql'];
+ }
+
+ $sql = "SELECT sql
+ FROM sqlite_master
+ WHERE type = 'table'
+ AND name = '{$table_name}'
+ ORDER BY type DESC, name;";
+ $result = $this->db->sql_query($sql);
+
+ if (!$result)
+ {
+ break;
+ }
+
+ $row = $this->db->sql_fetchrow($result);
+ $this->db->sql_freeresult($result);
+
+ $statements[] = 'begin';
+
+ // Create a temp table and populate it, destroy the existing one
+ $statements[] = preg_replace('#CREATE\s+TABLE\s+"?' . $table_name . '"?#i', 'CREATE TEMPORARY TABLE ' . $table_name . '_temp', $row['sql']);
+ $statements[] = 'INSERT INTO ' . $table_name . '_temp SELECT * FROM ' . $table_name;
+ $statements[] = 'DROP TABLE ' . $table_name;
+
+ preg_match('#\((.*)\)#s', $row['sql'], $matches);
+
+ $new_table_cols = trim($matches[1]);
+ $old_table_cols = preg_split('/,(?![\s\w]+\))/m', $new_table_cols);
+ $column_list = array();
+
+ foreach ($old_table_cols as $key => $declaration)
+ {
+ $entities = preg_split('#\s+#', trim($declaration));
+ $column_list[] = $entities[0];
+ if ($entities[0] == $column_name)
+ {
+ $old_table_cols[$key] = $column_name . ' ' . $column_data['column_type_sql'];
+ }
+ }
+
+ $columns = implode(',', $column_list);
+
+ // create a new table and fill it up. destroy the temp one
+ $statements[] = 'CREATE TABLE ' . $table_name . ' (' . implode(',', $old_table_cols) . ');';
+ $statements[] = 'INSERT INTO ' . $table_name . ' (' . $columns . ') SELECT ' . $columns . ' FROM ' . $table_name . '_temp;';
+ $statements[] = 'DROP TABLE ' . $table_name . '_temp';
+
+ $statements[] = 'commit';
+
+ break;
+ }
+
+ return $this->_sql_run_sql($statements);
+ }
+}
3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022
# translation of libDrakX.po to Japanese
# Drakbootdisk Japanese translation
# Copyright (C) 2000,2003, 2004, 2006 Free Software Foundation, Inc.
# YAMAGATA Hiroo <hiyori13@alum.mit.edu>, 2000.
# UTUMI Hirosi <utuhiro78@yahoo.co.jp>, 2003, 2004, 2006.
# Yukiko Bando <ybando@k6.dion.ne.jp>, 2004-2009.
#
msgid ""
msgstr ""
"Project-Id-Version: libDrakX-ja\n"
"POT-Creation-Date: 2009-03-26 22:18-0300\n"
"PO-Revision-Date: 2009-02-22 19:41+0900\n"
"Last-Translator: Yukiko Bando <ybando@k6.dion.ne.jp>\n"
"Language-Team: Japanese <cooker-i18n@mandrivalinux.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#: any.pm:252 any.pm:863 diskdrake/interactive.pm:590
#: diskdrake/interactive.pm:790 diskdrake/interactive.pm:834
#: diskdrake/interactive.pm:920 diskdrake/interactive.pm:1174
#: diskdrake/interactive.pm:1226 do_pkgs.pm:241 do_pkgs.pm:287
#: harddrake/sound.pm:300 interactive.pm:587 pkgs.pm:265
#, c-format
msgid "Please wait"
msgstr "お待ちください"

#: any.pm:252
#, c-format
msgid "Bootloader installation in progress"
msgstr "ブートローダをインストール中"

#: any.pm:263
#, c-format
msgid ""
"LILO wants to assign a new Volume ID to drive %s.  However, changing\n"
"the Volume ID of a Windows NT, 2000, or XP boot disk is a fatal Windows "
"error.\n"
"This caution does not apply to Windows 95 or 98, or to NT data disks.\n"
"\n"
"Assign a new Volume ID?"
msgstr ""
"LILO がドライブ %s に新しいボリューム ID を割り当てようとしています。\n"
"Windows NT/2000/XP のブートディスクのボリューム ID を変更することは\n"
"Windows システムの致命的エラーになります。この警告は Windows 95/98 や\n"
"NT データディスクには当てはまりません。\n"
"\n"
"新しいボリューム ID を割り当てますか?"

#: any.pm:274
#, c-format
msgid "Installation of bootloader failed. The following error occurred:"
msgstr "ブートローダのインストールに失敗しました。以下のエラーが発生:"

#: any.pm:280
#, c-format
msgid ""
"You may need to change your Open Firmware boot-device to\n"
" enable the bootloader.  If you do not see the bootloader prompt at\n"
" reboot, hold down Command-Option-O-F at reboot and enter:\n"
" setenv boot-device %s,\\\\:tbxi\n"
" Then type: shut-down\n"
"At your next boot you should see the bootloader prompt."
msgstr ""
"ブートローダを有効にするにはオープンファームウェアの起動デバイスを\n"
"変更する必要があるかもしれません。再起動時にブートローダのプロンプトが\n"
"表示されない場合は、Command-Option-O-F を再起動時に押して\n"
" setenv boot-device %s,\\\\:tbxi\n"
" shut-down\n"
"と入力してください。\n"
"次回の起動時にはブートローダのプロンプトが表示されるはずです。"

#: any.pm:320
#, c-format
msgid ""
"You decided to install the bootloader on a partition.\n"
"This implies you already have a bootloader on the hard drive you boot (eg: "
"System Commander).\n"
"\n"
"On which drive are you booting?"
msgstr ""
"パーティションにブートローダをインストールするよう選択されました。\n"
"これは、起動するハードディスクに既に別のブートローダ (例: システムコマン"
"ダー) がインストールされていることが前提になります。\n"
"\n"
"どのドライブから起動しますか?"

#: any.pm:346
#, c-format
msgid "First sector (MBR) of drive %s"
msgstr "ドライブ %s の最初のセクタ (MBR)"

#: any.pm:348
#, c-format
msgid "First sector of drive (MBR)"
msgstr "ドライブの最初のセクタ (MBR)"

#: any.pm:350
#, c-format
msgid "First sector of the root partition"
msgstr "root パーティションの最初のセクタ"

#: any.pm:352
#, c-format
msgid "On Floppy"
msgstr "フロッピー"

#: any.pm:354 pkgs.pm:261 ugtk2.pm:526
#, c-format
msgid "Skip"
msgstr "スキップ"

#: any.pm:358
#, c-format
msgid "Bootloader Installation"
msgstr "ブートローダのインストール"

#: any.pm:362
#, c-format
msgid "Where do you want to install the bootloader?"
msgstr "ブートローダをどこにインストールしますか?"

#: any.pm:389
#, c-format
msgid "Boot Style Configuration"
msgstr "起動方式の設定"

#: any.pm:399 any.pm:429 any.pm:430
#, c-format
msgid "Bootloader main options"
msgstr "ブートローダのメインオプション"

#: any.pm:403
#, c-format
msgid "Bootloader"
msgstr "ブートローダ"

#: any.pm:404 any.pm:433
#, c-format
msgid "Bootloader to use"
msgstr "使用するブートローダ"

#: any.pm:406 any.pm:435
#, c-format
msgid "Boot device"
msgstr "起動デバイス"

#: any.pm:408
#, c-format
msgid "Main options"
msgstr "メインオプション"

#: any.pm:409
#, c-format
msgid "Delay before booting default image"
msgstr "デフォルトが起動するまでの秒数"

#: any.pm:410
#, c-format
msgid "Enable ACPI"
msgstr "ACPI を有効にする"

#: any.pm:411
#, c-format
msgid "Enable SMP"
msgstr "SMP を有効にする"

#: any.pm:412
#, c-format
msgid "Enable APIC"
msgstr "APIC を有効にする"

#: any.pm:413
#, c-format
msgid "Enable Local APIC"
msgstr "ローカル APIC を有効にする"

#: any.pm:415 any.pm:809 any.pm:824 authentication.pm:247
#: diskdrake/smbnfs_gtk.pm:181
#, c-format
msgid "Password"
msgstr "パスワード"

#: any.pm:417 authentication.pm:258
#, c-format
msgid "The passwords do not match"
msgstr "パスワードが一致しません"

#: any.pm:417 authentication.pm:258 diskdrake/interactive.pm:1398
#, c-format
msgid "Please try again"
msgstr "やり直してください"

#: any.pm:418
#, c-format
msgid "You can not use a password with %s"
msgstr "%s にはパスワードは使えません"

#: any.pm:421 any.pm:811 any.pm:826 authentication.pm:248
#, c-format
msgid "Password (again)"
msgstr "パスワード (再入力)"

#: any.pm:422
#, c-format
msgid "Restrict command line options"
msgstr "コマンドラインオプションの制限"

#: any.pm:422
#, c-format
msgid "restrict"
msgstr "制限"

#: any.pm:423
#, c-format
msgid ""
"Option ``Restrict command line options'' is of no use without a password"
msgstr "コマンドラインオプションを制限するにはパスワードが必要です"

#: any.pm:425
#, c-format
msgid "Clean /tmp at each boot"
msgstr "起動するたびに /tmp 以下を消す"

#: any.pm:434
#, c-format
msgid "Init Message"
msgstr "Init メッセージ"

#: any.pm:436
#, c-format
msgid "Open Firmware Delay"
msgstr "オープンファームウェアの遅延"

#: any.pm:437
#, c-format
msgid "Kernel Boot Timeout"
msgstr "カーネルブートのタイムアウト"

#: any.pm:438
#, c-format
msgid "Enable CD Boot?"
msgstr "CD からの起動を有効にしますか?"

#: any.pm:439
#, c-format
msgid "Enable OF Boot?"
msgstr "OF からの起動を有効にしますか?"

#: any.pm:440
#, c-format
msgid "Default OS?"
msgstr "デフォルトの OS"

#: any.pm:513
#, c-format
msgid "Image"
msgstr "イメージ"

#: any.pm:514 any.pm:527
#, c-format
msgid "Root"
msgstr "root"

#: any.pm:515 any.pm:540
#, c-format
msgid "Append"
msgstr "追加"

#: any.pm:517
#, c-format
msgid "Xen append"
msgstr "Xen 追加"

#: any.pm:520
#, c-format
msgid "Video mode"
msgstr "ビデオモード"

#: any.pm:522
#, c-format
msgid "Initrd"
msgstr "Initrd"

#: any.pm:523
#, c-format
msgid "Network profile"
msgstr "ネットワークプロファイル"

#: any.pm:532 any.pm:537 any.pm:539 diskdrake/interactive.pm:404
#, c-format
msgid "Label"
msgstr "ラベル"

#: any.pm:534 any.pm:542 harddrake/v4l.pm:438
#, c-format
msgid "Default"
msgstr "デフォルト"

#: any.pm:541
#, c-format
msgid "NoVideo"
msgstr "ビデオなし"

#: any.pm:552
#, c-format
msgid "Empty label not allowed"
msgstr "空白のラベルは使えません"

#: any.pm:553
#, c-format
msgid "You must specify a kernel image"
msgstr "カーネルイメージを指定してください"

#: any.pm:553
#, c-format
msgid "You must specify a root partition"
msgstr "root パーティションは必ず指定してください"

#: any.pm:554
#, c-format
msgid "This label is already used"
msgstr "このラベルは既に使われています"

#: any.pm:572
#, c-format
msgid "Which type of entry do you want to add?"
msgstr "どの種類のエントリを追加しますか?"

#: any.pm:573
#, c-format
msgid "Linux"
msgstr "Linux"

#: any.pm:573
#, c-format
msgid "Other OS (SunOS...)"
msgstr "他の OS (SunOS...)"

#: any.pm:574
#, c-format
msgid "Other OS (MacOS...)"
msgstr "他の OS (MacOS...)"

#: any.pm:574
#, c-format
msgid "Other OS (Windows...)"
msgstr "他の OS (Windows...)"

#: any.pm:601
#, c-format
msgid "Bootloader Configuration"
msgstr "ブートローダの設定"

#: any.pm:602
#, c-format
msgid ""
"Here are the entries on your boot menu so far.\n"
"You can create additional entries or change the existing ones."
msgstr ""
"起動メニューのエントリは以下のとおりです。\n"
"エントリは追加/変更できます。"

#: any.pm:770
#, c-format
msgid "access to X programs"
msgstr "X プログラムへのアクセス"

#: any.pm:771
#, c-format
msgid "access to rpm tools"
msgstr "RPM ツールへのアクセス"

#: any.pm:772
#, c-format
msgid "allow \"su\""
msgstr "su を許可する"

#: any.pm:773
#, c-format
msgid "access to administrative files"
msgstr "管理ファイルへのアクセス"

#: any.pm:774
#, c-format
msgid "access to network tools"
msgstr "ネットワークツールへのアクセス"

#: any.pm:775
#, c-format
msgid "access to compilation tools"
msgstr "コンパイルツールへのアクセス"

#: any.pm:781
#, c-format
msgid "(already added %s)"
msgstr "(%s は追加済み)"

#: any.pm:787
#, c-format
msgid "Please give a user name"
msgstr "ユーザ名を入力してください"

#: any.pm:788
#, c-format
msgid ""
"The user name must contain only lower cased letters, numbers, `-' and `_'"
msgstr ""
"ユーザ名には英語の小文字、数字、ハイフン (-)、アンダースコア (_) しか使えませ"
"ん"

#: any.pm:789
#, c-format
msgid "The user name is too long"
msgstr "ユーザ名が長すぎます"

#: any.pm:790
#, c-format
msgid "This user name has already been added"
msgstr "このユーザ名は既に存在します"

#: any.pm:796 any.pm:828
#, c-format
msgid "User ID"
msgstr "ユーザ ID"

#: any.pm:796 any.pm:829
#, c-format
msgid "Group ID"
msgstr "グループ ID"

#: any.pm:797
#, c-format
msgid "%s must be a number"
msgstr "%s は数字でなければいけません"

#: any.pm:798
#, c-format
msgid "%s should be above 500. Accept anyway?"
msgstr "%s は 500 より上でなければいけません。このまま受け入れますか?"

#: any.pm:802
#, c-format
msgid "User management"
msgstr "ユーザの管理"

#: any.pm:808 authentication.pm:234
#, c-format
msgid "Set administrator (root) password"
msgstr "管理者 (root) のパスワードを設定"

#: any.pm:813
#, c-format
msgid "Enter a user"
msgstr "ユーザ名を入力"

#: any.pm:815
#, c-format
msgid "Icon"
msgstr "アイコン"

#: any.pm:818
#, c-format
msgid "Real name"
msgstr "本名"

#: any.pm:822
#, c-format
msgid "Login name"
msgstr "ログイン名"

#: any.pm:827
#, c-format
msgid "Shell"
msgstr "シェル"

#: any.pm:863
#, c-format
msgid "Please wait, adding media..."
msgstr "メディアを追加しています。お待ちください..."

#: any.pm:892 security/l10n.pm:14
#, c-format
msgid "Autologin"
msgstr "自動ログイン"

#: any.pm:893
#, c-format
msgid "I can set up your computer to automatically log on one user."
msgstr "自動的に特定のユーザでログオンするように設定できます。"

#: any.pm:894
#, c-format
msgid "Use this feature"
msgstr "この機能を使います"

#: any.pm:895
#, c-format
msgid "Choose the default user:"
msgstr "デフォルトのユーザを選択:"

#: any.pm:896
#, c-format
msgid "Choose the window manager to run:"
msgstr "ウィンドウマネージャを選択:"

#: any.pm:907 any.pm:927 any.pm:988
#, c-format
msgid "Release Notes"
msgstr "リリースノート"

#: any.pm:934 any.pm:1280 interactive/gtk.pm:794
#, c-format
msgid "Close"
msgstr "閉じる"

#: any.pm:974
#, c-format
msgid "License agreement"
msgstr "ライセンスへの同意"

#: any.pm:976 diskdrake/dav.pm:26
#, c-format
msgid "Quit"
msgstr "終了"

#: any.pm:983
#, c-format
msgid "Do you accept this license ?"
msgstr "このライセンスに同意しますか?"

#: any.pm:984
#, c-format
msgid "Accept"
msgstr "承諾する"

#: any.pm:984
#, c-format
msgid "Refuse"
msgstr "拒否する"

#: any.pm:1010 any.pm:1076
#, c-format
msgid "Please choose a language to use"
msgstr "使用する言語を選んでください。"

#: any.pm:1039
#, c-format
msgid ""
"Mandriva Linux can support multiple languages. Select\n"
"the languages you would like to install. They will be available\n"
"when your installation is complete and you restart your system."
msgstr ""
"Mandriva Linux では複数の言語を使うことができます。\n"
"お使いになりたい言語を選んでください。\n"
"インストール後に再選択することも可能です。"

#: any.pm:1042
#, c-format
msgid "Multi languages"
msgstr "多言語"

#: any.pm:1053 any.pm:1085
#, c-format
msgid "Old compatibility (non UTF-8) encoding"
msgstr "UTF-8 ではないエンコーディング (後方互換性のため)"

#: any.pm:1055
#, c-format
msgid "All languages"
msgstr "すべての言語"

#: any.pm:1077
#, c-format
msgid "Language choice"
msgstr "言語の選択"

#: any.pm:1131
#, c-format
msgid "Country / Region"
msgstr "国名/地域"

#: any.pm:1132
#, c-format
msgid "Please choose your country"
msgstr "お住いの国を選んでください"

#: any.pm:1134
#, c-format
msgid "Here is the full list of available countries"
msgstr "利用可能なすべての国名のリスト"

#: any.pm:1135
#, c-format
msgid "Other Countries"
msgstr "他の国"

#: any.pm:1135 interactive.pm:488 interactive/gtk.pm:445
#, c-format
msgid "Advanced"
msgstr "詳細"

#: any.pm:1141
#, c-format
msgid "Input method:"
msgstr "入力メソッド:"

#: any.pm:1144
#, c-format
msgid "None"
msgstr "なし"

#: any.pm:1225
#, c-format
msgid "No sharing"
msgstr "共有しない"

#: any.pm:1225
#, c-format
msgid "Allow all users"
msgstr "すべてのユーザに許可"

#: any.pm:1225
#, c-format
msgid "Custom"
msgstr "カスタム"

#: any.pm:1229
#, c-format
msgid ""
"Would you like to allow users to share some of their directories?\n"
"Allowing this will permit users to simply click on \"Share\" in konqueror "
"and nautilus.\n"
"\n"
"\"Custom\" permit a per-user granularity.\n"
msgstr ""
"ユーザ間での一部のディレクトリの共有を許可しますか?\n"
"許可すると、ユーザは konqueror または nautilusで「共有」を\n"
"クリックするだけで共有することができます。\n"
"「カスタム」を選ぶとユーザごとに細かく設定できます。\n"

#: any.pm:1241
#, c-format
msgid ""
"NFS: the traditional Unix file sharing system, with less support on Mac and "
"Windows."
msgstr "NFS: 伝統的な Unix ファイル共有システム"

#: any.pm:1244
#, c-format
msgid ""
"SMB: a file sharing system used by Windows, Mac OS X and many modern Linux "
"systems."
msgstr ""
"SMB: Windows/Mac OS X や新しい Linux システムで使われるファイル共有システム"

#: any.pm:1252
#, c-format
msgid ""
"You can export using NFS or SMB. Please select which you would like to use."
msgstr "エクスポートには NFS と SMB を使用できます。どちらを使いますか?"

#: any.pm:1280
#, c-format
msgid "Launch userdrake"
msgstr "userdrake を起動"

#: any.pm:1282
#, c-format
msgid ""
"The per-user sharing uses the group \"fileshare\". \n"
"You can use userdrake to add a user to this group."
msgstr ""
"ユーザ別に共有する場合は \"fileshare\" グループを使います。\n"
"userdrake を使ってこのグループにユーザを追加してください。"

#: any.pm:1383
#, fuzzy, c-format
msgid ""
"You need to logout and back in again for changes to take effect. Press OK to "
"logout now."
msgstr "変更を有効にするには再ログインしてください。"

#: any.pm:1387
#, c-format
msgid "You need to log out and back in again for changes to take effect"
msgstr "変更を有効にするには再ログインしてください。"

#: any.pm:1422
#, c-format
msgid "Timezone"
msgstr "タイムゾーン"

#: any.pm:1422
#, c-format
msgid "Which is your timezone?"
msgstr "タイムゾーンを選んでください。"

#: any.pm:1445 any.pm:1447
#, c-format
msgid "Date, Clock & Time Zone Settings"
msgstr "日付、時刻とタイムゾーンの設定"

#: any.pm:1448
#, c-format
msgid "What is the best time?"
msgstr "どの時刻を使いますか?"

#: any.pm:1452
#, c-format
msgid "%s (hardware clock set to UTC)"
msgstr "%s (ハードウェアクロックを UTC に設定)"

#: any.pm:1453
#, c-format
msgid "%s (hardware clock set to local time)"
msgstr "%s (ハードウェアクロックをローカルタイムに設定)"

#: any.pm:1455
#, c-format
msgid "NTP Server"
msgstr "NTP サーバ"

#: any.pm:1456
#, c-format
msgid "Automatic time synchronization (using NTP)"
msgstr "自動的に時間を合わせる (NTP を使用)"

#: authentication.pm:24
#, c-format
msgid "Local file"
msgstr "ローカルファイル"

#: authentication.pm:25
#, c-format
msgid "LDAP"
msgstr "LDAP"

#: authentication.pm:26
#, c-format
msgid "NIS"
msgstr "NIS"

#: authentication.pm:27
#, c-format
msgid "Smart Card"
msgstr "スマートカード"

#: authentication.pm:28 authentication.pm:213
#, c-format
msgid "Windows Domain"
msgstr "Windows ドメイン"

#: authentication.pm:29
#, c-format
msgid "Kerberos 5"
msgstr "Kerberos 5"

#: authentication.pm:63
#, c-format
msgid "Local file:"
msgstr "ローカルファイル:"

#: authentication.pm:63
#, c-format
msgid ""
"Use local for all authentication and information user tell in local file"
msgstr "ローカルファイルからユーザ情報を取得してすべての認証を行います。"

#: authentication.pm:64
#, c-format
msgid "LDAP:"
msgstr "LDAP:"

#: authentication.pm:64
#, c-format
msgid ""
"Tells your computer to use LDAP for some or all authentication. LDAP "
"consolidates certain types of information within your organization."
msgstr ""
"LDAP を使ってすべてまたは一部の認証を行います。LDAP は組織内のある種の情報を"
"一元管理します。"

#: authentication.pm:65
#, c-format
msgid "NIS:"
msgstr "NIS:"

#: authentication.pm:65
#, c-format
msgid ""
"Allows you to run a group of computers in the same Network Information "
"Service domain with a common password and group file."
msgstr ""
"同じ NIS ドメイン内の複数のマシンで共通のパスワードとグループファイルを使える"
"ようにします。"

#: authentication.pm:66
#, c-format
msgid "Windows Domain:"
msgstr "Windows ドメイン:"

#: authentication.pm:66
#, c-format
msgid ""
"Winbind allows the system to retrieve information and authenticate users in "
"a Windows domain."
msgstr "Winbind は Windows ドメインでの情報収集とユーザ認証を可能にします。"

#: authentication.pm:67
#, c-format
msgid "Kerberos 5 :"
msgstr "Kerberos 5:"

#: authentication.pm:67
#, c-format
msgid "With Kerberos and Ldap for authentication in Active Directory Server "
msgstr "アクティブディレクトリサーバでの認証に Kerberos と LDAP を使います。"

#: authentication.pm:104 authentication.pm:138 authentication.pm:157
#: authentication.pm:158 authentication.pm:184 authentication.pm:208
#: authentication.pm:888
#, c-format
msgid " "
msgstr " "

#: authentication.pm:105 authentication.pm:139 authentication.pm:185
#: authentication.pm:209
#, c-format
msgid "Welcome to the Authentication Wizard"
msgstr "認証方式設定ウィザードへようこそ"

#: authentication.pm:107
#, c-format
msgid ""
"You have selected LDAP authentication. Please review the configuration "
"options below "
msgstr "LDAP 認証を選択しました。下の設定オプションを確認してください。"

#: authentication.pm:109 authentication.pm:164
#, c-format
msgid "LDAP Server"
msgstr "LDAP サーバ"

#: authentication.pm:110 authentication.pm:165
#, c-format
msgid "Base dn"
msgstr "ベース DN"

#: authentication.pm:111
#, c-format
msgid "Fetch base Dn "
msgstr "ベース DN を取得 "

#: authentication.pm:113 authentication.pm:168
#, c-format
msgid "Use encrypt connection with TLS "
msgstr "TLS で接続を暗号化する"

#: authentication.pm:114 authentication.pm:169
#, c-format
msgid "Download CA Certificate "
msgstr "CA 証明書をダウンロード "

#: authentication.pm:116 authentication.pm:149
#, c-format
msgid "Use Disconnect mode "
msgstr "オフラインモードを使う"

#: authentication.pm:117 authentication.pm:170
#, c-format
msgid "Use anonymous BIND "
msgstr "匿名バインドを使う "

#: authentication.pm:118 authentication.pm:121 authentication.pm:123
#: authentication.pm:127
#, c-format
msgid "  "
msgstr "  "

#: authentication.pm:119 authentication.pm:171
#, c-format
msgid "Bind DN "
msgstr "バインド DN "

#: authentication.pm:120 authentication.pm:172
#, c-format
msgid "Bind Password "
msgstr "バインドパスワード "

#: authentication.pm:122
#, c-format
msgid "Advanced path for group "
msgstr ""

#: authentication.pm:124
#, fuzzy, c-format
msgid "Password base"
msgstr "パスワード"

#: authentication.pm:125
#, fuzzy, c-format
msgid "Group base"
msgstr "グループ ID"

#: authentication.pm:126
#, c-format
msgid "Shadow base"
msgstr ""

#: authentication.pm:141
#, c-format
msgid ""
"You have selected Kerberos 5 authentication. Please review the configuration "
"options below "
msgstr "Kerberos 5 認証を選択しました。下の設定オプションを確認してください。"

#: authentication.pm:143
#, c-format
msgid "Realm "
msgstr "レルム"

#: authentication.pm:145
#, c-format
msgid "KDCs Servers"
msgstr "KDC サーバ"

#: authentication.pm:147
#, c-format
msgid "Use DNS to resolve hosts for realms "
msgstr "DNS を使ってレルムのホストを解決する"

#: authentication.pm:148
#, c-format
msgid "Use DNS to resolve KDCs for realms "
msgstr "DNS を使ってレルムの KDC を解決する "

#: authentication.pm:153
#, c-format
msgid "Use local file for users information"
msgstr "ローカルファイルからユーザ情報を取得する"

#: authentication.pm:154
#, c-format
msgid "Use Ldap for users information"
msgstr "LDAP サーバからユーザ情報を取得する"

#: authentication.pm:160
#, c-format
msgid ""
"You have selected Kerberos 5 for authentication, now you must choose the "
"type of users information "
msgstr ""
"Kerberos 5 認証を選択しました。次にユーザ情報のタイプを選択してください。"

#: authentication.pm:166
#, c-format
msgid "Fecth base Dn "
msgstr "ベース DN を取得 "

#: authentication.pm:187
#, c-format
msgid ""
"You have selected NIS authentication. Please review the configuration "
"options below "
msgstr "NIS 認証を選択しました。下の設定オプションを確認してください。"

#: authentication.pm:189
#, c-format
msgid "NIS Domain"
msgstr "NIS ドメイン"

#: authentication.pm:190
#, c-format
msgid "NIS Server"
msgstr "NIS サーバ"

#: authentication.pm:211
#, c-format
msgid ""
"You have selected Windows Domain authentication. Please review the "
"configuration options below "
msgstr ""
"Windows ドメイン認証を選択しました。下の設定オプションを確認してください。"

#: authentication.pm:215
#, c-format
msgid "Domain Model "
msgstr "ドメインモデル "

#: authentication.pm:217
#, c-format
msgid "Active Directory Realm "
msgstr "アクティブディレクトリのレルム "

#: authentication.pm:233 authentication.pm:249
#, c-format
msgid "Authentication"
msgstr "認証"

#: authentication.pm:235
#, c-format
msgid "Authentication method"
msgstr "認証方法"

#. -PO: keep this short or else the buttons will not fit in the window
#: authentication.pm:240
#, c-format
msgid "No password"
msgstr "パスワードなし"

#: authentication.pm:261
#, c-format
msgid "This password is too short (it must be at least %d characters long)"
msgstr "このパスワードは短すぎます (最低でも %d 文字以上にしてください)"

#: authentication.pm:368
#, c-format
msgid "Can not use broadcast with no NIS domain"
msgstr "NIS ドメインがないのでブロードキャストを使えません"

#: authentication.pm:883
#, c-format
msgid "Select file"
msgstr "ファイルを選択"

#: authentication.pm:889
#, c-format
msgid "Domain Windows for authentication : "
msgstr "認証に使う Windows ドメイン: "

#: authentication.pm:891
#, c-format
msgid "Domain Admin User Name"
msgstr "ドメイン管理者の名前"

#: authentication.pm:892
#, c-format
msgid "Domain Admin Password"
msgstr "ドメイン管理者のパスワード"

# NOTE: this message will be displayed by SILO at boot time; that is
# only the ascii charset will be available
# so use only 7bit for this message
#. -PO: these messages will be displayed at boot time in the BIOS, use only ASCII (7bit)
#: bootloader.pm:953
#, c-format
msgid ""
"Welcome to the operating system chooser!\n"
"\n"
"Choose an operating system from the list above or\n"
"wait for default boot.\n"
"\n"
msgstr ""
"operating system chooser-he youkosou!\n"
"\n"
"Ichiran kara OS wo erabu ka Default no OS no kidou wo\n"
"Matte kudasai.\n"

#: bootloader.pm:1130
#, c-format
msgid "LILO with text menu"
msgstr "LILO (テキスト表示)"

#: bootloader.pm:1131
#, c-format
msgid "GRUB with graphical menu"
msgstr "GRUB (グラフィカル表示)"

#: bootloader.pm:1132
#, c-format
msgid "GRUB with text menu"
msgstr "GRUB (テキスト表示)"

#: bootloader.pm:1133
#, c-format
msgid "Yaboot"
msgstr "Yaboot"

#: bootloader.pm:1134
#, c-format
msgid "SILO"
msgstr "SILO"

#: bootloader.pm:1216
#, c-format
msgid "not enough room in /boot"
msgstr "/boot の容量が足りません"

#: bootloader.pm:1872
#, c-format
msgid "You can not install the bootloader on a %s partition\n"
msgstr "ブートローダは %s パーティションにはインストールできません\n"

#: bootloader.pm:1993
#, c-format
msgid ""
"Your bootloader configuration must be updated because partition has been "
"renumbered"
msgstr ""
"パーティション番号が変更されたので、ブートローダの設定を更新してください"

#: bootloader.pm:2006
#, c-format
msgid ""
"The bootloader can not be installed correctly. You have to boot rescue and "
"choose \"%s\""
msgstr ""
"ブートローダを正しくインストールできません。レスキューをブートして %s を選ん"
"でください。"

#: bootloader.pm:2007
#, c-format
msgid "Re-install Boot Loader"
msgstr "ブートローダを再インストール"

#: common.pm:142
#, c-format
msgid "B"
msgstr "B"

#: common.pm:142
#, c-format
msgid "KB"
msgstr "KB"

#: common.pm:142
#, c-format
msgid "MB"
msgstr "MB"

#: common.pm:142
#, c-format
msgid "GB"
msgstr "GB"

#: common.pm:142 common.pm:151
#, c-format
msgid "TB"
msgstr "TB"

#: common.pm:159
#, c-format
msgid "%d minutes"
msgstr "%d 分"

#: common.pm:161
#, c-format
msgid "1 minute"
msgstr "1 分"

#: common.pm:163
#, c-format
msgid "%d seconds"
msgstr "%d 秒"

#: common.pm:383
#, c-format
msgid "command %s missing"
msgstr "コマンド %s がありません"

#: diskdrake/dav.pm:17
#, c-format
msgid ""
"WebDAV is a protocol that allows you to mount a web server's directory\n"
"locally, and treat it like a local filesystem (provided the web server is\n"
"configured as a WebDAV server). If you would like to add WebDAV mount\n"
"points, select \"New\"."
msgstr ""
"WebDAV はウェブサーバのディレクトリをローカルにマウントするための\n"
"プロトコルです。ウェブサーバが WebDAV サーバとして設定されていれば\n"
"マウントしたディレクトリをローカルファイルと同様に扱うことができます。\n"
"WebDAV のマウントポイントを追加するには「新規」を選んでください。"

#: diskdrake/dav.pm:25
#, c-format
msgid "New"
msgstr "新規"

#: diskdrake/dav.pm:61 diskdrake/interactive.pm:411 diskdrake/smbnfs_gtk.pm:75
#, c-format
msgid "Unmount"
msgstr "アンマウント"

#: diskdrake/dav.pm:62 diskdrake/interactive.pm:407 diskdrake/smbnfs_gtk.pm:76
#, c-format
msgid "Mount"
msgstr "マウント"

#: diskdrake/dav.pm:63
#, c-format
msgid "Server"
msgstr "サーバ"

#: diskdrake/dav.pm:64 diskdrake/interactive.pm:401
#: diskdrake/interactive.pm:662 diskdrake/interactive.pm:680
#: diskdrake/interactive.pm:684 diskdrake/removable.pm:23
#: diskdrake/smbnfs_gtk.pm:79
#, c-format
msgid "Mount point"
msgstr "マウントポイント"

#: diskdrake/dav.pm:65 diskdrake/interactive.pm:403
#: diskdrake/interactive.pm:1068 diskdrake/removable.pm:24
#: diskdrake/smbnfs_gtk.pm:80
#, c-format
msgid "Options"
msgstr "オプション"

#: diskdrake/dav.pm:66 diskdrake/hd_gtk.pm:183 diskdrake/removable.pm:26
#: diskdrake/smbnfs_gtk.pm:82 interactive/http.pm:151
#, c-format
msgid "Done"
msgstr "完了"

#: diskdrake/dav.pm:75 diskdrake/hd_gtk.pm:123 diskdrake/hd_gtk.pm:290
#: diskdrake/interactive.pm:247 diskdrake/interactive.pm:260
#: diskdrake/interactive.pm:516 diskdrake/interactive.pm:521
#: diskdrake/interactive.pm:652 diskdrake/interactive.pm:938
#: diskdrake/interactive.pm:1114 diskdrake/interactive.pm:1127
#: diskdrake/interactive.pm:1130 diskdrake/interactive.pm:1398
#: diskdrake/smbnfs_gtk.pm:42 do_pkgs.pm:23 do_pkgs.pm:28 do_pkgs.pm:44
#: do_pkgs.pm:60 do_pkgs.pm:65 do_pkgs.pm:82 fsedit.pm:246
#: interactive/http.pm:117 interactive/http.pm:118 modules/interactive.pm:19
#: scanner.pm:95 scanner.pm:106 scanner.pm:113 scanner.pm:120 wizards.pm:95
#: wizards.pm:99 wizards.pm:121
#, c-format
msgid "Error"
msgstr "エラー"

#: diskdrake/dav.pm:83
#, c-format
msgid "Please enter the WebDAV server URL"
msgstr "WavDAV サーバの URL を入力してください"

#: diskdrake/dav.pm:87
#, c-format
msgid "The URL must begin with http:// or https://"
msgstr "URL は http:// か https:// で始まります"

#: diskdrake/dav.pm:109
#, c-format
msgid "Server: "
msgstr "サーバ: "

#: diskdrake/dav.pm:110 diskdrake/interactive.pm:489
#: diskdrake/interactive.pm:1273 diskdrake/interactive.pm:1358
#, c-format
msgid "Mount point: "
msgstr "マウントポイント: "

#: diskdrake/dav.pm:111 diskdrake/interactive.pm:1365
#, c-format
msgid "Options: %s"
msgstr "オプション: %s"

#: diskdrake/hd_gtk.pm:54 diskdrake/interactive.pm:298
#: diskdrake/smbnfs_gtk.pm:22 fs/mount_point.pm:106
#: fs/partitioning_wizard.pm:51 fs/partitioning_wizard.pm:206
#: fs/partitioning_wizard.pm:211 fs/partitioning_wizard.pm:250
#: fs/partitioning_wizard.pm:269 fs/partitioning_wizard.pm:274
#, c-format
msgid "Partitioning"
msgstr "パーティションの設定"

#: diskdrake/hd_gtk.pm:68
#, c-format
msgid "Click on a partition, choose a filesystem type then choose an action"
msgstr ""
"先にパーティションをクリックしてファイルシステムの種類を選択してから実行する"
"アクションを選択します"

#: diskdrake/hd_gtk.pm:105 diskdrake/interactive.pm:1089
#: diskdrake/interactive.pm:1099 diskdrake/interactive.pm:1152
#, c-format
msgid "Read carefully"
msgstr "よくお読みください"

#: diskdrake/hd_gtk.pm:105
#, c-format
msgid "Please make a backup of your data first"
msgstr "まずデータをバックアップしてください"

#: diskdrake/hd_gtk.pm:106 diskdrake/interactive.pm:240
#, c-format
msgid "Exit"
msgstr "終了"

#: diskdrake/hd_gtk.pm:106
#, c-format
msgid "Continue"
msgstr "続ける"

#: diskdrake/hd_gtk.pm:178 interactive.pm:653 interactive/gtk.pm:786
#: interactive/gtk.pm:804 interactive/gtk.pm:825 ugtk2.pm:936
#, c-format
msgid "Help"
msgstr "ヘルプ"

#: diskdrake/hd_gtk.pm:224
#, c-format
msgid ""
"You have one big Microsoft Windows partition.\n"
"I suggest you first resize that partition\n"
"(click on it, then click on \"Resize\")"
msgstr ""
"Microsoft Windows の大きなパーティションが 1 つあります。\n"
"このパーティションをリサイズすることをおすすめします。\n"
"(パーティションをクリックして「リサイズ」をクリック)"

#: diskdrake/hd_gtk.pm:226
#, c-format
msgid "Please click on a partition"
msgstr "パーティションをクリックしてください"

#: diskdrake/hd_gtk.pm:240 diskdrake/smbnfs_gtk.pm:63
#, c-format
msgid "Details"
msgstr "詳細"

#: diskdrake/hd_gtk.pm:290
#, c-format
msgid "No hard drives found"
msgstr "ハードドライブが見つかりません"

#: diskdrake/hd_gtk.pm:317
#, c-format
msgid "Unknown"
msgstr "不明"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "Ext3"
msgstr "Ext3"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "XFS"
msgstr "XFS"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "Swap"
msgstr "Swap"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "SunOS"
msgstr "SunOS"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "HFS"
msgstr "HFS"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "Windows"
msgstr "Windows"

#: diskdrake/hd_gtk.pm:380 services.pm:158
#, c-format
msgid "Other"
msgstr "その他"

#: diskdrake/hd_gtk.pm:380 diskdrake/interactive.pm:1288
#, c-format
msgid "Empty"
msgstr "空"

# "FS" instead  of "fairuistemu" because we must keep label narrow
#: diskdrake/hd_gtk.pm:387
#, c-format
msgid "Filesystem types:"
msgstr "ファイルシステムの種類:"

#: diskdrake/hd_gtk.pm:408 diskdrake/interactive.pm:303
#: diskdrake/interactive.pm:388 diskdrake/interactive.pm:546
#: diskdrake/interactive.pm:743 diskdrake/interactive.pm:801
#: diskdrake/interactive.pm:918 diskdrake/interactive.pm:960
#: diskdrake/interactive.pm:961 diskdrake/interactive.pm:1211
#: diskdrake/interactive.pm:1249 diskdrake/interactive.pm:1397 do_pkgs.pm:19
#: do_pkgs.pm:39 do_pkgs.pm:57 do_pkgs.pm:77 harddrake/sound.pm:439
#, c-format
msgid "Warning"
msgstr "警告"

#: diskdrake/hd_gtk.pm:408
#, c-format
msgid "This partition is already empty"
msgstr "このパーティションは既に空です"

#: diskdrake/hd_gtk.pm:417
#, c-format
msgid "Use ``Unmount'' first"
msgstr "まず「アンマウント」を使ってください"

#: diskdrake/hd_gtk.pm:417
#, c-format
msgid "Use ``%s'' instead (in expert mode)"
msgstr "代わりにエキスパートモードで %s を使ってください"

#: diskdrake/hd_gtk.pm:417 diskdrake/interactive.pm:402
#: diskdrake/interactive.pm:584 diskdrake/removable.pm:25
#: diskdrake/removable.pm:48
#, c-format
msgid "Type"
msgstr "種類"

#: diskdrake/interactive.pm:211
#, c-format
msgid "Choose another partition"
msgstr "別のパーティションを選択"

#: diskdrake/interactive.pm:211
#, c-format
msgid "Choose a partition"
msgstr "パーティションを選択"

#: diskdrake/interactive.pm:273 diskdrake/interactive.pm:379
#: interactive/curses.pm:512
#, c-format
msgid "More"
msgstr "詳細"

#: diskdrake/interactive.pm:281 diskdrake/interactive.pm:291
#: diskdrake/interactive.pm:1196
#, c-format
msgid "Confirmation"
msgstr "確認"

#: diskdrake/interactive.pm:281
#, c-format
msgid "Continue anyway?"
msgstr "このまま続けますか?"

#: diskdrake/interactive.pm:286
#, c-format
msgid "Quit without saving"
msgstr "保存せずに終了"

#: diskdrake/interactive.pm:286
#, c-format
msgid "Quit without writing the partition table?"
msgstr "パーティションテーブルを更新せずに終了しますか?"

#: diskdrake/interactive.pm:291
#, c-format
msgid "Do you want to save /etc/fstab modifications"
msgstr "/etc/fstab の変更を保存しますか?"

#: diskdrake/interactive.pm:298 fs/partitioning_wizard.pm:250
#, c-format
msgid "You need to reboot for the partition table modifications to take place"
msgstr "パーティションテーブルの変更を反映するには再起動してください"

#: diskdrake/interactive.pm:303
#, c-format
msgid ""
"You should format partition %s.\n"
"Otherwise no entry for mount point %s will be written in fstab.\n"
"Quit anyway?"
msgstr ""
"パーティション %s をフォーマットする必要があります。\n"
"そうしないと、マウントポイント %s のエントリは fstab に書き込まれません。\n"
"このまま終了しますか?"

#: diskdrake/interactive.pm:316
#, c-format
msgid "Clear all"
msgstr "すべてをクリア"

#: diskdrake/interactive.pm:317
#, c-format
msgid "Auto allocate"
msgstr "自動割り当て"

#: diskdrake/interactive.pm:323
#, c-format
msgid "Toggle to normal mode"
msgstr "標準モードに切り替え"

#: diskdrake/interactive.pm:323
#, c-format
msgid "Toggle to expert mode"
msgstr "エキスパートモードに切り替え"

#: diskdrake/interactive.pm:335
#, c-format
msgid "Hard drive information"
msgstr "ハードドライブの情報"

#: diskdrake/interactive.pm:368
#, c-format
msgid "All primary partitions are used"
msgstr "すべてのプライマリパーティションが使われています"

#: diskdrake/interactive.pm:369
#, c-format
msgid "I can not add any more partitions"
msgstr "これ以上パーティションを追加できません"

#: diskdrake/interactive.pm:370
#, c-format
msgid ""
"To have more partitions, please delete one to be able to create an extended "
"partition"
msgstr ""
"パーティションを増やすには、どれかを削除して拡張パーティションを作成\n"
"できるようにしてください。"

#: diskdrake/interactive.pm:381
#, c-format
msgid "Reload partition table"
msgstr "パーティションテーブルを再読み込み"

#: diskdrake/interactive.pm:388
#, c-format
msgid "Detailed information"
msgstr "詳細情報"

#: diskdrake/interactive.pm:400
#, c-format
msgid "View"
msgstr "表示"

#: diskdrake/interactive.pm:405 diskdrake/interactive.pm:756
#, c-format
msgid "Resize"
msgstr "リサイズ"

#: diskdrake/interactive.pm:406
#, c-format
msgid "Format"
msgstr "フォーマット"

#: diskdrake/interactive.pm:408 diskdrake/interactive.pm:866
#, c-format
msgid "Add to RAID"
msgstr "RAID に追加"

#: diskdrake/interactive.pm:409 diskdrake/interactive.pm:884
#, c-format
msgid "Add to LVM"
msgstr "LVM に追加"

#: diskdrake/interactive.pm:410
#, c-format
msgid "Use"
msgstr "使用"

#: diskdrake/interactive.pm:412
#, c-format
msgid "Delete"
msgstr "削除"

#: diskdrake/interactive.pm:413
#, c-format
msgid "Remove from RAID"
msgstr "RAID から削除"

#: diskdrake/interactive.pm:414
#, c-format
msgid "Remove from LVM"
msgstr "LVM から削除"

#: diskdrake/interactive.pm:415
#, c-format
msgid "Remove from dm"
msgstr "dm から削除"

#: diskdrake/interactive.pm:416
#, c-format
msgid "Modify RAID"
msgstr "RAID を変更"

#: diskdrake/interactive.pm:417
#, c-format
msgid "Use for loopback"
msgstr "ループバックに使用"

#: diskdrake/interactive.pm:428
#, c-format
msgid "Create"
msgstr "作成"

#: diskdrake/interactive.pm:478 diskdrake/interactive.pm:480
#, c-format
msgid "Create a new partition"
msgstr "新しいパーティションを作成"

#: diskdrake/interactive.pm:482
#, c-format
msgid "Start sector: "
msgstr "開始セクタ: "

#: diskdrake/interactive.pm:485 diskdrake/interactive.pm:953
#, c-format
msgid "Size in MB: "
msgstr "サイズ (MB): "

#: diskdrake/interactive.pm:487 diskdrake/interactive.pm:954
#, c-format
msgid "Filesystem type: "
msgstr "ファイルシステムの種類: "

#: diskdrake/interactive.pm:493
#, c-format
msgid "Preference: "
msgstr "設定: "

#: diskdrake/interactive.pm:496
#, c-format
msgid "Logical volume name "
msgstr "論理ボリューム名 "

#: diskdrake/interactive.pm:516
#, c-format
msgid ""
"You can not create a new partition\n"
"(since you reached the maximal number of primary partitions).\n"
"First remove a primary partition and create an extended partition."
msgstr ""
"新しいパーティションを作成できません。\n"
"(基本パーティションの数が上限に達してます)\n"
"基本パーティションを削除し、拡張パーティションを作成してください。"

#: diskdrake/interactive.pm:546
#, c-format
msgid "Remove the loopback file?"
msgstr "ループバックファイルを削除しますか?"

#: diskdrake/interactive.pm:568
#, c-format
msgid ""
"After changing type of partition %s, all data on this partition will be lost"
msgstr ""
"パーティション %s の種類を変更すると、このパーティションの全データが失われま"
"す"

#: diskdrake/interactive.pm:581
#, c-format
msgid "Change partition type"
msgstr "パーティションの種類を変更"

#: diskdrake/interactive.pm:583 diskdrake/removable.pm:47
#, c-format
msgid "Which filesystem do you want?"
msgstr "どのファイルシステムを使いますか?"

#: diskdrake/interactive.pm:590
#, c-format
msgid "Switching from %s to %s"
msgstr "%s  %s に変更"

#: diskdrake/interactive.pm:620
#, c-format
msgid "Set volume label"
msgstr "ボリュームラベルを設定"

#: diskdrake/interactive.pm:622
#, c-format
msgid "Beware, this will be written to disk as soon as you validate!"
msgstr "注意: これは確認すると同時にディスクに書き込まれます。"

#: diskdrake/interactive.pm:623
#, c-format
msgid "Beware, this will be written to disk only after formatting!"
msgstr "注意: これはフォーマットした後にのみディスクに書き込まれます。"

#: diskdrake/interactive.pm:625
#, c-format
msgid "Which volume label?"
msgstr "どのボリュームラベル?"

#: diskdrake/interactive.pm:626
#, c-format
msgid "Label:"
msgstr "ラベル:"

#: diskdrake/interactive.pm:647
#, c-format
msgid "Where do you want to mount the loopback file %s?"
msgstr "ループバックファイル %s をどこにマウントしますか?"

#: diskdrake/interactive.pm:648
#, c-format
msgid "Where do you want to mount device %s?"
msgstr "デバイス %s をどこにマウントしますか?"

#: diskdrake/interactive.pm:653
#, c-format
msgid ""
"Can not unset mount point as this partition is used for loop back.\n"
"Remove the loopback first"
msgstr ""
"このパーティションはループバックに使用されているので、マウント\n"
"ポイントを解除できません。まずループバックを削除してください。"

#: diskdrake/interactive.pm:683
#, c-format
msgid "Where do you want to mount %s?"
msgstr "%s をどこにマウントしますか?"

#: diskdrake/interactive.pm:707 diskdrake/interactive.pm:790
#: fs/partitioning_wizard.pm:146 fs/partitioning_wizard.pm:178
#, c-format
msgid "Resizing"
msgstr "リサイズ中"

#: diskdrake/interactive.pm:707
#, c-format
msgid "Computing FAT filesystem bounds"
msgstr "FAT ファイルシステムの境界を計算"

#: diskdrake/interactive.pm:743
#, c-format
msgid "This partition is not resizeable"
msgstr "このパーティションはリサイズできません"

#: diskdrake/interactive.pm:748
#, c-format
msgid "All data on this partition should be backed-up"
msgstr "このパーティションのデータをバックアップしてください"

#: diskdrake/interactive.pm:750
#, c-format
msgid "After resizing partition %s, all data on this partition will be lost"
msgstr ""
"パーティション %s をリサイズすると、このパーティションの全データが\n"
"失われます"

#: diskdrake/interactive.pm:757
#, c-format
msgid "Choose the new size"
msgstr "新しいサイズを選択"

#: diskdrake/interactive.pm:758
#, c-format
msgid "New size in MB: "
msgstr "新しいサイズ (MB): "

#: diskdrake/interactive.pm:759
#, c-format
msgid "Minimum size: %s MB"
msgstr "最小サイズ: %s MB"

#: diskdrake/interactive.pm:760
#, c-format
msgid "Maximum size: %s MB"
msgstr "最大サイズ: %s MB"

#: diskdrake/interactive.pm:801
#, c-format
msgid ""
"To ensure data integrity after resizing the partition(s),\n"
"filesystem checks will be run on your next boot into Microsoft Windows®"
msgstr ""
"パーティションリサイズ後のデータの完全性を確認するため、次回の\n"
"Microsoft Windows® 起動時にファイルシステムチェックが実行されます。"

#: diskdrake/interactive.pm:849 diskdrake/interactive.pm:1393
#, c-format
msgid "Filesystem encryption key"
msgstr "ファイルシステムの暗号鍵"

#: diskdrake/interactive.pm:850
#, c-format
msgid "Enter your filesystem encryption key"
msgstr "ファイルシステムの暗号鍵を入力してください"

#: diskdrake/interactive.pm:851 diskdrake/interactive.pm:1401
#, c-format
msgid "Encryption key"
msgstr "暗号鍵"

#: diskdrake/interactive.pm:858
#, c-format
msgid "Invalid key"
msgstr "無効な鍵"

#: diskdrake/interactive.pm:866
#, c-format
msgid "Choose an existing RAID to add to"
msgstr "追加する RAID を選んでください"

#: diskdrake/interactive.pm:868 diskdrake/interactive.pm:886
#, c-format
msgid "new"
msgstr "新規"

#: diskdrake/interactive.pm:884
#, c-format
msgid "Choose an existing LVM to add to"
msgstr "追加する LVM を選んでください"

#: diskdrake/interactive.pm:891
#, c-format
msgid "LVM name?"
msgstr "LVM の名前を入力"

#: diskdrake/interactive.pm:918
#, c-format
msgid ""
"Physical volume %s is still in use.\n"
"Do you want to move used physical extents on this volume to other volumes?"
msgstr ""
"物理ボリューム %s は使用中です。\n"
"このボリュームの使用中の物理エクステントを他のボリュームに移動しますか?"

#: diskdrake/interactive.pm:920
#, c-format
msgid "Moving physical extents"
msgstr "物理エクステントを移動"

#: diskdrake/interactive.pm:938
#, c-format
msgid "This partition can not be used for loopback"
msgstr "このパーティションはループバックには使えません"

#: diskdrake/interactive.pm:951
#, c-format
msgid "Loopback"
msgstr "ループバック"

#: diskdrake/interactive.pm:952
#, c-format
msgid "Loopback file name: "
msgstr "ループバックファイルの名前: "

#: diskdrake/interactive.pm:957
#, c-format
msgid "Give a file name"
msgstr "ファイル名を入力"

#: diskdrake/interactive.pm:960
#, c-format
msgid "File is already used by another loopback, choose another one"
msgstr ""
"ファイルは既に別のループバックに使用されています。別のものを選んでください。"

#: diskdrake/interactive.pm:961
#, c-format
msgid "File already exists. Use it?"
msgstr "ファイルは既に存在します。これを使いますか?"

#: diskdrake/interactive.pm:993 diskdrake/interactive.pm:996
#, c-format
msgid "Mount options"
msgstr "マウントオプション"

#: diskdrake/interactive.pm:1003
#, c-format
msgid "Various"
msgstr "その他"

#: diskdrake/interactive.pm:1070
#, c-format
msgid "device"
msgstr "デバイス"

#: diskdrake/interactive.pm:1071
#, c-format
msgid "level"
msgstr "レベル"

#: diskdrake/interactive.pm:1072
#, c-format
msgid "chunk size in KiB"
msgstr "チャンクサイズ (KiB)"

#: diskdrake/interactive.pm:1090
#, c-format
msgid "Be careful: this operation is dangerous."
msgstr "注意: この操作は危険です。"

#: diskdrake/interactive.pm:1105
#, c-format
msgid "Partitioning Type"
msgstr "パーティションの種類"

#: diskdrake/interactive.pm:1105
#, c-format
msgid "What type of partitioning?"
msgstr "パーティション設定の種類"

#: diskdrake/interactive.pm:1143
#, c-format
msgid "You'll need to reboot before the modification can take place"
msgstr "変更を反映させるには再起動してください"

#: diskdrake/interactive.pm:1152
#, c-format
msgid "Partition table of drive %s is going to be written to disk"
msgstr "ドライブ %s のパーティションテーブルをディスクに書き込みます"

#: diskdrake/interactive.pm:1174 fs/format.pm:96 fs/format.pm:103
#, c-format
msgid "Formatting partition %s"
msgstr "パーティション %s をフォーマット中"

#: diskdrake/interactive.pm:1187
#, c-format
msgid "After formatting partition %s, all data on this partition will be lost"
msgstr ""
"パーティション %s をフォーマットすると、このパーティションの全データが\n"
"失われます"

#: diskdrake/interactive.pm:1196 fs/partitioning.pm:48
#, c-format
msgid "Check bad blocks?"
msgstr "不正なブロックをチェックしますか?"

#: diskdrake/interactive.pm:1210
#, c-format
msgid "Move files to the new partition"
msgstr "ファイルを新しいパーティションに移動"

#: diskdrake/interactive.pm:1210
#, c-format
msgid "Hide files"
msgstr "ファイルを隠す"

#: diskdrake/interactive.pm:1211
#, c-format
msgid ""
"Directory %s already contains data\n"
"(%s)\n"
"\n"
"You can either choose to move the files into the partition that will be "
"mounted there or leave them where they are (which results in hiding them by "
"the contents of the mounted partition)"
msgstr ""
"ディレクトリ %s は既にデータを含んでいます\n"
"(%s)\n"
"\n"
"ファイルをそこにマウントされるパーティションに移動するか、現在の場所に残して"
"おくかのいずれかを選択できます。後者の場合は、マウントされたパーティションの"
"内容によってファイルが隠されることになります。"

#: diskdrake/interactive.pm:1226
#, c-format
msgid "Moving files to the new partition"
msgstr "ファイルを新しいパーティションに移動"

#: diskdrake/interactive.pm:1230
#, c-format
msgid "Copying %s"
msgstr "%s をコピー"

#: diskdrake/interactive.pm:1234
#, c-format
msgid "Removing %s"
msgstr "%s を削除"

#: diskdrake/interactive.pm:1248
#, c-format
msgid "partition %s is now known as %s"
msgstr "パーティション %s  %s になりました"

#: diskdrake/interactive.pm:1249
#, c-format
msgid "Partitions have been renumbered: "
msgstr "パーティションの番号が変わりました: "

#: diskdrake/interactive.pm:1274 diskdrake/interactive.pm:1342
#, c-format
msgid "Device: "
msgstr "デバイス: "

#: diskdrake/interactive.pm:1275
#, c-format
msgid "Volume label: "
msgstr "ボリュームラベル: "

#: diskdrake/interactive.pm:1276
#, c-format
msgid "UUID: "
msgstr "UUID: "

#: diskdrake/interactive.pm:1277
#, c-format
msgid "DOS drive letter: %s (just a guess)\n"
msgstr "DOS のドライブ文字: %s (推定)\n"

#: diskdrake/interactive.pm:1281 diskdrake/interactive.pm:1290
#: diskdrake/interactive.pm:1361
#, c-format
msgid "Type: "
msgstr "種類: "

#: diskdrake/interactive.pm:1285 diskdrake/interactive.pm:1346
#, c-format
msgid "Name: "
msgstr "名前: "

#: diskdrake/interactive.pm:1292
#, c-format
msgid "Start: sector %s\n"
msgstr "開始: セクタ %s\n"

#: diskdrake/interactive.pm:1293
#, c-format
msgid "Size: %s"
msgstr "サイズ: %s"

#: diskdrake/interactive.pm:1295
#, c-format
msgid ", %s sectors"
msgstr ", %s セクタ"

#: diskdrake/interactive.pm:1297
#, c-format
msgid "Cylinder %d to %d\n"
msgstr "シリンダ %d から %d まで\n"

#: diskdrake/interactive.pm:1298
#, c-format
msgid "Number of logical extents: %d\n"
msgstr "論理エクステントの数: %d\n"

#: diskdrake/interactive.pm:1299
#, c-format
msgid "Formatted\n"
msgstr "フォーマット済み\n"

#: diskdrake/interactive.pm:1300
#, c-format
msgid "Not formatted\n"
msgstr "未フォーマット\n"

#: diskdrake/interactive.pm:1301
#, c-format
msgid "Mounted\n"
msgstr "マウント済み\n"

#: diskdrake/interactive.pm:1302
#, c-format
msgid "RAID %s\n"
msgstr "RAID %s\n"

#: diskdrake/interactive.pm:1304
#, c-format
msgid "Encrypted"
msgstr "暗号化"

#: diskdrake/interactive.pm:1304
#, c-format
msgid " (mapped on %s)"
msgstr ""

#: diskdrake/interactive.pm:1305
#, c-format
msgid " (to map on %s)"
msgstr ""

#: diskdrake/interactive.pm:1306
#, c-format
msgid " (inactive)"
msgstr ""

#: diskdrake/interactive.pm:1312
#, c-format
msgid ""
"Loopback file(s):\n"
"   %s\n"
msgstr ""
"ループバックファイル:\n"
"   %s\n"

#: diskdrake/interactive.pm:1313
#, c-format
msgid ""
"Partition booted by default\n"
"    (for MS-DOS boot, not for lilo)\n"
msgstr ""
"デフォルトで起動するパーティション\n"
"    (MS-DOS 用 - LILO 用ではありません)\n"

#: diskdrake/interactive.pm:1315
#, c-format
msgid "Level %s\n"
msgstr "レベル %s\n"

#: diskdrake/interactive.pm:1316
#, c-format
msgid "Chunk size %d KiB\n"
msgstr "チャンクサイズ %d KiB\n"

#: diskdrake/interactive.pm:1317
#, c-format
msgid "RAID-disks %s\n"
msgstr "RAID ディスク %s\n"

#: diskdrake/interactive.pm:1319
#, c-format
msgid "Loopback file name: %s"
msgstr "ループバックファイル名: %s"

#: diskdrake/interactive.pm:1322
#, c-format
msgid ""
"\n"
"Chances are, this partition is\n"
"a Driver partition. You should\n"
"probably leave it alone.\n"
msgstr ""
"\n"
"このパーティションは\n"
"ドライバパーティションのようです。\n"
"そのままにしておいてください。\n"

#: diskdrake/interactive.pm:1325
#, c-format
msgid ""
"\n"
"This special Bootstrap\n"
"partition is for\n"
"dual-booting your system.\n"
msgstr ""
"\n"
"このブートストラップ\n"
"パーティションは\n"
"デュアルブート用です。\n"

#: diskdrake/interactive.pm:1334
#, c-format
msgid "Free space on %s (%s)"
msgstr "%s の空き容量 (%s)"

#: diskdrake/interactive.pm:1343
#, c-format
msgid "Read-only"
msgstr "読み取り専用"

#: diskdrake/interactive.pm:1344
#, c-format
msgid "Size: %s\n"
msgstr "サイズ: %s\n"

#: diskdrake/interactive.pm:1345
#, c-format
msgid "Geometry: %s cylinders, %s heads, %s sectors\n"
msgstr "ジオメトリ: %s シリンダ, %s ヘッド, %s セクタ\n"

#: diskdrake/interactive.pm:1347
#, c-format
msgid "Medium type: "
msgstr "メディアの種類: "

#: diskdrake/interactive.pm:1348
#, c-format
msgid "LVM-disks %s\n"
msgstr "LVM ディスク %s\n"

#: diskdrake/interactive.pm:1349
#, c-format
msgid "Partition table type: %s\n"
msgstr "パーティションテーブルの種類: %s\n"

#: diskdrake/interactive.pm:1350
#, c-format
msgid "on channel %d id %d\n"
msgstr "on channel %d ID %d\n"

#: diskdrake/interactive.pm:1394
#, c-format
msgid "Choose your filesystem encryption key"
msgstr "ファイルシステムの暗号鍵を選んでください"

#: diskdrake/interactive.pm:1397
#, c-format
msgid "This encryption key is too simple (must be at least %d characters long)"
msgstr "この暗号鍵は簡単すぎます (最低でも %d 文字以上にしてください)"

#: diskdrake/interactive.pm:1398
#, c-format
msgid "The encryption keys do not match"
msgstr "暗号鍵が一致しません"

#: diskdrake/interactive.pm:1402
#, c-format
msgid "Encryption key (again)"
msgstr "暗号鍵 (再入力)"

#: diskdrake/interactive.pm:1404
#, c-format
msgid "Encryption algorithm"
msgstr "暗号化アルゴリズム"

#: diskdrake/removable.pm:46
#, c-format
msgid "Change type"
msgstr "種類を変更"

#: diskdrake/smbnfs_gtk.pm:81 interactive.pm:129 interactive.pm:550
#: interactive/curses.pm:260 interactive/http.pm:104 interactive/http.pm:160
#: interactive/stdio.pm:39 interactive/stdio.pm:148 mygtk2.pm:817 ugtk2.pm:415
#: ugtk2.pm:517 ugtk2.pm:526 ugtk2.pm:812
#, c-format
msgid "Cancel"
msgstr "キャンセル"

#: diskdrake/smbnfs_gtk.pm:164
#, c-format
msgid "Can not login using username %s (bad password?)"
msgstr "ユーザ名 %s でログインできません (不正なパスワード?)"

#: diskdrake/smbnfs_gtk.pm:168 diskdrake/smbnfs_gtk.pm:177
#, c-format
msgid "Domain Authentication Required"
msgstr "ドメイン認証が必要です"

#: diskdrake/smbnfs_gtk.pm:169
#, c-format
msgid "Which username"
msgstr "どのユーザ名"

#: diskdrake/smbnfs_gtk.pm:169
#, c-format
msgid "Another one"
msgstr "別のもの"

#: diskdrake/smbnfs_gtk.pm:178
#, c-format
msgid ""
"Please enter your username, password and domain name to access this host."
msgstr ""
"このホストにアクセスするにはユーザ名/パスワード/ドメイン名を入力してください"

#: diskdrake/smbnfs_gtk.pm:180
#, c-format
msgid "Username"
msgstr "ユーザ名"

#: diskdrake/smbnfs_gtk.pm:182
#, c-format
msgid "Domain"
msgstr "ドメイン"

#: diskdrake/smbnfs_gtk.pm:206
#, c-format
msgid "Search servers"
msgstr "サーバを検索"

#: diskdrake/smbnfs_gtk.pm:211
#, c-format
msgid "Search new servers"
msgstr "新しいサーバを検索"

#: do_pkgs.pm:19 do_pkgs.pm:57
#, c-format
msgid "The package %s needs to be installed. Do you want to install it?"
msgstr "パッケージ %s が必要です。インストールしますか?"

#: do_pkgs.pm:23 do_pkgs.pm:44 do_pkgs.pm:60 do_pkgs.pm:82
#, c-format
msgid "Could not install the %s package!"
msgstr "%s パッケージをインストールできません"

#: do_pkgs.pm:28 do_pkgs.pm:65
#, c-format
msgid "Mandatory package %s is missing"
msgstr "必要なパッケージ %s がありません"

#: do_pkgs.pm:39 do_pkgs.pm:77
#, c-format
msgid "The following packages need to be installed:\n"
msgstr "以下のパッケージをインストールします:\n"

#: do_pkgs.pm:241
#, c-format
msgid "Installing packages..."
msgstr "パッケージをインストール中..."

#: do_pkgs.pm:287 pkgs.pm:265
#, c-format
msgid "Removing packages..."
msgstr "パッケージを削除..."

#: fs/any.pm:17
#, c-format
msgid ""
"An error occurred - no valid devices were found on which to create new "
"filesystems. Please check your hardware for the cause of this problem"
msgstr ""
"エラー発生 - 新しいファイルシステムを作成するためのデバイスが\n"
"見つかりません。ハードウェアを確認してください。"

#: fs/any.pm:75 fs/partitioning_wizard.pm:59
#, c-format
msgid "You must have a FAT partition mounted in /boot/efi"
msgstr "/boot/efi にマウントされた FAT パーティションが必要です"

#: fs/format.pm:100
#, c-format
msgid "Creating and formatting file %s"
msgstr "ファイル %s の作成とフォーマット"

#: fs/format.pm:119
#, c-format
msgid "I do not know how to set label on %s with type %s"
msgstr "%s にタイプ %s のラベルを設定する方法がわかりません"

#: fs/format.pm:126
#, c-format
msgid "setting label on %s failed, is it formatted?"
msgstr "%s にラベルを設定できませんでした。フォーマットされていますか?"

#: fs/format.pm:167
#, c-format
msgid "I do not know how to format %s in type %s"
msgstr "%s  %s でフォーマットする方法がわかりません"

#: fs/format.pm:172 fs/format.pm:174
#, c-format
msgid "%s formatting of %s failed"
msgstr "%2$s を %1$s にフォーマットできませんでした"

#: fs/loopback.pm:24
#, c-format
msgid "Circular mounts %s\n"
msgstr "巡回マウント %s\n"

#: fs/mount.pm:79
#, c-format
msgid "Mounting partition %s"
msgstr "パーティション %s をマウント中"

#: fs/mount.pm:80
#, c-format
msgid "mounting partition %s in directory %s failed"
msgstr "パーティション %s をディレクトリ %s にマウントできませんでした"

#: fs/mount.pm:85 fs/mount.pm:102
#, c-format
msgid "Checking %s"
msgstr "%s をチェック中"

#: fs/mount.pm:119 partition_table.pm:405
#, c-format
msgid "error unmounting %s: %s"
msgstr "%s をアンマウント中にエラー: %s"

#: fs/mount.pm:134
#, c-format
msgid "Enabling swap partition %s"
msgstr "swap パーティション %s を有効にしています"

#: fs/mount_options.pm:114
#, c-format
msgid "Use an encrypted file system"
msgstr "暗号化ファイルシステムを使う"

#: fs/mount_options.pm:116
#, c-format
msgid "Flush write cache on file close"
msgstr "ファイルを閉じるときに書き込みキャッシュを消去する"

#: fs/mount_options.pm:118
#, c-format
msgid "Enable group disk quota accounting and optionally enforce limits"
msgstr "グループディスククォータを有効にしオプションで制限を強制する"

#: fs/mount_options.pm:120
#, c-format
msgid ""
"Do not update inode access times on this file system\n"
"(e.g, for faster access on the news spool to speed up news servers)."
msgstr ""
"このファイルシステムで inode アクセス時間を更新しない。\n"
"(用途例: ニューススプールへのアクセス速度を向上させる)"

#: fs/mount_options.pm:123
#, c-format
msgid ""
"Update inode access times on this filesystem in a more efficient way\n"
"(e.g, for faster access on the news spool to speed up news servers)."
msgstr ""
"このファイルシステムで inode アクセス時間をより効果的な方法で更新する。\n"
"(用途例: ニューススプールへのアクセス速度を向上させる)"

#: fs/mount_options.pm:126
#, c-format
msgid ""
"Can only be mounted explicitly (i.e.,\n"
"the -a option will not cause the file system to be mounted)."
msgstr ""
"明示的に指定された場合のみマウントする。\n"
"('-a' オプションではマウントしない)"

#: fs/mount_options.pm:129
#, c-format
msgid "Do not interpret character or block special devices on the file system."
msgstr ""
"このファイルシステム上にあるキャラクタ・スペシャル・デバイスやブロック・スペ"
"シャル・デバイスを解釈しない。"

#: fs/mount_options.pm:131
#, c-format
msgid ""
"Do not allow execution of any binaries on the mounted\n"
"file system. This option might be useful for a server that has file systems\n"
"containing binaries for architectures other than its own."
msgstr ""
"マウントしたファイルシステムでバイナリの実行を禁止する。このオプションは他の"
"アーキテクチャのバイナリを含むサーバで有用です。"

#: fs/mount_options.pm:135
#, c-format
msgid ""
"Do not allow set-user-identifier or set-group-identifier\n"
"bits to take effect. (This seems safe, but is in fact rather unsafe if you\n"
"have suidperl(1) installed.)"
msgstr ""
"set-user-identifier や set-group-identifier を無効にする。(安全に見えますが "
"suidperl(1) がインストールされている場合は、かえって危険です)"

#: fs/mount_options.pm:139
#, c-format
msgid "Mount the file system read-only."
msgstr "ファイルシステムを読み込み専用でマウントする"

#: fs/mount_options.pm:141
#, c-format
msgid "All I/O to the file system should be done synchronously."
msgstr "ファイルシステムへのすべての I/O を同期的に行う"

#: fs/mount_options.pm:143
#, c-format
msgid "Allow every user to mount and umount the file system."
msgstr "すべてのユーザにファイルシステムのマウント/アンマウントを許可する"

#: fs/mount_options.pm:145
#, c-format
msgid "Allow an ordinary user to mount the file system."
msgstr "一般ユーザにファイルシステムのマウントを許可する"

#: fs/mount_options.pm:147
#, c-format
msgid "Enable user disk quota accounting, and optionally enforce limits"
msgstr "ユーザディスククォータを有効にしオプションで制限を強制する"

#: fs/mount_options.pm:149
#, c-format
msgid "Support \"user.\" extended attributes"
msgstr "\"user.\" 拡張属性をサポートする"

#: fs/mount_options.pm:151
#, c-format
msgid "Give write access to ordinary users"
msgstr "一般ユーザに書き込み権限を与える"

#: fs/mount_options.pm:153
#, c-format
msgid "Give read-only access to ordinary users"
msgstr "一般ユーザに読み取りのみの権限を与える"

#: fs/mount_point.pm:80
#, c-format
msgid "Duplicate mount point %s"
msgstr "マウントポイント %s は重複しています"

#: fs/mount_point.pm:95
#, c-format
msgid "No partition available"
msgstr "利用可能なパーティションがありません"

#: fs/mount_point.pm:98
#, c-format
msgid "Scanning partitions to find mount points"
msgstr "パーティションをスキャンしてマウントポイントを探しています"

#: fs/mount_point.pm:105
#, c-format
msgid "Choose the mount points"
msgstr "マウントポイントを選択"

#: fs/partitioning.pm:46
#, c-format
msgid "Choose the partitions you want to format"
msgstr "フォーマットするパーティションを選んでください"

#: fs/partitioning.pm:75
#, c-format
msgid ""
"Failed to check filesystem %s. Do you want to repair the errors? (beware, "
"you can lose data)"
msgstr ""
"ファイルシステム %s のチェックに失敗しました。エラーを修復しますか?\n"
"(注意: データが失われる可能性があります)"

#: fs/partitioning.pm:78
#, c-format
msgid "Not enough swap space to fulfill installation, please add some"
msgstr "インストールするには swap 領域が足りません。追加してください。"

#: fs/partitioning_wizard.pm:51
#, c-format
msgid ""
"You must have a root partition.\n"
"For this, create a partition (or click on an existing one).\n"
"Then choose action ``Mount point'' and set it to `/'"
msgstr ""
"rootパーティションが必要です。\n"
"パーティションを作成 (または既存のものをクリック) してください。\n"
"「マウントポイント」を押して '/' にセットしてください。"

#: fs/partitioning_wizard.pm:56
#, c-format
msgid ""
"You do not have a swap partition.\n"
"\n"
"Continue anyway?"
msgstr ""
"swap パーティションがありません\n"
"\n"
"このまま続けますか?"

#: fs/partitioning_wizard.pm:84
#, c-format
msgid "Use free space"
msgstr "空き領域を使う"

#: fs/partitioning_wizard.pm:86
#, c-format
msgid "Not enough free space to allocate new partitions"
msgstr "新しいパーティションに割り当てる十分な空き領域がありません"

#: fs/partitioning_wizard.pm:94
#, c-format
msgid "Use existing partitions"
msgstr "既存のパーティションを使う"

#: fs/partitioning_wizard.pm:96
#, c-format
msgid "There is no existing partition to use"
msgstr "使用できるパーティションがありません"

#: fs/partitioning_wizard.pm:103
#, c-format
msgid "Use the Microsoft Windows® partition for loopback"
msgstr "ループバックに Microsoft Windows® パーティションを使う"

#: fs/partitioning_wizard.pm:106
#, c-format
msgid "Which partition do you want to use for Linux4Win?"
msgstr "どのパーティションに Linux4Win を入れますか?"

#: fs/partitioning_wizard.pm:108
#, c-format
msgid "Choose the sizes"
msgstr "サイズを選択"

#: fs/partitioning_wizard.pm:109
#, c-format
msgid "Root partition size in MB: "
msgstr "root パーティションのサイズ (MB):"

#: fs/partitioning_wizard.pm:110
#, c-format
msgid "Swap partition size in MB: "
msgstr "swap パーティションのサイズ (MB): "

#: fs/partitioning_wizard.pm:119
#, c-format
msgid "There is no FAT partition to use as loopback (or not enough space left)"
msgstr ""
"ループバックに使う FAT パーティションがありません (または容量が不足していま"
"す)"

#: fs/partitioning_wizard.pm:127
#, c-format
msgid "Use the free space on a Microsoft Windows® partition"
msgstr "Microsoft Windows® パーティションの空き領域を使う"

#: fs/partitioning_wizard.pm:129
#, c-format
msgid "Which partition do you want to resize?"
msgstr "どのパーティションをリサイズしますか?"

#: fs/partitioning_wizard.pm:143
#, c-format
msgid ""
"The FAT resizer is unable to handle your partition, \n"
"the following error occurred: %s"
msgstr ""
"FAT のサイズ変更ツールがパーティションを操作できません。\n"
"以下のエラーが発生: %s"

#: fs/partitioning_wizard.pm:146
#, c-format
msgid "Computing the size of the Microsoft Windows® partition"
msgstr "Microsoft Windows® パーティションのサイズを計算"

#: fs/partitioning_wizard.pm:153
#, c-format
msgid ""
"Your Microsoft Windows® partition is too fragmented. Please reboot your "
"computer under Microsoft Windows®, run the ``defrag'' utility, then restart "
"the Mandriva Linux installation."
msgstr ""
"Microsoft Windows® パーティションが断片化しすぎています。再起動して "
"Microsoft Windows® を立ち上げ、\n"
"デフラグを実行してください。その後再起動して Mandriva Linux をインストール\n"
"してください。"

#: fs/partitioning_wizard.pm:156
#, c-format
msgid ""
"WARNING!\n"
"\n"
"\n"
"Your Microsoft Windows® partition will be now resized.\n"
"\n"
"\n"
"Be careful: this operation is dangerous. If you have not already done so, "
"you first need to exit the installation, run \"chkdsk c:\" from a Command "
"Prompt under Microsoft Windows® (beware, running graphical program \"scandisk"
"\" is not enough, be sure to use \"chkdsk\" in a Command Prompt!), "
"optionally run defrag, then restart the installation. You should also backup "
"your data.\n"
"\n"
"\n"
"When sure, press %s."
msgstr ""
"警告\n"
"\n"
"\n"
"これから Microsoft Windows® のパーティションをリサイズします。\n"
"\n"
"\n"
"これは危険な操作です。実行済みでなければインストールを中止して、Microsoft "
"Windows® のコマンドプロンプトで \"chkdsk c:\" を実行してください。グラフィカ"
"ルプログラム \"scandisk\" では不十分です。必ず \"chkdsk\" を実行してくださ"
"い。そして、必須ではありませんがデフラグも実行し、改めてインストールを開始し"
"てください。データのバックアップも忘れずに作成しておいてください。\n"
"\n"
"\n"
"よろしければ「%s」を押してください。"

#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: fs/partitioning_wizard.pm:165 interactive.pm:549 interactive/curses.pm:263
#: ugtk2.pm:519
#, c-format
msgid "Next"
msgstr "次へ"

#: fs/partitioning_wizard.pm:168
#, c-format
msgid "Partitionning"
msgstr "パーティションの設定"

#: fs/partitioning_wizard.pm:168
#, c-format
msgid "Which size do you want to keep for Microsoft Windows® on partition %s?"
msgstr ""
"Microsoft Windows® 用にパーティション %s に残しておくサイズを指定してください"

#: fs/partitioning_wizard.pm:169
#, c-format
msgid "Size"
msgstr "サイズ"

#: fs/partitioning_wizard.pm:178
#, c-format
msgid "Resizing Microsoft Windows® partition"
msgstr "Microsoft Windows® パーティションのリサイズ"

#: fs/partitioning_wizard.pm:183
#, c-format
msgid "FAT resizing failed: %s"
msgstr "FAT のリサイズに失敗: %s"

#: fs/partitioning_wizard.pm:186
#, c-format
msgid ""
"To ensure data integrity after resizing the partition(s), \n"
"filesystem checks will be run on your next boot into Microsoft Windows®"
msgstr ""
"パーティションリサイズ後のデータの完全性を確認するため、次回の\n"
"Microsoft Windows® 起動時にファイルシステムチェックが実行されます。"

#: fs/partitioning_wizard.pm:198
#, c-format
msgid "There is no FAT partition to resize (or not enough space left)"
msgstr ""
"リサイズする FAT パーティションがありません (または容量が不足しています)"

#: fs/partitioning_wizard.pm:203
#, c-format
msgid "Remove Microsoft Windows®"
msgstr "Microsoft Windows® を削除"

#: fs/partitioning_wizard.pm:203
#, c-format
msgid "Erase and use entire disk"
msgstr "ディスク全体を消去して使用"

#: fs/partitioning_wizard.pm:205
#, c-format
msgid "You have more than one hard drive, which one do you install linux on?"
msgstr "複数のハードドライブがあります。どこに Linux をインストールしますか?"

#: fs/partitioning_wizard.pm:210 fsedit.pm:600
#, c-format
msgid "ALL existing partitions and their data will be lost on drive %s"
msgstr "ドライブ %s のすべてのパーティションとデータが失われます"

#: fs/partitioning_wizard.pm:220
#, c-format
msgid "Custom disk partitioning"
msgstr "パーティションを手動で設定"

#: fs/partitioning_wizard.pm:226
#, c-format
msgid "Use fdisk"
msgstr "fdisk を使う"

#: fs/partitioning_wizard.pm:229
#, c-format
msgid ""
"You can now partition %s.\n"
"When you are done, do not forget to save using `w'"
msgstr ""
"%s のパーティション設定ができます。\n"
"完了後は 'w' を使って保存してください。"

#: fs/partitioning_wizard.pm:269
#, c-format
msgid "I can not find any room for installing"
msgstr "インストール用の空き容量がありません"

#: fs/partitioning_wizard.pm:278
#, c-format
msgid "The DrakX Partitioning wizard found the following solutions:"
msgstr "以下の解決法があります:"

#: fs/partitioning_wizard.pm:287
#, c-format
msgid "Partitioning failed: %s"
msgstr "パーティション設定に失敗: %s"

#: fs/type.pm:380
#, c-format
msgid "You can not use JFS for partitions smaller than 16MB"
msgstr "16 MB 未満のパーティションに JFS は使えません"

#: fs/type.pm:381
#, c-format
msgid "You can not use ReiserFS for partitions smaller than 32MB"
msgstr "32 MB 未満のパーティションに ReiserFS は使えません"

#: fsedit.pm:24
#, c-format
msgid "simple"
msgstr "シンプル"

#: fsedit.pm:28
#, c-format
msgid "with /usr"
msgstr "/usr で"

#: fsedit.pm:33
#, c-format
msgid "server"
msgstr "サーバ"

#: fsedit.pm:137
#, c-format
msgid "BIOS software RAID detected on disks %s. Activate it?"
msgstr "ディスク %s に BIOS ソフトウェア RAID を検出しました。有効にしますか?"

#: fsedit.pm:247
#, c-format
msgid ""
"I can not read the partition table of device %s, it's too corrupted for me :"
"(\n"
"I can try to go on, erasing over bad partitions (ALL DATA will be lost!).\n"
"The other solution is to not allow DrakX to modify the partition table.\n"
"(the error is %s)\n"
"\n"
"Do you agree to lose all the partitions?\n"
msgstr ""
"デバイス %s のパーティションテーブルを読めません。壊れているようです。\n"
"不正なパーティションを消せば続行できますが、全データが失われます。\n"
"DrakX にパーティションテーブルを変更させないこともできます。\n"
"(エラー: %s)\n"
"\n"
"全パーティションを消去しますか?\n"

#: fsedit.pm:425
#, c-format
msgid "Mount points must begin with a leading /"
msgstr "マウントポイントは / で始まります"

#: fsedit.pm:426
#, c-format
msgid "Mount points should contain only alphanumerical characters"
msgstr "マウントポイントにはアルファベットと数字しか使えません"

#: fsedit.pm:427
#, c-format
msgid "There is already a partition with mount point %s\n"
msgstr "マウントポイント %s には既にパーティションがあります\n"

#: fsedit.pm:431
#, c-format
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
"Please be sure to add a /boot partition"
msgstr ""
"root (/) にソフトウェア RAID パーティションを選ばれました。\n"
"/boot パーティションがないとブートローダはこれを操作できません。\n"
"必ず /boot パーティションを追加してください。"

#: fsedit.pm:437
#, c-format
msgid ""
"You can not use the LVM Logical Volume for mount point %s since it spans "
"physical volumes"
msgstr ""
"LVM 論理ボリュームは物理ボリュームに及ぶので、マウントポイント %s には使用で"
"きません。"

#: fsedit.pm:439
#, c-format
msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
"You should create a /boot partition first"
msgstr ""
"LVM 論理ボリュームをルート (/) に選択されました。\n"
"このボリュームが物理ボリュームに及ぶ場合はブートローダはこれを扱えません。\n"
"まず /boot パーティションを作成してください。"

#: fsedit.pm:443 fsedit.pm:445
#, c-format
msgid "This directory should remain within the root filesystem"
msgstr "このディレクトリは root ファイルシステム内に残してください"

#: fsedit.pm:447 fsedit.pm:449
#, c-format
msgid ""
"You need a true filesystem (ext2/ext3, reiserfs, xfs, or jfs) for this mount "
"point\n"
msgstr ""
"このマウントポイントには実在するファイルシステムが必要です。\n"
"(例: ext2/ext3, reiserfs, xfs, jfs)\n"

#: fsedit.pm:451
#, c-format
msgid "You can not use an encrypted file system for mount point %s"
msgstr "マウントポイント %s には暗号化ファイルシステムは使えません"

#: fsedit.pm:516
#, c-format
msgid "Not enough free space for auto-allocating"
msgstr "空き容量が少ないので自動的に割り当てられません"

#: fsedit.pm:518
#, c-format
msgid "Nothing to do"
msgstr "何もすることがありません"

#: harddrake/data.pm:73
#, c-format
msgid "SATA controllers"
msgstr "SATA コントローラ"

#: harddrake/data.pm:82
#, c-format
msgid "RAID controllers"
msgstr "RAID コントローラ"

#: harddrake/data.pm:92
#, c-format
msgid "(E)IDE/ATA controllers"
msgstr "(E)IDE/ATA コントローラ"

#: harddrake/data.pm:103
#, c-format
msgid "Card readers"
msgstr "カードリーダー"

#: harddrake/data.pm:112
#, c-format
msgid "Firewire controllers"
msgstr "Firewire コントローラ"

#: harddrake/data.pm:121
#, c-format
msgid "PCMCIA controllers"
msgstr "PCMCIA コントローラ"

#: harddrake/data.pm:130
#, c-format
msgid "SCSI controllers"
msgstr "SCSI コントローラ"

#: harddrake/data.pm:139
#, c-format
msgid "USB controllers"
msgstr "USB コントローラ"

#: harddrake/data.pm:148
#, c-format
msgid "USB ports"
msgstr "USB ポート"

#: harddrake/data.pm:157
#, c-format
msgid "SMBus controllers"
msgstr "SMBus コントローラ"

#: harddrake/data.pm:166
#, c-format
msgid "Bridges and system controllers"
msgstr "ブリッジとシステムコントローラ"

#: harddrake/data.pm:178
#, c-format
msgid "Floppy"
msgstr "フロッピー"

#: harddrake/data.pm:188
#, c-format
msgid "Zip"
msgstr "Zip"

#: harddrake/data.pm:204
#, c-format
msgid "Hard Disk"
msgstr "ディスク"

#: harddrake/data.pm:214
#, c-format
msgid "USB Mass Storage Devices"
msgstr "USB マスストレージデバイス"

#: harddrake/data.pm:223
#, c-format
msgid "CDROM"
msgstr "CDROM"

#: harddrake/data.pm:233
#, c-format
msgid "CD/DVD burners"
msgstr "CD/DVD ライター"

#: harddrake/data.pm:243
#, c-format
msgid "DVD-ROM"
msgstr "DVD-ROM"

#: harddrake/data.pm:253
#, c-format
msgid "Tape"
msgstr "テープ"

#: harddrake/data.pm:264
#, c-format
msgid "AGP controllers"
msgstr "AGP コントローラ"

#: harddrake/data.pm:273
#, c-format
msgid "Videocard"
msgstr "ビデオカード"

#: harddrake/data.pm:282
#, c-format
msgid "DVB card"
msgstr "DVB カード"

#: harddrake/data.pm:290
#, c-format
msgid "Tvcard"
msgstr "テレビカード"

#: harddrake/data.pm:300
#, c-format
msgid "Other MultiMedia devices"
msgstr "他のマルチメディアデバイス"

#: harddrake/data.pm:309
#, c-format
msgid "Soundcard"
msgstr "サウンドカード"

#: harddrake/data.pm:323
#, c-format
msgid "Webcam"
msgstr "Webcam"

#: harddrake/data.pm:338
#, c-format
msgid "Processors"
msgstr "プロセッサ"

#: harddrake/data.pm:348
#, c-format
msgid "ISDN adapters"
msgstr "ISDN アダプタ"

#: harddrake/data.pm:359
#, c-format
msgid "USB sound devices"
msgstr "USB サウンドデバイス"

#: harddrake/data.pm:368
#, c-format
msgid "Radio cards"
msgstr "ラジオカード"

#: harddrake/data.pm:377
#, c-format
msgid "ATM network cards"
msgstr "ATM ネットワークカード"

#: harddrake/data.pm:386
#, c-format
msgid "WAN network cards"
msgstr "WAN ネットワークカード"

#: harddrake/data.pm:395
#, c-format
msgid "Bluetooth devices"
msgstr "Bluetooth デバイス"

#: harddrake/data.pm:404
#, c-format
msgid "Ethernetcard"
msgstr "Ethernet カード"

#: harddrake/data.pm:421
#, c-format
msgid "Modem"
msgstr "モデム"

#: harddrake/data.pm:431
#, c-format
msgid "ADSL adapters"
msgstr "ADSL アダプタ"

#: harddrake/data.pm:443
#, c-format
msgid "Memory"
msgstr "メモリ"

#: harddrake/data.pm:452
#, c-format
msgid "Printer"
msgstr "プリンタ"

#. -PO: these are joysticks controllers:
#: harddrake/data.pm:466
#, c-format
msgid "Game port controllers"
msgstr "ゲームポートコントローラ"

#: harddrake/data.pm:475
#, c-format
msgid "Joystick"
msgstr "ジョイスティック"

#: harddrake/data.pm:485
#, c-format
msgid "Keyboard"
msgstr "キーボード"

#: harddrake/data.pm:499
#, c-format
msgid "Tablet and touchscreen"
msgstr "タブレットとタッチスクリーン"

#: harddrake/data.pm:508
#, c-format
msgid "Mouse"
msgstr "マウス"

#: harddrake/data.pm:523
#, c-format
msgid "Biometry"
msgstr "バイオメトリクス"

#: harddrake/data.pm:531
#, c-format
msgid "UPS"
msgstr "UPS"

#: harddrake/data.pm:540
#, c-format
msgid "Scanner"
msgstr "スキャナ"

#: harddrake/data.pm:551
#, c-format
msgid "Unknown/Others"
msgstr "不明/その他"

#: harddrake/data.pm:581
#, c-format
msgid "cpu # "
msgstr "CPU # "

#: harddrake/sound.pm:300
#, c-format
msgid "Please Wait... Applying the configuration"
msgstr "設定を適用しています。お待ちください..."

#: harddrake/sound.pm:363
#, c-format
msgid "Enable PulseAudio"
msgstr "PulseAudio を有効にする"

#: harddrake/sound.pm:367
#, c-format
msgid "Automatic routing from ALSA to PulseAudio"
msgstr "ALSA から PulseAudio への自動ルーティング"

#: harddrake/sound.pm:372
#, c-format
msgid "Enable 5.1 sound with Pulse Audio"
msgstr "PulseAudio で 5.1 ch サウンドを有効にする"

#: harddrake/sound.pm:377
#, c-format
msgid "Enable user switching for audio applications"
msgstr "オーディオアプリケーションでユーザの切り替えを有効にする"

#: harddrake/sound.pm:382
#, c-format
msgid "Reset sound mixer to default values"
msgstr "サウンドミキサーをデフォルトの値にリセット"

#: harddrake/sound.pm:387
#, c-format
msgid "Trouble shooting"
msgstr "トラブルシューティング"

#: harddrake/sound.pm:394
#, c-format
msgid "No alternative driver"
msgstr "代替ドライバはありません"

#: harddrake/sound.pm:395
#, c-format
msgid ""
"There's no known OSS/ALSA alternative driver for your sound card (%s) which "
"currently uses \"%s\""
msgstr ""
"お使いのサウンドカード (%s) には OSS/ALSA 代替ドライバがありません。\n"
"現在 %s を使っています。"

#: harddrake/sound.pm:402
#, c-format
msgid "Sound configuration"
msgstr "サウンドの設定"

#: harddrake/sound.pm:404
#, c-format
msgid ""
"Here you can select an alternative driver (either OSS or ALSA) for your "
"sound card (%s)."
msgstr "お使いのサウンドカード (%s) に代替ドライバ (OSS かALSA) を選択できます"

#. -PO: here the first %s is either "OSS" or "ALSA", 
#. -PO: the second %s is the name of the current driver
#. -PO: and the third %s is the name of the default driver
#: harddrake/sound.pm:409
#, c-format
msgid ""
"\n"
"\n"
"Your card currently use the %s\"%s\" driver (default driver for your card is "
"\"%s\")"
msgstr ""
"\n"
"\n"
"お使いのカードは現在 %s %s ドライバを使用しています\n"
"(このカードのデフォルトドライバは %s です)"

#: harddrake/sound.pm:411
#, c-format
msgid ""
"OSS (Open Sound System) was the first sound API. It's an OS independent "
"sound API (it's available on most UNIX(tm) systems) but it's a very basic "
"and limited API.\n"
"What's more, OSS drivers all reinvent the wheel.\n"
"\n"
"ALSA (Advanced Linux Sound Architecture) is a modularized architecture "
"which\n"
"supports quite a large range of ISA, USB and PCI cards.\n"
"\n"
"It also provides a much higher API than OSS.\n"
"\n"
"To use alsa, one can either use:\n"
"- the old compatibility OSS api\n"
"- the new ALSA api that provides many enhanced features but requires using "
"the ALSA library.\n"
msgstr ""
"OSS (Open Sound System) は最初のサウンド API です。OS に依存しない API で\n"
"ほとんどの UNIX(tm) システムに含まれていますが、非常に基本的で制限の\n"
"ある API です。\n"
"さらに、OSSドライバはすべて分りきったことのやり直しにすぎません。\n"
"\n"
"ALSA (Advanced Linux Sound Architecture) はモジュール構造をしていて、\n"
"非常に広範な ISA/USB/PCI カードをサポートしています。\n"
"\n"
"ALSA は OSS よりはるかに優れた API を提供します。\n"
"\n"
"ALSA を利用するには次のいずれかを使います:\n"
"- 古い OSS API との互換性\n"
"- 新しい ALSA API (多くの拡張機能を提供しますが ALSA ライブラリが必要)\n"

#: harddrake/sound.pm:425 harddrake/sound.pm:508
#, c-format
msgid "Driver:"
msgstr "ドライバ:"

#: harddrake/sound.pm:439
#, c-format
msgid ""
"The old \"%s\" driver is blacklisted.\n"
"\n"
"It has been reported to oops the kernel on unloading.\n"
"\n"
"The new \"%s\" driver will only be used on next bootstrap."
msgstr ""
"この古い %s ドライバはブラックリストに載っています。\n"
"\n"
"アンロード時にカーネルに悪影響を及ぼすとの報告があります。\n"
"\n"
"新しい %s ドライバは次のブートストラップから使用されます。"

#: harddrake/sound.pm:447
#, c-format
msgid "No open source driver"
msgstr "オープンソースのドライバがありません"

#: harddrake/sound.pm:448
#, c-format
msgid ""
"There's no free driver for your sound card (%s), but there's a proprietary "
"driver at \"%s\"."
msgstr ""
"お使いのサウンドカード (%s) 用のフリードライバはありませが、\n"
"%s にプロプラエタリドライバがあります。"

#: harddrake/sound.pm:451
#, c-format
msgid "No known driver"
msgstr "既知のドライバがありません"

#: harddrake/sound.pm:452
#, c-format
msgid "There's no known driver for your sound card (%s)"
msgstr "お使いのサウンドカード (%s) 用の既知のドライバはありません"

#: harddrake/sound.pm:467
#, c-format
msgid "Sound trouble shooting"
msgstr "サウンドのトラブルシューティング"

#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: harddrake/sound.pm:470
#, c-format
msgid ""
"The classic bug sound tester is to run the following commands:\n"
"\n"
"\n"
"- \"lspcidrake -v | fgrep -i AUDIO\" will tell you which driver your card "
"uses\n"
"by default\n"
"\n"
"- \"grep sound-slot /etc/modprobe.conf\" will tell you what driver it\n"
"currently uses\n"
"\n"
"- \"/sbin/lsmod\" will enable you to check if its module (driver) is\n"
"loaded or not\n"
"\n"
"- \"/sbin/chkconfig --list sound\" and \"/sbin/chkconfig --list alsa\" will\n"
"tell you if sound and alsa services are configured to be run on\n"
"initlevel 3\n"
"\n"
"- \"aumix -q\" will tell you if the sound volume is muted or not\n"
"\n"
"- \"/sbin/fuser -v /dev/dsp\" will tell which program uses the sound card.\n"
msgstr ""
"サウンドのバグを調べるには以下のコマンドを実行してください:\n"
"\n"
"\n"
"- \"lspcidrake -v | fgrep -i AUDIO\" はお使いのカードのデフォルトドライバを\n"
"表示\n"
"\n"
"- \"grep sound-slot /etc/modprobe.conf\" は現在使用されているドライバを\n"
"表示\n"
"\n"
"- \"/sbin/lsmod\" はドライバのモジュールがロードされているかどうかを\n"
"表示\n"
"\n"
"- \"/sbin/chkconfig --list sound\"  \"/sbin/chkconfig --list alsa\" \n"
"サウンドと ALSA サービスが 'initlevel 3' で有効になっているかどうかを\n"
"表示\n"
"\n"
"- \"aumix -q\" はボリュームがミュートになっているかどうかを表示\n"
"\n"
"- \"/sbin/fuser -v /dev/dsp\" は現在カードを使用しているプログラムを表示\n"

#: harddrake/sound.pm:497
#, c-format
msgid "Let me pick any driver"
msgstr "手動でドライバを選択"

#: harddrake/sound.pm:500
#, c-format
msgid "Choosing an arbitrary driver"
msgstr "任意のドライバを選択"

#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: harddrake/sound.pm:503
#, c-format
msgid ""
"If you really think that you know which driver is the right one for your "
"card\n"
"you can pick one in the above list.\n"
"\n"
"The current driver for your \"%s\" sound card is \"%s\" "
msgstr ""
"お使いのカードに適したドライバがわかっている場合は\n"
"リストの中からひとつ選んでください。\n"
"\n"
"現在のドライバは %s で、お使いのサウンドカードは %s です。"

#: harddrake/v4l.pm:12
#, c-format
msgid "Auto-detect"
msgstr "自動検出"

#: harddrake/v4l.pm:97 harddrake/v4l.pm:285 harddrake/v4l.pm:337
#, c-format
msgid "Unknown|Generic"
msgstr "不明|一般"

#: harddrake/v4l.pm:130
#, c-format
msgid "Unknown|CPH05X (bt878) [many vendors]"
msgstr "不明|CPH05X (bt878) [各種ベンダー]"

#: harddrake/v4l.pm:131
#, c-format
msgid "Unknown|CPH06X (bt878) [many vendors]"
msgstr "不明|CPH06X (bt878) [各種ベンダー]"

#: harddrake/v4l.pm:475
#, c-format
msgid ""
"For most modern TV cards, the bttv module of the GNU/Linux kernel just auto-"
"detect the rights parameters.\n"
"If your card is misdetected, you can force the right tuner and card types "
"here. Just select your tv card parameters if needed."
msgstr ""
"最近のほとんどのテレビカードについては、GNU/Linux カーネルの bttv モジュール"
"が正しいパラメータを自動的に検出します。\n"
"検出されたカードが間違っている場合は、正しいチューナとカードの種類を指定して"
"ください。必要に応じてテレビカードのパラメータを選んでください。"

#: harddrake/v4l.pm:478
#, c-format
msgid "Card model:"
msgstr "カードのモデル:"

#: harddrake/v4l.pm:479
#, c-format
msgid "Tuner type:"
msgstr "チューナの種類:"

#: interactive.pm:128 interactive.pm:549 interactive/curses.pm:263
#: interactive/http.pm:103 interactive/http.pm:156 interactive/stdio.pm:39
#: interactive/stdio.pm:148 interactive/stdio.pm:149 mygtk2.pm:817
#: ugtk2.pm:421 ugtk2.pm:519 ugtk2.pm:812 ugtk2.pm:835
#, c-format
msgid "Ok"
msgstr "OK"

#: interactive.pm:228 modules/interactive.pm:72 ugtk2.pm:811 wizards.pm:156
#, c-format
msgid "Yes"
msgstr "はい"

#: interactive.pm:228 modules/interactive.pm:72 ugtk2.pm:811 wizards.pm:156
#, c-format
msgid "No"
msgstr "いいえ"

#: interactive.pm:262
#, c-format
msgid "Choose a file"
msgstr "ファイルを選択"

#: interactive.pm:387 interactive/gtk.pm:455
#, c-format
msgid "Add"
msgstr "追加"

#: interactive.pm:387 interactive/gtk.pm:455
#, c-format
msgid "Modify"
msgstr "変更"

#: interactive.pm:387 interactive/gtk.pm:455
#, c-format
msgid "Remove"
msgstr "削除"

#: interactive.pm:549 interactive/curses.pm:263 ugtk2.pm:519
#, c-format
msgid "Finish"
msgstr "完了"

#: interactive.pm:550 interactive/curses.pm:260 ugtk2.pm:517
#, c-format
msgid "Previous"
msgstr "戻る"

#: interactive/curses.pm:556 ugtk2.pm:872
#, c-format
msgid "No file chosen"
msgstr "ファイルが選択されていません"

#: interactive/curses.pm:560 ugtk2.pm:876
#, c-format
msgid "You have chosen a directory, not a file"
msgstr "ディレクトリではなくファイルを選んでください"

#: interactive/curses.pm:562 ugtk2.pm:878
#, c-format
msgid "No such directory"
msgstr "指定されたディレクトリは存在しません"

#: interactive/curses.pm:562 ugtk2.pm:878
#, c-format
msgid "No such file"
msgstr "指定されたファイルは存在しません"

#: interactive/gtk.pm:570
#, c-format
msgid "Beware, Caps Lock is enabled"
msgstr "Caps Lock がオンになっています"

#: interactive/stdio.pm:29 interactive/stdio.pm:154
#, c-format
msgid "Bad choice, try again\n"
msgstr "不正な選択です。やり直してください。\n"

#: interactive/stdio.pm:30 interactive/stdio.pm:155
#, c-format
msgid "Your choice? (default %s) "
msgstr "どれにしますか?(デフォルトは %s)"

#: interactive/stdio.pm:54
#, c-format
msgid ""
"Entries you'll have to fill:\n"
"%s"
msgstr ""
"以下の項目に入力してください:\n"
"%s"

#: interactive/stdio.pm:70
#, c-format
msgid "Your choice? (0/1, default `%s') "
msgstr "どれにしますか?(0/1, デフォルトは %s)"

#: interactive/stdio.pm:97
#, c-format
msgid "Button `%s': %s"
msgstr "ボタン'%s': %s"

#: interactive/stdio.pm:98
#, c-format
msgid "Do you want to click on this button?"
msgstr "このボタンをクリックしますか?"

#: interactive/stdio.pm:110
#, c-format
msgid "Your choice? (default `%s'%s) "
msgstr "どれにしますか?(デフォルトは `%s'%s)"

#: interactive/stdio.pm:110
#, c-format
msgid " enter `void' for void entry"
msgstr "無効な項目には 'void' と入力してください"

#: interactive/stdio.pm:128
#, c-format
msgid "=> There are many things to choose from (%s).\n"
msgstr "=> 選択肢はいろいろあります (%s)\n"

#: interactive/stdio.pm:131
#, c-format
msgid ""
"Please choose the first number of the 10-range you wish to edit,\n"
"or just hit Enter to proceed.\n"
"Your choice? "
msgstr ""
"10 のなかで編集する最初の数字を入力してください。\n"
"Enter を押すと、このまま先に進みます。\n"
"どうしますか? "

#: interactive/stdio.pm:144
#, c-format
msgid ""
"=> Notice, a label changed:\n"
"%s"
msgstr ""
"=> 注意: ラベルが変更されました:\n"
"%s"

#: interactive/stdio.pm:151
#, c-format
msgid "Re-submit"
msgstr "再登録"

#. -PO: the string "default:LTR" can be translated *ONLY* as "default:LTR"
#. -PO: or as "default:RTL", depending if your language is written from
#. -PO: left to right, or from right to left; any other string is wrong.
#: lang.pm:193
#, c-format
msgid "default:LTR"
msgstr "default:LTR"

#: lang.pm:210
#, c-format
msgid "Andorra"
msgstr "アンドラ"

#: lang.pm:211 timezone.pm:226
#, c-format
msgid "United Arab Emirates"
msgstr "アラブ首長国連邦"

#: lang.pm:212
#, c-format
msgid "Afghanistan"
msgstr "アフガニスタン"

#: lang.pm:213
#, c-format
msgid "Antigua and Barbuda"
msgstr "アンティグア・バーブーダ"

#: lang.pm:214
#, c-format
msgid "Anguilla"
msgstr "アンギラ"

#: lang.pm:215
#, c-format
msgid "Albania"
msgstr "アルバニア"

#: lang.pm:216
#, c-format
msgid "Armenia"
msgstr "アルメニア"

#: lang.pm:217
#, c-format
msgid "Netherlands Antilles"
msgstr "オランダ領アンティル"

#: lang.pm:218
#, c-format
msgid "Angola"
msgstr "アンゴラ"

#: lang.pm:219
#, c-format
msgid "Antarctica"
msgstr "南極"

#: lang.pm:220 timezone.pm:271
#, c-format
msgid "Argentina"
msgstr "アルゼンチン"

#: lang.pm:221
#, c-format
msgid "American Samoa"
msgstr "米領サモア"

#: lang.pm:222 mirror.pm:12 timezone.pm:229
#, c-format
msgid "Austria"
msgstr "オーストリア"

#: lang.pm:223 mirror.pm:11 timezone.pm:267
#, c-format
msgid "Australia"
msgstr "オーストラリア"

#: lang.pm:224
#, c-format
msgid "Aruba"
msgstr "アルバ"

#: lang.pm:225
#, c-format
msgid "Azerbaijan"
msgstr "アゼルバイジャン"

#: lang.pm:226
#, c-format
msgid "Bosnia and Herzegovina"
msgstr "ボスニア・ヘルツェゴビナ"

#: lang.pm:227
#, c-format
msgid "Barbados"
msgstr "バルバドス"

#: lang.pm:228 timezone.pm:211
#, c-format
msgid "Bangladesh"
msgstr "バングラデシュ"

#: lang.pm:229 mirror.pm:13 timezone.pm:231
#, c-format
msgid "Belgium"
msgstr "ベルギー"

#: lang.pm:230
#, c-format
msgid "Burkina Faso"
msgstr "ブルキナファソ"

#: lang.pm:231 timezone.pm:232
#, c-format
msgid "Bulgaria"
msgstr "ブルガリア"

#: lang.pm:232
#, c-format
msgid "Bahrain"
msgstr "バーレーン"

#: lang.pm:233
#, c-format
msgid "Burundi"
msgstr "ブルンジ"

#: lang.pm:234
#, c-format
msgid "Benin"
msgstr "ベナン"

#: lang.pm:235
#, c-format
msgid "Bermuda"
msgstr "バミューダ諸島"

#: lang.pm:236
#, c-format
msgid "Brunei Darussalam"
msgstr "ブルネイ"

#: lang.pm:237
#, c-format
msgid "Bolivia"
msgstr "ボリビア"

#: lang.pm:238 mirror.pm:14 timezone.pm:272
#, c-format
msgid "Brazil"
msgstr "ブラジル"

#: lang.pm:239
#, c-format
msgid "Bahamas"
msgstr "バハマ"

#: lang.pm:240
#, c-format
msgid "Bhutan"
msgstr "ブータン"

#: lang.pm:241
#, c-format
msgid "Bouvet Island"
msgstr "ブーベ島"

#: lang.pm:242
#, c-format
msgid "Botswana"
msgstr "ボツワナ"

#: lang.pm:243 timezone.pm:230
#, c-format
msgid "Belarus"
msgstr "ベラルーシ"

#: lang.pm:244
#, c-format
msgid "Belize"
msgstr "ベリーズ"

#: lang.pm:245 mirror.pm:15 timezone.pm:261
#, c-format
msgid "Canada"
msgstr "カナダ"

#: lang.pm:246
#, c-format
msgid "Cocos (Keeling) Islands"
msgstr "ココス諸島"

#: lang.pm:247
#, c-format
msgid "Congo (Kinshasa)"
msgstr "コンゴ (Kinshasa)"

#: lang.pm:248
#, c-format
msgid "Central African Republic"
msgstr "中央アフリカ共和国"

#: lang.pm:249
#, c-format
msgid "Congo (Brazzaville)"
msgstr "コンゴ (Brazzaville)"

#: lang.pm:250 mirror.pm:39 timezone.pm:255
#, c-format
msgid "Switzerland"
msgstr "スイス"

#: lang.pm:251
#, c-format
msgid "Cote d'Ivoire"
msgstr "コートジボアール"

#: lang.pm:252
#, c-format
msgid "Cook Islands"
msgstr "クック諸島"

#: lang.pm:253 timezone.pm:273
#, c-format
msgid "Chile"
msgstr "チリ"

#: lang.pm:254
#, c-format
msgid "Cameroon"
msgstr "カメルーン"

#: lang.pm:255 timezone.pm:212
#, c-format
msgid "China"
msgstr "中国"

#: lang.pm:256
#, c-format
msgid "Colombia"
msgstr "コロンビア"

#: lang.pm:257 mirror.pm:16
#, c-format
msgid "Costa Rica"
msgstr "コスタリカ"

#: lang.pm:258
#, c-format
msgid "Serbia & Montenegro"
msgstr "セルビア・モンテネグロ"

#: lang.pm:259
#, c-format
msgid "Cuba"
msgstr "キューバ"

#: lang.pm:260
#, c-format
msgid "Cape Verde"
msgstr "カーボベルデ"

#: lang.pm:261
#, c-format
msgid "Christmas Island"
msgstr "クリスマス島"

#: lang.pm:262
#, c-format
msgid "Cyprus"
msgstr "キプロス"

#: lang.pm:263 mirror.pm:17 timezone.pm:233
#, c-format
msgid "Czech Republic"
msgstr "チェコ"

#: lang.pm:264 mirror.pm:22 timezone.pm:238
#, c-format
msgid "Germany"
msgstr "ドイツ"

#: lang.pm:265
#, c-format
msgid "Djibouti"
msgstr "ジブチ"

#: lang.pm:266 mirror.pm:18 timezone.pm:234
#, c-format
msgid "Denmark"
msgstr "デンマーク"

#: lang.pm:267
#, c-format
msgid "Dominica"
msgstr "ドミニカ"

#: lang.pm:268
#, c-format
msgid "Dominican Republic"
msgstr "ドミニカ共和国"

#: lang.pm:269
#, c-format
msgid "Algeria"
msgstr "アルジェリア"

#: lang.pm:270
#, c-format
msgid "Ecuador"
msgstr "エクアドル"

#: lang.pm:271 mirror.pm:19 timezone.pm:235
#, c-format
msgid "Estonia"
msgstr "エストニア"

#: lang.pm:272
#, c-format
msgid "Egypt"
msgstr "エジプト"

#: lang.pm:273
#, c-format
msgid "Western Sahara"
msgstr "西サハラ"

#: lang.pm:274
#, c-format
msgid "Eritrea"
msgstr "エリトリア"

#: lang.pm:275 mirror.pm:37 timezone.pm:253
#, c-format
msgid "Spain"
msgstr "スペイン"

#: lang.pm:276
#, c-format
msgid "Ethiopia"
msgstr "エチオピア"

#: lang.pm:277 mirror.pm:20 timezone.pm:236
#, c-format
msgid "Finland"
msgstr "フィンランド"

#: lang.pm:278
#, c-format
msgid "Fiji"
msgstr "フィジー"

#: lang.pm:279
#, c-format
msgid "Falkland Islands (Malvinas)"
msgstr "フォークランド諸島 (マルビーナス諸島)"

#: lang.pm:280
#, c-format
msgid "Micronesia"
msgstr "ミクロネシア"

#: lang.pm:281
#, c-format
msgid "Faroe Islands"
msgstr "フェロー諸島"

#: lang.pm:282 mirror.pm:21 timezone.pm:237
#, c-format
msgid "France"
msgstr "フランス"

#: lang.pm:283
#, c-format
msgid "Gabon"
msgstr "ガボン"

#: lang.pm:284 timezone.pm:257
#, c-format
msgid "United Kingdom"
msgstr "英国"

#: lang.pm:285
#, c-format
msgid "Grenada"
msgstr "グレナダ"

#: lang.pm:286
#, c-format
msgid "Georgia"
msgstr "グルジア"

#: lang.pm:287
#, c-format
msgid "French Guiana"
msgstr "仏領ギアナ"

#: lang.pm:288
#, c-format
msgid "Ghana"
msgstr "ガーナ"

#: lang.pm:289
#, c-format
msgid "Gibraltar"
msgstr "ジブラルタル"

#: lang.pm:290
#, c-format
msgid "Greenland"
msgstr "グリーンランド"

#: lang.pm:291
#, c-format
msgid "Gambia"
msgstr "ガンビア"

#: lang.pm:292
#, c-format
msgid "Guinea"
msgstr "ギニア"

#: lang.pm:293
#, c-format
msgid "Guadeloupe"
msgstr "グアドループ"

#: lang.pm:294
#, c-format
msgid "Equatorial Guinea"
msgstr "赤道ギニア"

#: lang.pm:295 mirror.pm:23 timezone.pm:239
#, c-format
msgid "Greece"
msgstr "ギリシャ"

#: lang.pm:296
#, c-format
msgid "South Georgia and the South Sandwich Islands"
msgstr "南ジョージア島・南サンドイッチ諸島"

#: lang.pm:297 timezone.pm:262
#, c-format
msgid "Guatemala"
msgstr "グアテマラ"

#: lang.pm:298
#, c-format
msgid "Guam"
msgstr "グアム"

#: lang.pm:299
#, c-format
msgid "Guinea-Bissau"
msgstr "ギニアビサウ"

#: lang.pm:300
#, c-format
msgid "Guyana"
msgstr "ガイアナ"

#: lang.pm:301
#, c-format
msgid "Hong Kong SAR (China)"
msgstr "Hong Kong SAR (China)"

#: lang.pm:302
#, c-format
msgid "Heard and McDonald Islands"
msgstr "ハード島・マクドナルド諸島"

#: lang.pm:303
#, c-format
msgid "Honduras"
msgstr "ホンジュラス"

#: lang.pm:304
#, c-format
msgid "Croatia"
msgstr "クロアチア"

#: lang.pm:305
#, c-format
msgid "Haiti"
msgstr "ハイチ"

#: lang.pm:306 mirror.pm:24 timezone.pm:240
#, c-format
msgid "Hungary"
msgstr "ハンガリー"

#: lang.pm:307 timezone.pm:215
#, c-format
msgid "Indonesia"
msgstr "インドネシア"

#: lang.pm:308 mirror.pm:25 timezone.pm:241
#, c-format
msgid "Ireland"
msgstr "アイルランド"

#: lang.pm:309 mirror.pm:26 timezone.pm:217
#, c-format
msgid "Israel"
msgstr "イスラエル"

#: lang.pm:310 timezone.pm:214
#, c-format
msgid "India"
msgstr "インド"

#: lang.pm:311
#, c-format
msgid "British Indian Ocean Territory"
msgstr "英領インド洋地域"

#: lang.pm:312
#, c-format
msgid "Iraq"
msgstr "イラク"

#: lang.pm:313 timezone.pm:216
#, c-format
msgid "Iran"
msgstr "イラン"

#: lang.pm:314
#, c-format
msgid "Iceland"
msgstr "アイスランド"

#: lang.pm:315 mirror.pm:27 timezone.pm:242
#, c-format
msgid "Italy"
msgstr "イタリア"

#: lang.pm:316
#, c-format
msgid "Jamaica"
msgstr "ジャマイカ"

#: lang.pm:317
#, c-format
msgid "Jordan"
msgstr "ヨルダン"

#: lang.pm:318 mirror.pm:28 timezone.pm:218
#, c-format
msgid "Japan"
msgstr "日本"

#: lang.pm:319
#, c-format
msgid "Kenya"
msgstr "ケニア"

#: lang.pm:320
#, c-format
msgid "Kyrgyzstan"
msgstr "キルギス"

#: lang.pm:321
#, c-format
msgid "Cambodia"
msgstr "カンボジア"

#: lang.pm:322
#, c-format
msgid "Kiribati"
msgstr "キリバス"

#: lang.pm:323
#, c-format
msgid "Comoros"
msgstr "コモロ"

#: lang.pm:324
#, c-format
msgid "Saint Kitts and Nevis"
msgstr "セントクリストファー・ネビス"

#: lang.pm:325
#, c-format
msgid "Korea (North)"
msgstr "北朝鮮"

#: lang.pm:326 timezone.pm:219
#, c-format
msgid "Korea"
msgstr "韓国"

#: lang.pm:327
#, c-format
msgid "Kuwait"
msgstr "クウェート"

#: lang.pm:328
#, c-format
msgid "Cayman Islands"
msgstr "ケイマン諸島"

#: lang.pm:329
#, c-format
msgid "Kazakhstan"
msgstr "カザフスタン"

#: lang.pm:330
#, c-format
msgid "Laos"
msgstr "ラオス"

#: lang.pm:331
#, c-format
msgid "Lebanon"
msgstr "レバノン"

#: lang.pm:332
#, c-format
msgid "Saint Lucia"
msgstr "セントルシア"

#: lang.pm:333
#, c-format
msgid "Liechtenstein"
msgstr "リヒテンシュタイン"

#: lang.pm:334
#, c-format
msgid "Sri Lanka"
msgstr "スリランカ"

#: lang.pm:335
#, c-format
msgid "Liberia"
msgstr "リベリア"

#: lang.pm:336
#, c-format
msgid "Lesotho"
msgstr "レソト"

#: lang.pm:337 timezone.pm:243
#, c-format
msgid "Lithuania"
msgstr "リトアニア"

#: lang.pm:338 timezone.pm:244
#, c-format
msgid "Luxembourg"
msgstr "ルクセンブルク"

#: lang.pm:339
#, c-format
msgid "Latvia"
msgstr "ラトビア"

#: lang.pm:340
#, c-format
msgid "Libya"
msgstr "リビア"

#: lang.pm:341
#, c-format
msgid "Morocco"
msgstr "モロッコ"

#: lang.pm:342
#, c-format
msgid "Monaco"
msgstr "モナコ"

#: lang.pm:343
#, c-format
msgid "Moldova"
msgstr "モルドバ"

#: lang.pm:344
#, c-format
msgid "Madagascar"
msgstr "マダガスカル"

#: lang.pm:345
#, c-format
msgid "Marshall Islands"
msgstr "マーシャル諸島"

#: lang.pm:346
#, c-format
msgid "Macedonia"
msgstr "マケドニア"

#: lang.pm:347
#, c-format
msgid "Mali"
msgstr "マリ"

#: lang.pm:348
#, c-format
msgid "Myanmar"
msgstr "ミャンマー"

#: lang.pm:349
#, c-format
msgid "Mongolia"
msgstr "モンゴル"

#: lang.pm:350
#, c-format
msgid "Northern Mariana Islands"
msgstr "北マリアナ諸島連邦"

#: lang.pm:351
#, c-format
msgid "Martinique"
msgstr "マルティニク"

#: lang.pm:352
#, c-format
msgid "Mauritania"
msgstr "モーリタニア"

#: lang.pm:353
#, c-format
msgid "Montserrat"
msgstr "モンセラット"

#: lang.pm:354
#, c-format
msgid "Malta"
msgstr "マルタ"

#: lang.pm:355
#, c-format
msgid "Mauritius"
msgstr "モーリシャス"

#: lang.pm:356
#, c-format
msgid "Maldives"
msgstr "モルディブ"

#: lang.pm:357
#, c-format
msgid "Malawi"
msgstr "マラウイ"

#: lang.pm:358 timezone.pm:263
#, c-format
msgid "Mexico"
msgstr "メキシコ"

#: lang.pm:359 timezone.pm:220
#, c-format
msgid "Malaysia"
msgstr "マレーシア"

#: lang.pm:360
#, c-format
msgid "Mozambique"
msgstr "モザンビーク"

#: lang.pm:361
#, c-format
msgid "Namibia"
msgstr "ナミビア"

#: lang.pm:362
#, c-format
msgid "New Caledonia"
msgstr "ニューカレドニア"

#: lang.pm:363
#, c-format
msgid "Niger"
msgstr "ニジェール"

#: lang.pm:364
#, c-format
msgid "Norfolk Island"
msgstr "ノーフォーク島"

#: lang.pm:365
#, c-format
msgid "Nigeria"
msgstr "ナイジェリア"

#: lang.pm:366
#, c-format
msgid "Nicaragua"
msgstr "ニカラグア"

#: lang.pm:367 mirror.pm:29 timezone.pm:245
#, c-format
msgid "Netherlands"
msgstr "オランダ"

#: lang.pm:368 mirror.pm:31 timezone.pm:246
#, c-format
msgid "Norway"
msgstr "ノルウェー"

#: lang.pm:369
#, c-format
msgid "Nepal"
msgstr "ネパール"

#: lang.pm:370
#, c-format
msgid "Nauru"
msgstr "ナウル"

#: lang.pm:371
#, c-format
msgid "Niue"
msgstr "ニウエ"

#: lang.pm:372 mirror.pm:30 timezone.pm:268
#, c-format
msgid "New Zealand"
msgstr "ニュージーランド"

#: lang.pm:373
#, c-format
msgid "Oman"
msgstr "オマーン"

#: lang.pm:374
#, c-format
msgid "Panama"
msgstr "パナマ"

#: lang.pm:375
#, c-format
msgid "Peru"
msgstr "ペルー"

#: lang.pm:376
#, c-format
msgid "French Polynesia"
msgstr "仏領ポリネシア"

#: lang.pm:377
#, c-format
msgid "Papua New Guinea"
msgstr "パプアニューギニア"

#: lang.pm:378 timezone.pm:221
#, c-format
msgid "Philippines"
msgstr "フィリピン"

#: lang.pm:379
#, c-format
msgid "Pakistan"
msgstr "パキスタン"

#: lang.pm:380 mirror.pm:32 timezone.pm:247
#, c-format
msgid "Poland"
msgstr "ポーランド"

#: lang.pm:381
#, c-format
msgid "Saint Pierre and Miquelon"
msgstr "セントピエール島・ミクロン島"

#: lang.pm:382
#, c-format
msgid "Pitcairn"
msgstr "ピトケアン島"

#: lang.pm:383
#, c-format
msgid "Puerto Rico"
msgstr "プエルトリコ"

#: lang.pm:384
#, c-format
msgid "Palestine"
msgstr "パレスチナ"

#: lang.pm:385 mirror.pm:33 timezone.pm:248
#, c-format
msgid "Portugal"
msgstr "ポルトガル"

#: lang.pm:386
#, c-format
msgid "Paraguay"
msgstr "パラグアイ"

#: lang.pm:387
#, c-format
msgid "Palau"
msgstr "パラオ"

#: lang.pm:388
#, c-format
msgid "Qatar"
msgstr "カタール"

#: lang.pm:389
#, c-format
msgid "Reunion"
msgstr "レユニオン"

#: lang.pm:390 timezone.pm:249
#, c-format
msgid "Romania"
msgstr "ルーマニア"

#: lang.pm:391 mirror.pm:34
#, c-format
msgid "Russia"
msgstr "ロシア"

#: lang.pm:392
#, c-format
msgid "Rwanda"
msgstr "ルワンダ"

#: lang.pm:393
#, c-format
msgid "Saudi Arabia"
msgstr "サウジアラビア"

#: lang.pm:394
#, c-format
msgid "Solomon Islands"
msgstr "ソロモン諸島"

#: lang.pm:395
#, c-format
msgid "Seychelles"
msgstr "セーシェル"

#: lang.pm:396
#, c-format
msgid "Sudan"
msgstr "スーダン"

#: lang.pm:397 mirror.pm:38 timezone.pm:254
#, c-format
msgid "Sweden"
msgstr "スウェーデン"

#: lang.pm:398 timezone.pm:222
#, c-format
msgid "Singapore"
msgstr "シンガポール"

#: lang.pm:399
#, c-format
msgid "Saint Helena"
msgstr "セントヘレナ島"

#: lang.pm:400 timezone.pm:252
#, c-format
msgid "Slovenia"
msgstr "スロベニア"

#: lang.pm:401
#, c-format
msgid "Svalbard and Jan Mayen Islands"
msgstr "スバルバール諸島・ヤンマイエン諸"

#: lang.pm:402 mirror.pm:35 timezone.pm:251
#, c-format
msgid "Slovakia"
msgstr "スロバキア"

#: lang.pm:403
#, c-format
msgid "Sierra Leone"
msgstr "シエラレオネ"

#: lang.pm:404
#, c-format
msgid "San Marino"
msgstr "サンマリノ"

#: lang.pm:405
#, c-format
msgid "Senegal"
msgstr "セネガル"

#: lang.pm:406
#, c-format
msgid "Somalia"
msgstr "ソマリア"

#: lang.pm:407
#, c-format
msgid "Suriname"
msgstr "スリナム"

#: lang.pm:408
#, c-format
msgid "Sao Tome and Principe"
msgstr "サントメ・プリンシペ"

#: lang.pm:409
#, c-format
msgid "El Salvador"
msgstr "エルサルバドル"

#: lang.pm:410
#, c-format
msgid "Syria"
msgstr "シリア"

#: lang.pm:411
#, c-format
msgid "Swaziland"
msgstr "スワジランド"

#: lang.pm:412
#, c-format
msgid "Turks and Caicos Islands"
msgstr "タークス諸島・カイコス諸島"

#: lang.pm:413
#, c-format
msgid "Chad"
msgstr "チャド"

#: lang.pm:414
#, c-format
msgid "French Southern Territories"
msgstr "仏領極南諸島"

#: lang.pm:415
#, c-format
msgid "Togo"
msgstr "トーゴ"

#: lang.pm:416 mirror.pm:41 timezone.pm:224
#, c-format
msgid "Thailand"
msgstr "タイ"

#: lang.pm:417
#, c-format
msgid "Tajikistan"
msgstr "タジキスタン"

#: lang.pm:418
#, c-format
msgid "Tokelau"
msgstr "トケラウ諸島"

#: lang.pm:419
#, c-format
msgid "East Timor"
msgstr "東ティモール"

#: lang.pm:420
#, c-format
msgid "Turkmenistan"
msgstr "トルクメニスタン"

#: lang.pm:421
#, c-format
msgid "Tunisia"
msgstr "チュニジア"

#: lang.pm:422
#, c-format
msgid "Tonga"
msgstr "トンガ"

#: lang.pm:423 timezone.pm:225
#, c-format
msgid "Turkey"
msgstr "トルコ"

#: lang.pm:424
#, c-format
msgid "Trinidad and Tobago"
msgstr "トリニダード・トバゴ"

#: lang.pm:425
#, c-format
msgid "Tuvalu"
msgstr "ツバル"

#: lang.pm:426 mirror.pm:40 timezone.pm:223
#, c-format
msgid "Taiwan"
msgstr "台湾"

#: lang.pm:427 timezone.pm:208
#, c-format
msgid "Tanzania"
msgstr "タンザニア"

#: lang.pm:428 timezone.pm:256
#, c-format
msgid "Ukraine"
msgstr "ウクライナ"

#: lang.pm:429
#, c-format
msgid "Uganda"
msgstr "ウガンダ"

#: lang.pm:430
#, c-format
msgid "United States Minor Outlying Islands"
msgstr "米領太平洋諸島"

#: lang.pm:431 mirror.pm:42 timezone.pm:264
#, c-format
msgid "United States"
msgstr "米国"

#: lang.pm:432
#, c-format
msgid "Uruguay"
msgstr "ウルグアイ"

#: lang.pm:433
#, c-format
msgid "Uzbekistan"
msgstr "ウズベキスタン"

#: lang.pm:434
#, c-format
msgid "Vatican"
msgstr "バチカン"

#: lang.pm:435
#, c-format
msgid "Saint Vincent and the Grenadines"
msgstr "セントビンセント・グレナディーン"

#: lang.pm:436
#, c-format
msgid "Venezuela"
msgstr "ベネズエラ"

#: lang.pm:437
#, c-format
msgid "Virgin Islands (British)"
msgstr "英領バージン諸島"

#: lang.pm:438
#, c-format
msgid "Virgin Islands (U.S.)"
msgstr "米領バージン諸島"

#: lang.pm:439
#, c-format
msgid "Vietnam"
msgstr "ベトナム"

#: lang.pm:440
#, c-format
msgid "Vanuatu"
msgstr "バヌアツ"

#: lang.pm:441
#, c-format
msgid "Wallis and Futuna"
msgstr "ワリス・フテュナ諸島"

#: lang.pm:442
#, c-format
msgid "Samoa"
msgstr "サモア"

#: lang.pm:443
#, c-format
msgid "Yemen"
msgstr "イエメン"

#: lang.pm:444
#, c-format
msgid "Mayotte"
msgstr "マヨット"

#: lang.pm:445 mirror.pm:36 timezone.pm:207
#, c-format
msgid "South Africa"
msgstr "南アフリカ"

#: lang.pm:446
#, c-format
msgid "Zambia"
msgstr "ザンビア"

#: lang.pm:447
#, c-format
msgid "Zimbabwe"
msgstr "ジンバブエ"

#: lang.pm:1222
#, c-format
msgid "Welcome to %s"
msgstr "%s へようこそ"

#: lvm.pm:84
#, c-format
msgid "Moving used physical extents to other physical volumes failed"