Localizing text so that people can easily translate to another language.

This commit is contained in:
mikep%oeone.com 2003-02-13 16:37:57 +00:00
Родитель 7a2f3b007c
Коммит 21ee543bbd
15 изменённых файлов: 97 добавлений и 46 удалений

Просмотреть файл

@ -255,7 +255,7 @@
<menuitem label="&calendar.context.editserver.label;" observes="edit_local_calendar_command"/>
<menuitem label="&calendar.context.deleteserver.label;" observes="delete_server_command"/>
<menuitem label="&calendar.context.refreshserver.label;" observes="refresh_remote_calendars"/>
<menuitem label="Publish Calendar" observes="publish_calendar"/>
<menuitem label="&calendar.context.publish.label;" observes="publish_calendar"/>
</popup>
<popup id="oe-date-picker-popup" position="after_start" value="">
@ -311,14 +311,14 @@
<vbox id="left-hand-content" flex="1" persist="width">
<tabbox id="tablist">
<tabs>
<tab label="Calendar"/>
<tab label="Calendars"/>
<tab label="&calendar.calendartab.label;"/>
<tab label="&calendar.listofcalendarstab.label;"/>
</tabs>
<tabpanels>
<tabpanel>
<vbox flex="1">
<calendar flex="1" id="lefthandcalendar" onchange="gCalendarWindow.goToDay( this.value );"/>
<button observes="go_today_command" label="Go To Today"/>
<button observes="go_today_command" label="&calendar.gototoday.button.label;"/>
</vbox>
</tabpanel>

Просмотреть файл

@ -310,21 +310,21 @@
</hbox>
<hbox id="repeat-extenstions-week" disabled="true" disable-controller="repeat" collapsed="false" align="center">
<checkbox disable-controller="repeat" class="repeat-day-class" label="Sun" id="advanced-repeat-week-0" value="0" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Mon" id="advanced-repeat-week-1" value="1" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Tue" id="advanced-repeat-week-2" value="2" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Wed" id="advanced-repeat-week-3" value="3" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Thu" id="advanced-repeat-week-4" value="4" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Fri" id="advanced-repeat-week-5" value="5" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Sat" id="advanced-repeat-week-6" value="6" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.1.Ddd;" id="advanced-repeat-week-0" value="0" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.2.Ddd;" id="advanced-repeat-week-1" value="1" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.3.Ddd;" id="advanced-repeat-week-2" value="2" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.4.Ddd;" id="advanced-repeat-week-3" value="3" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.5.Ddd;" id="advanced-repeat-week-4" value="4" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.6.Ddd;" id="advanced-repeat-week-5" value="5" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.7.Ddd;" id="advanced-repeat-week-6" value="6" checked="false" />
</hbox>
<hbox id="repeat-extenstions-month" diabled="true" collapsed="true" align="center">
<vbox align="center">
<radiogroup id="advanced-repeat-month" disable-controller="repeat">
<radio disable-controller="repeat" id="advanced-repeat-dayofmonth" label="On the xth day of the month" selected="true"/>
<radio disable-controller="repeat" id="advanced-repeat-dayofweek" label="4th Tuesday of the month"/>
<radio disable-controller="repeat" id="advanced-repeat-dayofweek-last" label="Last Tuesday of the month" disabled="true"/>
<radio disable-controller="repeat" id="advanced-repeat-dayofmonth" label="&newevent.advanced.repeat.dayofmonth.label;" selected="true"/>
<radio disable-controller="repeat" id="advanced-repeat-dayofweek" label="&newevent.advanced.repeat.dayofweek.label;"/>
<radio disable-controller="repeat" id="advanced-repeat-dayofweek-last" label="&newevent.advanced.repeat.lastdayofweek.label;" disabled="true"/>
</radiogroup>
</vbox>
</hbox>
@ -466,8 +466,8 @@
ondragdrop="nsDragAndDrop.drop(event, attachmentBucketObserver);"
ondragexit="nsDragAndDrop.dragExit(event, attachmentBucketObserver);"/>
<vbox>
<button onclick="AttachFile()" label="Choose File"/>
<button onclick="removeSelectedAttachment()" label="Remove Selected File"/>
<button onclick="AttachFile()" label="&newevent.choosefile.label;"/>
<button onclick="removeSelectedAttachment()" label="&newevent.removeselectedfile.label;"/>
<spacer flex="1"/>
</vbox>
</tabpanel>

Просмотреть файл

