Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
pulling the rest of the strings from XUL - l10n
Browse files Browse the repository at this point in the history
  • Loading branch information
brianking committed Aug 17, 2009
1 parent 0350012 commit 2b08d13
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 51 deletions.
50 changes: 26 additions & 24 deletions chrome/content/settings.xul
Expand Up @@ -3,15 +3,17 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://facebook/skin/settings.css" type="text/css"?>

<!DOCTYPE prefwindow SYSTEM "chrome://facebook/locale/settings.dtd">

<prefwindow id="facebook-settings"
title="Configure the Facebook Toolbar"
title="&settings.window.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
type="prefwindow"
windowtype="facebookToolbar:Preferences"
dlgbuttons="cancel,accept"
onload="var btnAccept=document.documentElement.getButton('accept');btnAccept.hidden = btnAccept.disabled = false;"
>
<prefpane id="facebook-you-pane" label="Configure Facebook Toolbar Notifications"
<prefpane id="facebook-you-pane" label="&settings.panel.title;"
selected="true">
<preferences>
<!-- General Notifications Preferences -->
Expand Down Expand Up @@ -87,46 +89,46 @@
</preferences>

<vbox>
<checkbox preference="toggle" label="Enable Pop-up Notifications"/>
<checkbox preference="toggle" label="&settings.notificationmes.enable.label;"/>
<groupbox>
<label class="header" value="What Facebook happenings prompt a notification?" />
<label class="header" value="&settings.notificationme.header.label;" />
<hbox>
<groupbox id="facebook-notifications-youbox">
<caption label="Notifications about me"/>
<checkbox preference="you-req" label="New friend request"/>
<checkbox preference="you-msg" label="New message"/>
<checkbox preference="you-poke" label="New poke"/>
<checkbox preference="you-friend" label="New friend"/>
<checkbox preference="you-event-inv" label="New event invite"/>
<checkbox preference="you-group-inv" label="New group invite"/>
<checkbox preference="you-share" label="New share"/>
<caption label="&settings.notificationme.about.label;"/>
<checkbox preference="you-req" label="&settings.notificationme.friendreq.label;"/>
<checkbox preference="you-msg" label="&settings.notificationme.message.label;"/>
<checkbox preference="you-poke" label="&settings.notificationme.poke.label;"/>
<checkbox preference="you-friend" label="&settings.notificationme.friend.label;"/>
<checkbox preference="you-event-inv" label="&settings.notificationme.event.label;"/>
<checkbox preference="you-group-inv" label="&settings.notificationme.group.label;"/>
<checkbox preference="you-share" label="&settings.notificationme.share.label;"/>
<checkbox preference="you-site"
label="All other notifications (wall posts, comments, likes, etc.)"/>
label="&settings.notificationme.other.label;"/>
</groupbox>

<vbox>
<groupbox id="facebook-notifications-friendbox">
<caption label="Notifications about my friends"/>
<checkbox preference="friend-profile" label="A friend updates his/her profile"/>
<checkbox preference="friend-status" label="A friend updates his/her status"/>
<checkbox preference="friend-album" label="A friend updates his/her albums"/>
<checkbox preference="friend-wall" label="Someone writes on a friend's wall"/>
<checkbox preference="friend-note" label="A friend writes a note"/>
<caption label="&settings.notificationfriend.about.label;"/>
<checkbox preference="friend-profile" label="&settings.notificationfriend.profile.label;"/>
<checkbox preference="friend-status" label="&settings.notificationfriend.status.label;"/>
<checkbox preference="friend-album" label="&settings.notificationfriend.albums.label;"/>
<checkbox preference="friend-wall" label="&settings.notificationfriend.wall.label;"/>
<checkbox preference="friend-note" label="&settings.notificationfriend.note.label;"/>
</groupbox>
<groupbox id="facebook-notifications-other">
<caption label="Other notifications"/>
<checkbox preference="upload-complete" label="Uploads Complete"/>
<caption label="&settings.notificationother.about.label;"/>
<checkbox preference="upload-complete" label="&settings.notificationother.upload.label;"/>
</groupbox>
</vbox>
</hbox>
</groupbox>

<groupbox id="facebook-notifications-method">
<label class="header" value="What do notifications look like?" />
<label class="header" value="&settings.notification.type.label;" />
<radiogroup preference="growl">
<radio label="Use Facebook Toolbar notification windows"
<radio label="&settings.notification.native.label;"
value="false" />
<radio label="Use built-in Firefox notifications (on Mac OS X, Growl is used)"
<radio label="&settings.notification.firefox.label;"
value="true" />
</radiogroup>

Expand Down
2 changes: 1 addition & 1 deletion chrome/content/sidebar.xul
Expand Up @@ -3,7 +3,7 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://facebook/skin/toolbar.css" type="text/css"?>

<!DOCTYPE window SYSTEM "chrome://facebook/locale/sidebar.dtd">
<!DOCTYPE page SYSTEM "chrome://facebook/locale/sidebar.dtd">

