mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N.1072 Localization for magic attributes archive_date (completed the existing implementation) and obsolescence_date (full implementation)
SVN:trunk[4946]
This commit is contained in:
@@ -7809,3 +7809,16 @@ class AttributeObsolescenceFlag extends AttributeBoolean
|
||||
}
|
||||
}
|
||||
|
||||
class AttributeObsolescenceDate extends AttributeDate
|
||||
{
|
||||
public function GetLabel($sDefault = null)
|
||||
{
|
||||
$sDefault = Dict::S('Core:AttributeObsolescenceDate/Label', $sDefault);
|
||||
return parent::GetLabel($sDefault);
|
||||
}
|
||||
public function GetDescription($sDefault = null)
|
||||
{
|
||||
$sDefault = Dict::S('Core:AttributeObsolescenceDate/Label+', $sDefault);
|
||||
return parent::GetDescription($sDefault);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1884,7 +1884,7 @@ abstract class MetaModel
|
||||
$oArchiveFlag = new AttributeArchiveFlag('archive_flag');
|
||||
self::AddMagicAttribute($oArchiveFlag, $sClass);
|
||||
|
||||
$oArchiveDate = new AttributeDate('archive_date', array('magic' => true, "allowed_values"=>null, "sql"=>'archive_date', "default_value"=>'', "is_null_allowed"=>true, "depends_on"=>array()));
|
||||
$oArchiveDate = new AttributeArchiveDate('archive_date', array('magic' => true, "allowed_values"=>null, "sql"=>'archive_date', "default_value"=>'', "is_null_allowed"=>true, "depends_on"=>array()));
|
||||
self::AddMagicAttribute($oArchiveDate, $sClass);
|
||||
}
|
||||
elseif (self::$m_aClassParams[$sClass]["archive"])
|
||||
@@ -1907,7 +1907,7 @@ abstract class MetaModel
|
||||
|
||||
if (self::$m_aRootClasses[$sClass] == $sClass)
|
||||
{
|
||||
$oObsolescenceDate = new AttributeDate('obsolescence_date', array('magic' => true, "allowed_values" => null, "sql" => 'obsolescence_date', "default_value" => '', "is_null_allowed" => true, "depends_on" => array()));
|
||||
$oObsolescenceDate = new AttributeObsolescenceDate('obsolescence_date', array('magic' => true, "allowed_values" => null, "sql" => 'obsolescence_date', "default_value" => '', "is_null_allowed" => true, "depends_on" => array()));
|
||||
self::AddMagicAttribute($oObsolescenceDate, $sClass);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -66,6 +66,8 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
|
||||
'Core:AttributeString' => 'Řetězec (string)',
|
||||
'Core:AttributeString+' => 'Alfanumerický řetězec',
|
||||
|
||||
@@ -1414,6 +1414,8 @@ Dict::Add('DA DA', 'Danish', 'Dansk', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
'Core:AttributeString' => 'String',
|
||||
'Core:AttributeString+' => '',
|
||||
'Core:AttributeClass' => 'Class',
|
||||
|
||||
@@ -340,6 +340,8 @@ Dict::Add('DE DE', 'German', 'Deutsch', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
'Core:AttributeString' => 'String',
|
||||
'Core:AttributeString+' => 'Alphanumerischer String',
|
||||
'Core:AttributeClass' => 'Class',
|
||||
|
||||
@@ -64,6 +64,8 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete',
|
||||
|
||||
'Core:AttributeString' => 'String',
|
||||
'Core:AttributeString+' => 'Alphanumeric string',
|
||||
|
||||
@@ -64,6 +64,8 @@ Dict::Add('ES CR', 'Spanish', 'Español, Castellano', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
|
||||
'Core:AttributeString' => 'Cadena de caracteres',
|
||||
'Core:AttributeString+' => 'Cadena de caracteres alfanumerico',
|
||||
|
||||
@@ -449,6 +449,8 @@ Dict::Add('FR FR', 'French', 'Français', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'Non',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolète',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Calculé dynamiquement en fonction d\'autres attributs de l\'objet',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Date obsolescence',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Date approximative du jour où l\'objet est devenu obsolète',
|
||||
|
||||
'Core:AttributeString' => 'Chaîne de caractères',
|
||||
'Core:AttributeString+' => 'Chaîne de caractères (limitée à une ligne)',
|
||||
@@ -693,7 +695,7 @@ Opérateurs :<br/>
|
||||
'Core:BulkExport:CSVFormat' => 'Fichier CSV (*.csv)',
|
||||
'Core:BulkExport:XLSXFormat' => 'Excel 2007 ou plus récent (*.xlsx)',
|
||||
'Core:BulkExport:PDFFormat' => 'Document PDF (*.pdf)',
|
||||
'Core:BulkExport:DragAndDropHelp' => 'Faîtes glisser les en-têtes des colonnes pour modifier leur ordre. Aperçu de %1$s lignes sur un total de %2$s lignes à exporter.',
|
||||
'Core:BulkExport:DragAndDropHelp' => 'Faites glisser les en-têtes des colonnes pour modifier leur ordre. Aperçu de %1$s lignes sur un total de %2$s lignes à exporter.',
|
||||
'Core:BulkExport:EmptyPreview' => 'Selectionnez les colonnes à exporter dans la liste ci-dessus...',
|
||||
'Core:BulkExport:ColumnsOrder' => 'Ordre des colonnes',
|
||||
'Core:BulkExport:AvailableColumnsFrom_Class' => 'Colonnes de la classe %1$s',
|
||||
|
||||
@@ -323,6 +323,8 @@ Dict::Add('HU HU', 'Hungarian', 'Magyar', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
'Core:AttributeString' => 'String',
|
||||
'Core:AttributeString+' => '',
|
||||
'Core:AttributeClass' => 'Class',
|
||||
|
||||
@@ -58,6 +58,8 @@ Dict::Add('IT IT', 'Italian', 'Italiano', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
|
||||
'Core:AttributeString' => 'Stringa',
|
||||
'Core:AttributeString+' => 'Stringa alfanumerica',
|
||||
|
||||
@@ -342,6 +342,8 @@ Dict::Add('JA JP', 'Japanese', '日本語', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
'Core:AttributeString' => '文字列',
|
||||
'Core:AttributeString+' => '文字列',
|
||||
'Core:AttributeClass' => 'クラス',
|
||||
|
||||
@@ -69,6 +69,8 @@ Dict::Add('NL NL', 'Dutch', 'Nederlands', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
|
||||
'Core:AttributeString' => 'String',
|
||||
'Core:AttributeString+' => 'Alphanumerieke string',
|
||||
|
||||
@@ -64,6 +64,8 @@ Dict::Add('PT BR', 'Brazilian', 'Brazilian', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
|
||||
'Core:AttributeString' => 'String',
|
||||
'Core:AttributeString+' => 'Seqüência alfanumérica',
|
||||
|
||||
@@ -50,6 +50,8 @@ Dict::Add('RU RU', 'Russian', 'Русский', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
|
||||
'Core:AttributeString' => 'Строка',
|
||||
'Core:AttributeString+' => 'Alphanumeric string',
|
||||
|
||||
@@ -430,6 +430,8 @@ Dict::Add('TR TR', 'Turkish', 'Türkçe', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
'Core:AttributeString' => 'String~~',
|
||||
'Core:AttributeString+' => 'Alphanumeric string~~',
|
||||
'Core:AttributeClass' => 'Class~~',
|
||||
|
||||
@@ -429,6 +429,8 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', array(
|
||||
'Core:AttributeObsolescenceFlag/Value:no' => 'No~~',
|
||||
'Core:AttributeObsolescenceFlag/Label' => 'Obsolete~~',
|
||||
'Core:AttributeObsolescenceFlag/Label+' => 'Computed dynamically on other attributes~~',
|
||||
'Core:AttributeObsolescenceDate/Label' => 'Obsolescence date~~',
|
||||
'Core:AttributeObsolescenceDate/Label+' => 'Approximative date at which the object has been considered obsolete~~',
|
||||
'Core:AttributeString' => 'String~~',
|
||||
'Core:AttributeString+' => 'Alphanumeric string~~',
|
||||
'Core:AttributeClass' => 'Class~~',
|
||||
|
||||
Reference in New Issue
Block a user