@ -1,8 +1,14 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<dialog
<!-- DTD File with all strings specific to the calendar -->
<!DOCTYPE dialog
[
<!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/global.dtd" > %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
]>
<dialog
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="duplicate-prompt"
title="Duplicate Management"
@ -11,27 +17,26 @@
ondialogaccept="setCancelled(false); return true;"
ondialogcancel="setCancelled(true); return true;"
onload="loadDefaults();"
>
<script type="application/x-javascript" src="chrome://calendar/content/importDuplicatesDialog.js"/>
<groupbox id="dupControls">
<caption id="groupBoxTitle" label="What to do with duplicates:"/>
<caption id="groupBoxTitle" label="&calendar.importdupes.caption.label;"/>
<box align="center">
<radiogroup id="dup-group" >
<radio id="auto-discard" selected="true" label="Automatically discard duplicates" oncommand="togglePrompting(false); setDiscardDuplicates(true);"/>
<radio id="add-duplicates" label="Add duplicates" oncommand="togglePrompting(true); setDiscardDuplicates(false);"/>
<radio id="auto-discard" selected="true" label="&calendar.importdupes.autodiscard.label;" oncommand="togglePrompting(false); setDiscardDuplicates(true);"/>
<radio id="add-duplicates" label="&calendar.importdupes.adddupes.label;" oncommand="togglePrompting(true); setDiscardDuplicates(false);"/>
</radiogroup>
</box>
<hbox style="margin-left: .25in">
<checkbox id="prompt-on-add" disabled="true" selected="true" label="Prompt for each"
<checkbox id="prompt-on-add" disabled="true" selected="true" label="&calendar.importdupes.prompt.label;"
oncommand="this.checked = !this.checked; setPromptOnAdd(this.checked);"/>
</hbox>

Просмотреть файл

@ -128,7 +128,7 @@
<row align="center">
<hbox class="field-label-box-class" pack="end"/>
<hbox flex="1">
<description flex="1">The following fields are optional, and are used for publishing the calendar to a remote location.</description>
<description flex="1">&calendar.local.calendar.dialog.optional.label;</description>
</hbox>
</row>

Просмотреть файл

@ -145,7 +145,7 @@
<menu id="tasksMenu">
<menupopup id="taskPopup">
<menuitem id="calendar-wizard-menu" key="wizard_key" label="Launch Wizard" observes="wizard_command"/>
<menuitem id="calendar-wizard-menu" key="wizard_key" label="&calendar.wizard.label;" accesskey="&calendar.wizard.accesskey;" observes="wizard_command"/>
<menuitem id="calendar-import-menu" key="import_key" label="&calendar.import.label;" accesskey="&calendar.import.accesskey;" observes="import_command"/>
<menuitem id="calendar-export-menu" key="export_key" label="&calendar.export.label;" accesskey="&calendar.export.accesskey;" observes="export_command"/>
<menuitem id="calendar-addserver-menu" label="&calendar.subscribe.label;" observes="new_server_command"/>

Просмотреть файл

@ -58,7 +58,7 @@
</script>
<groupbox>
<caption label="Alarms"/>
<caption label="&pref.alarmbox.label;"/>
<description>&pref.alarmgoesoff.label;</description>
<checkbox id="alarmplaysound" prefstring="calendar.alarms.playsound"
label="&pref.playasound;" />
@ -66,12 +66,12 @@
<checkbox id="alarmshow" prefstring="calendar.alarms.show" label="&pref.showalarmbox;" />
<hbox>
<description>Default address to send alarms to:</description>
<description>&pref.defaultemail.label;</description>
<textbox id="alarmemailaddress" prefstring="calendar.alarms.emailaddress" flex="1"/>
</hbox>
<hbox>
<description>Default text for alarms:</description>
<hbox collapsed="true">
<description>&pref.defaulttext.label;</description>
<textbox id="alarmtext" prefstring="calendar.alarm.text" flex="1"/>
</hbox>

Просмотреть файл

@ -65,13 +65,13 @@
</script>>
<groupbox>
<caption label="Day View"/>
<caption label="&pref.calendar.view.dayview.caption;"/>
<hbox flex="1" align="center">
<description flex="1" >&pref.hour.help.description;</description>
</hbox>
<hbox flex="1" align="center">
<description flex="1" >Restrict Views to </description>
<description>Start time:</description>
<description flex="1" >&pref.calendar.view.restrict.label;</description>
<description>&pref.calendar.view.starttime.label;</description>
<menulist id="daystarthour" preftype="int" prefstring="calendar.event.defaultstarthour" value="8">
<menupopup id="daystarthour">
<menuitem label="&pref.hour.00;" value="0"/>
@ -100,7 +100,7 @@
<menuitem label="&pref.hour.23;" value="23"/>
</menupopup>
</menulist>
<description>End time:</description>
<description>&pref.calendar.view.endtime.label;</description>
<menulist id="dayendhour" preftype="int" prefstring="calendar.event.defaultendhour" value="17">
<menupopup id="dayendhour">
<menuitem label="&pref.hour.00;" value="0"/>
@ -132,7 +132,7 @@
</hbox>
</groupbox>
<groupbox>
<caption label="Week View"/>
<caption label="&pref.calendar.view.weekview.caption;"/>
<hbox align="center">
<description>&pref.weekstarts.label;</description>
<menulist id="weekstarts" prefstring="calendar.week.start">

