Making things more localisable.

This commit is contained in:
Andrew McMillan 2010-02-20 13:44:19 +13:00
parent a2f2e4b342
commit 39aec8c91c
3 changed files with 19 additions and 10 deletions

View File

@ -21,20 +21,16 @@ i18n("Public");
i18n("Resource <!-- a thing which might be booked: a room, a carpark, a projector... -->");
i18n("Resource");
i18n("Relationship <!-- in the sense of a work relationship between people -->");
i18n("No. <!-- short for 'Number' -->");
i18n("No.");
i18n("No <!-- not 'Yes' -->");
i18n("No");
i18n("Yes");
i18n("Id <!-- short for 'Identifier' -->");
i18n("Id");
// The standard relationship names
i18n('Administers');
i18n('is Assistant to');
i18n('Can read from');
i18n('Can see free/busy time of');
i18n('View this user record');
i18n('Edit this user record');
i18n('You are viewing');
@ -42,4 +38,16 @@ i18n('You are editing');
i18n("forget me not <!-- this is a colloquial phrase in english (the name of a flower) and is an option allowing people to log in automatically in future -->");
?>
// Date format types
i18n('European');
i18n('US Format');
i18n('ISO Format');
// Calendar schedule transparency
i18n('Opaque');
i18n('Transparent');
// Unspecified timezone value
i18n('*** Unknown ***');
i18n('Person');

View File

@ -7,7 +7,7 @@ param_to_global('user_no', 'int' );
param_to_global('collection_name', '{^[^\\\\/]+$}' );
if ( isset($user_no) ) $usr = GetUserByID($user_no);
$editor->SetLookup( 'timezone', 'SELECT \'\', \'*** Unknown ***\' UNION SELECT tz_id, tz_locn FROM time_zone WHERE tz_id = tz_locn AND length(tz_spec) > 100 ORDER BY 1' );
$editor->SetLookup( 'schedule_transp', sprintf('SELECT \'opaque\', \'%s\' UNION SELECT \'transp\', \'%s\'', translate('Opaque'), translate('Transparent') ) );
$editor->SetLookup( 'schedule_transp', 'SELECT \'opaque\', \'Opaque\' UNION SELECT \'transp\', \'Transparent\'' );
$editor->AddAttribute('timezone', 'id', 'fld_timezone' );

View File

@ -2,6 +2,7 @@
// Editor component for company records
$editor = new Editor(translate('Principal'), 'dav_principal');
$editor->SetLookup( 'date_format_type', "SELECT 'E', 'European' UNION SELECT 'U', 'US Format' UNION SELECT 'I', 'ISO Format'" );
$editor->SetLookup( 'type_id', 'SELECT principal_type_id, principal_type_desc FROM principal_type ORDER BY principal_type_id' );
$editor->SetLookup( 'locale', 'SELECT \'\', \''.translate("*** Default Locale ***").'\' UNION SELECT locale, locale_name_locale FROM supported_locales ORDER BY 1 ASC' );