<page id="facebook-sidebar-page"
title="&sidebar.title;"
Expand Down
2 changes: 1 addition & 1 deletion chrome/content/toolbar.js
Expand Up @@ -253,7 +253,7 @@ var facebook = {
}
},
searchBoxFocus: function(searchBox) {
if (searchBox.value == 'Search Facebook') {
if (searchBox.value == facebook.fStringBundle.getString('searchplaceholder')) {
searchBox.value='';
searchBox.style.color='#000000';
}
Expand Down
46 changes: 23 additions & 23 deletions chrome/content/toolbar.xul
Expand Up @@ -16,9 +16,9 @@

<toolbox id="navigator-toolbox" crop="end">
<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton label="&toolbar.button.facebook.label;"
<toolbarbutton label="&toolbar.facebook.label;"
class="chromeclass-toolbar-additional toolbarbutton-1"
id="facebook-toolbar-toggle" tooltiptext="&toolbar.button.facebook.tooltip;" oncommand="facebook_toggleToolbar()" />
id="facebook-toolbar-toggle" tooltiptext="&toolbar.facebook.name;" oncommand="facebook_toggleToolbar()" />
<toolbarbutton id="facebook-sidebar-toggle"
class="facebook-sidebar-icon"
tooltiptext="&toolbar.button.sidebar.tooltip;"
Expand Down Expand Up @@ -93,69 +93,69 @@
<menupopup id="facebook-link-popup">

<!-- The Top Nav -->
<menuitem label="Profile"
<menuitem label="&toolbar.links.profile.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="OpenFBUrl('profile.php', this.getAttribute('userid'), event)"
id="facebook-menu-my-profile"
/>
<menuitem label="Friends"
<menuitem label="&toolbar.links.friends.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/friends/?src=fftb', event);"
id="facebook-menu-my-profile"
/>
<menuitem label="Inbox"
<menuitem label="&toolbar.links.inbox.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/inbox/?src=fftb', event)"
/>

<menuseparator />

<!-- The Side Nav -->
<menuitem label="Photos"
<menuitem label="&toolbar.links.photos.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/photos.php?src=fftb', event)"
/>
<menuitem label="Notes"
<menuitem label="&toolbar.links.notes.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/notes.php?src=fftb', event)"
/>
<menuitem label="Groups"
<menuitem label="&toolbar.links.groups.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/groups.php?src=fftb', event)"
/>
<menuitem label="Events"
<menuitem label="&toolbar.links.events.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/events.php?src=fftb', event)"
/>
<menuitem label="Links"
<menuitem label="&toolbar.links.linkies.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/posted.php?src=fftb', event)"
/>

<menuitem label="Video"
<menuitem label="&toolbar.links.videos.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/video/?src=fftb', event)"
/>

<menuseparator />

<!-- Settings Menu -->
<menuitem label="Account Settings"
<menuitem label="&toolbar.settings.account.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/editaccount.php?src=fftb', event)"
/>
<menuitem label="Privacy Settings"
<menuitem label="&toolbar.settings.privacy.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/privacy.php?src=fftb', event)"
/>
<menuitem label="Application Settings"
<menuitem label="&toolbar.settings.application.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openUILink('http://www.facebook.com/editapps.php?src=fftb', event)"
/>

<menuseparator />

<menuitem label="Toolbar Settings"
<menuitem label="&toolbar.settings.toolbar.label;"
onclick="checkForMiddleClick(this, event);"
oncommand="openDialog('chrome://facebook/content/settings.xul', '', 'chrome,titlebar,toolbar,centerscreen,dialog=yes');" />
</menupopup>
Expand All @@ -171,16 +171,16 @@
onfocus="facebook.onStatusBoxFocus(this);"
onblur="facebook.onStatusBoxBlur(this);"
oncommand="return SetFacebookStatus(this);"
emptytext="set your status..."
tooltiptext="Change your Facebook status"
emptytext="&toolbar.status.emptytext.label;"
tooltiptext="&toolbar.status.emptytext.tooltip;"
spellcheck="true"
style="display:none;"
/>
<toolbarseparator/>
<toolbarbutton id="facebook-login-status"
class="button"
label="Login to Facebook"
tooltiptext="Login to Facebook"
label="&toolbar.login.label;"
tooltiptext="&toolbar.login.label;"
oncommand="FacebookLogin()" />
</toolbaritem>
</toolbarpalette>
Expand All @@ -191,7 +191,7 @@
iconsize="small"
customizable="true"
context="toolbar-context-menu"
toolbarname="Facebook Toolbar"
toolbarname="&toolbar.facebook.name;"
crop="end"
defaultset="facebook-sidebar-toggle,separator,facebook-searchbox,facebook-link-menu,separator,facebook-home,separator,facebook-notification-poke,facebook-notification-reqs,facebook-notification-msgs,facebook-notification-event-invs,facebook-notification-group-invs,facebook-notification-separator,facebook-share,facebook-photoupload,spring,facebook-login-info">
</toolbar>
Expand Down Expand Up @@ -231,14 +231,14 @@
</toolbox>
<broadcasterset id="mainBroadcasterSet">
<broadcaster id="viewFacebookSidebar" autoCheck="false"
label="Facebook Sidebar"
label="&toolbar.sidebar.label;"
type="checkbox" group="sidebar"
sidebarurl="chrome://facebook/content/sidebar.xul"
sidebartitle="Facebook Sidebar"
sidebartitle="&toolbar.sidebar.label;"
oncommand="toggleSidebar('viewFacebookSidebar');event.stopPropagation();" />
</broadcasterset>
<menupopup id="viewSidebarMenu">
<menuitem key="viewFacebookSidebarKb" observes="viewFacebookSidebar" label="Facebook" accesskey=""/>
<menuitem key="viewFacebookSidebarKb" observes="viewFacebookSidebar" label="&toolbar.facebook.label;" accesskey=""/>
</menupopup>

</overlay>
34 changes: 34 additions & 0 deletions chrome/locale/en-US/settings.dtd
@@ -0,0 +1,34 @@
<!ENTITY settings.window.title "Configure the Facebook Toolbar">

<!ENTITY settings.panel.title "Configure Facebook Toolbar Notifications">

<!ENTITY settings.notificationmes.enable.label "Enable Pop-up Notifications">

<!-- Notifications about me section -->
<!ENTITY settings.notificationme.header.label "What Facebook happenings prompt a notification?">
<!ENTITY settings.notificationme.about.label "Notifications about me">
<!ENTITY settings.notificationme.friendreq.label "New friend request">
<!ENTITY settings.notificationme.message.label "New message">
<!ENTITY settings.notificationme.poke.label "New poke">
<!ENTITY settings.notificationme.friend.label "New friend">
<!ENTITY settings.notificationme.event.label "New event invite">
<!ENTITY settings.notificationme.group.label "New group invite">
<!ENTITY settings.notificationme.share.label "New share">
<!ENTITY settings.notificationme.other.label "All other notifications (wall posts, comments, likes, etc.)">

<!-- Notifications about my friends section -->
<!ENTITY settings.notificationfriend.about.label "Notifications about my friends">
<!ENTITY settings.notificationfriend.profile.label "A friend updates his/her profile">
<!ENTITY settings.notificationfriend.status.label "A friend updates his/her profile">
<!ENTITY settings.notificationfriend.albums.label "A friend updates his/her profile">
<!ENTITY settings.notificationfriend.wall.label "Someone writes on a friend's wall">
<!ENTITY settings.notificationfriend.note.label "A friend writes a note">

<!-- Other -->
<!ENTITY settings.notificationother.about.label "Other notifications">
<!ENTITY settings.notificationother.upload.label "Uploads Complete">

<!-- Appearance -->
<!ENTITY settings.notification.type.label "What do notifications look like?">
<!ENTITY settings.notification.native.label "Use Facebook Toolbar notification windows">
<!ENTITY settings.notification.firefox.label "Use built-in Firefox notifications (on Mac OS X, Growl is used)">
25 changes: 23 additions & 2 deletions chrome/locale/en-US/toolbar.dtd
@@ -1,6 +1,7 @@
<!ENTITY toolbar.button.facebook.label "Facebook">
<!ENTITY toolbar.facebook.label "Facebook">

<!ENTITY toolbar.facebook.name "Facebook Toolbar">

<!ENTITY toolbar.button.facebook.tooltip "Facebook Toolbar">
<!ENTITY toolbar.button.sidebar.tooltip "Facebook Friends Sidebar">
<!ENTITY toolbar.search.label "Search Facebook">
<!ENTITY toolbar.button.home.tooltip "Go to Facebook">
Expand All @@ -14,3 +15,23 @@
<!ENTITY toolbar.button.messages.tooltip "New Messages">

<!ENTITY toolbar.button.links.label "Quick Links">
<!ENTITY toolbar.links.profile.label "Profile">
<!ENTITY toolbar.links.friends.label "Friends">
<!ENTITY toolbar.links.inbox.label "Inbox">
<!ENTITY toolbar.links.photos.label "Photos">
<!ENTITY toolbar.links.notes.label "Notes">
<!ENTITY toolbar.links.groups.label "Groups">
<!ENTITY toolbar.links.events.label "Events">
<!ENTITY toolbar.links.linkies.label "Links">
<!ENTITY toolbar.links.videos.label "Videos">
<!ENTITY toolbar.settings.account.label "Account Settings">
<!ENTITY toolbar.settings.privacy.label "Privacy Settings">
<!ENTITY toolbar.settings.application.label "Application Settings">
<!ENTITY toolbar.settings.toolbar.label "Toolbar Settings">

<!ENTITY toolbar.status.emptytext.label "set your status...">
<!ENTITY toolbar.status.emptytext.tooltip "Change your Facebook status">

<!ENTITY toolbar.login.label "Log in to Facebook">

<!ENTITY toolbar.sidebar.label "Facebook Sidebar">

0 comments on commit 2b08d13

Please sign in to comment.