Просмотреть файл

@ -93,7 +93,7 @@
</row>
<row align="center">
<hbox class="field-label-box-class" pack="end"/>
<description>Something like http://www.myserver.com/webdav/test.ics</description>
<description>&calendar.publish.example.url.description;</description>
</row>
<!-- Username -->
@ -105,7 +105,7 @@
</row>
<row align="center">
<hbox class="field-label-box-class" pack="end"/>
<description>(Optional) The username to upload to this server.</description>
<description>&calendar.publish.username.description;</description>
</row>
<!-- Password -->
@ -117,7 +117,7 @@
</row>
<row align="center">
<hbox class="field-label-box-class" pack="end"/>
<description>(Optional) The password to upload to this server.</description>
<description>&calendar.publish.password.description;</description>
</row>
</rows>
</grid>

Просмотреть файл

@ -66,13 +66,13 @@
<hbox id="repeat-extenstions-week" disabled="true" disable-controller="repeat" collapsed="false" align="center">
<checkbox disable-controller="repeat" class="repeat-day-class" label="Sun" id="advanced-repeat-week-0" value="0" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Mon" id="advanced-repeat-week-1" value="1" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Tue" id="advanced-repeat-week-2" value="2" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Wed" id="advanced-repeat-week-3" value="3" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Thu" id="advanced-repeat-week-4" value="4" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Fri" id="advanced-repeat-week-5" value="5" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="Sat" id="advanced-repeat-week-6" value="6" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.1.Ddd;" id="advanced-repeat-week-0" value="0" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.2.Ddd;" id="advanced-repeat-week-1" value="1" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.3.Ddd;" id="advanced-repeat-week-2" value="2" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.4.Ddd;" id="advanced-repeat-week-3" value="3" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.5.Ddd;" id="advanced-repeat-week-4" value="4" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.6.Ddd;" id="advanced-repeat-week-5" value="5" checked="false" />
<checkbox disable-controller="repeat" class="repeat-day-class" label="&day.7.Ddd;" id="advanced-repeat-week-6" value="6" checked="false" />
</hbox>

Просмотреть файл

@ -572,7 +572,9 @@ WeekView.prototype.refreshDisplay = function( )
var weekNumber = this.getWeekNumber();
var dateString = "Week "+weekNumber+ ": "+firstDayMonthName + " " + firstDayOfWeek.getDate() + " - " +
var weekViewStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties");
var dateString = weekViewStringBundle.GetStringFromName( "Week" )+" "+weekNumber+ ": "+firstDayMonthName + " " + firstDayOfWeek.getDate() + " - " +
lastDayMonthName + " " + lastDayOfWeek.getDate();
var weekTextItem = document.getElementById( "week-title-text" );

Просмотреть файл

@ -52,7 +52,8 @@
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>

Просмотреть файл

@ -106,6 +106,13 @@
<!ENTITY newevent.status.tentative.label "Tentative" >
<!ENTITY newevent.status.confirmed.label "Confirmed" >
<!ENTITY newevent.advanced.repeat.dayofmonth.label "On the xth day of the month">
<!ENTITY newevent.advanced.repeat.dayofweek.label "4th Tuesday of the month">
<!ENTITY newevent.advanced.repeat.lastdayofweek.label "Last Tuesday of the month">
<!ENTITY newevent.choosefile.label "Choose File">
<!ENTITY newevent.removeselectedfile.label "Remove Selected File">
<!ENTITY newtodo.completed.label "Completed">
<!ENTITY newtodo.duedate.label "Due Date">
<!ENTITY newtodo.startdate.label "Start Date">
@ -160,6 +167,12 @@
<!ENTITY calendar.unifinder.todoitems.label "Tasks" >
<!ENTITY calendar.unifinder.hidecompletedtodos.label "Hide Completed Tasks">
<!ENTITY calendar.calendartab.label "Calendar">
<!ENTITY calendar.listofcalendarstab.label "Calendars">
<!ENTITY calendar.gototoday.button.label "Go To Today" >
<!ENTITY calendar.listofcalendarstab.label "Calendars">
<!ENTITY calendar.calendarlistbox.label "Calendars">
<!ENTITY calendar.events.filter.all.label "All Events">
@ -281,6 +294,7 @@
<!ENTITY calendar.context.editserver.label "Edit Calendar">
<!ENTITY calendar.context.deleteserver.label "Delete Calendar">
<!ENTITY calendar.context.refreshserver.label "Refresh Remote Calendars">
<!ENTITY calendar.context.publish.label "Publish Entire Calendar">
<!-- About Dialog -->
<!ENTITY calendar.about.title "About Mozilla Calendar">
@ -312,11 +326,17 @@
<!ENTITY calendar.local.calendar.dialog.help.label "You can optionally specify a file location where the calendar should be created.">
<!ENTITY calendar.server.dialog.help.label "You can enter a local file path, or a remote file path like http://www.mozilla.org/projects/calendar/caldata/CanadaHolidays.ics">
<!ENTITY calendar.local.calendar.dialog.optional.label "The following fields are optional, and are used for publishing the calendar to a remote location.">
<!-- Calendar Publish Dialog -->
<!ENTITY calendar.publish.dialog.title "Publish Calendar">
<!ENTITY calendar.publish.url.label "Publishing URL">
<!ENTITY calendar.publish.username.label "Username">
<!ENTITY calendar.publish.password.label "Password">
<!ENTITY calendar.publish.username.description "(Optional) The username to upload to this server.">
<!ENTITY calendar.publish.password.description "(Optional) The password to upload to this server.">
<!ENTITY calendar.publish.example.url.description "Something like http://www.myserver.com/webdav/test.ics">
<!ENTITY allDayEvents.label "All Day Events">
@ -327,3 +347,9 @@
<!ENTITY calendar.wizard.subscribe.label "Subscribe: Subscribe to a calendar file on a remote machine (ie. on the Internet)">
<!ENTITY calendar.wizard.publish.label "Publish: Publish events to a remote machine (ie. on the Internet) for others to subscribe to.">
<!-- Calendar Import Duplicates Dialog -->
<!ENTITY calendar.importdupes.caption.label "What to do with duplicates:">
<!ENTITY calendar.importdupes.autodiscard.label "Automatically discard duplicates">
<!ENTITY calendar.importdupes.adddupes.label "Add duplicates">
<!ENTITY calendar.importdupes.prompt.label "Prompt for each">

Просмотреть файл

@ -83,3 +83,5 @@ defaultSnoozeAlarmLength=60
dateFormat=0
defaultStartHour=8
defaultEndHour=17
Week=Week

Просмотреть файл

@ -70,6 +70,9 @@
<!ENTITY calendar.import.label "Import From File...">
<!ENTITY calendar.import.accesskey "i">
<!ENTITY calendar.wizard.label "Launch Wizard">
<!ENTITY calendar.wizard.accesskey "w">
<!ENTITY calendar.export.label "Export Selected Events...">
<!ENTITY calendar.export.accesskey "e">

Просмотреть файл

@ -46,7 +46,12 @@
<!ENTITY pref.mainbox.label "General Settings" >
<!ENTITY pref.alarmgoesoff.label "When an alarm goes off:">
<!ENTITY pref.playasound "Play a sound" >
<!ENTITY pref.alarmbox.label "Alarms" >
<!ENTITY pref.showalarmbox "Show an alarm box" >
<!ENTITY pref.defaultemail.label "Default address to send alarms to:">
<!ENTITY pref.defaulttext.label "Default text for alarms:">
<!ENTITY pref.dateformat.label "Date Text Format:" >
<!ENTITY pref.dateformat.long "Long" >
<!ENTITY pref.dateformat.short "Short" >
@ -86,7 +91,14 @@
<!ENTITY pref.hour.20 "20:00" >
<!ENTITY pref.hour.21 "21:00" >
<!ENTITY pref.hour.22 "22:00" >
<!ENTITY pref.hour.23 "23:00" >
<!ENTITY pref.hour.23 "23:00" >
<!ENTITY pref.calendar.view.dayview.caption "Day View">
<!ENTITY pref.calendar.view.weekview.caption "Week View">
<!ENTITY pref.calendar.view.restrict.label "Restrict Views to ">
<!ENTITY pref.calendar.view.starttime.label "Start time:">
<!ENTITY pref.calendar.view.endtime.label "End time:">
<!ENTITY pref.categories.label "Categories" >