Skip to content

Commit

Permalink
Add I18N
Browse files Browse the repository at this point in the history
  • Loading branch information
poum committed Sep 26, 2015
1 parent ac8f1e8 commit 983108e
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 21 deletions.
3 changes: 3 additions & 0 deletions chrome.manifest
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
content gtgtask chrome/

locale gtgtask en-US chrome/locale/en-US/
locale gtgtask fr-FR chrome/locale/fr-FR/

# Firefox
overlay chrome://browser/content/browser.xul chrome://gtgtask/content/firefoxbutton.xul

Expand Down
8 changes: 4 additions & 4 deletions chrome/firefoxbutton.xul
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="chrome://gtgtask/content/button.css"?>

<!DOCTYPE overlay >
<!DOCTYPE overlay SYSTEM "chrome://gtgtask/locale/firefoxbutton.dtd">
<overlay id="gtgtask-overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

Expand All @@ -14,14 +14,14 @@

<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton id="gtgtask-button"
label="GTG Task"
tooltiptext="Create a task from this page"
label="&toolbarbutton.label;"
tooltiptext="&toolbarbutton.tooltiptext;"
oncommand="gtgtask_firefox.createTask()"
class="toolbarbutton-1 chromeclass-toolbar-additional gtgtask"
type="menu-button"
>
<menupopup id="gtgtaskMenu">
<menuitem label="Create and edit task" command="cmd_forceEditor" />
<menuitem label="&menupopup_menuitem.label;" command="cmd_forceEditor" />
</menupopup>
</toolbarbutton>
</toolbarpalette>
Expand Down
3 changes: 3 additions & 0 deletions chrome/locale/en-US/firefoxbutton.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!ENTITY toolbarbutton.label "GTG Task">
<!ENTITY toolbarbutton.tooltiptext "Create a task from this page">
<!ENTITY menupopup_menuitem.label "Create and edit task">
2 changes: 2 additions & 0 deletions chrome/locale/en-US/thunderbirdbutton.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!ENTITY toolbarbutton.label "GTG Task">
<!ENTITY toolbarbutton.tooltiptext "Create a task from this e-mail">
3 changes: 3 additions & 0 deletions chrome/locale/fr-FR/firefoxbutton.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!ENTITY toolbarbutton.label "Tâche GTG">
<!ENTITY toolbarbutton.tooltiptext "Créer une tâche à partir de cette page">
<!ENTITY menupopup_menuitem.label "Créer et modifier une tâche">
2 changes: 2 additions & 0 deletions chrome/locale/fr-FR/thunderbirdbutton.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!ENTITY toolbarbutton.label "Tâche GTG">
<!ENTITY toolbarbutton.tooltiptext "Créer une tâche à partir de cet email">
6 changes: 3 additions & 3 deletions chrome/thunderbirdbutton.xul
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="chrome://gtgtask/content/button.css"?>

<!DOCTYPE overlay >
<!DOCTYPE overlay SYSTEM "chrome://gtgtask/locale/thunderbirdbutton.dtd">
<overlay id="gtgtask-overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

Expand All @@ -10,8 +10,8 @@

<toolbarpalette id="header-view-toolbar-palette">
<toolbarbutton id="gtgtask-button"
label="GTG Task"
tooltiptext="Create a task from this e-mail"
label="&toolbarbutton.label;"
tooltiptext="&toolbarbutton.tooltiptext;"
oncommand="gtgtask_thunderbird.createTask(event);"
class="toolbarbutton-1 msgHeaderView-button gtgtask"
/>
Expand Down
31 changes: 17 additions & 14 deletions install.rdf
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<?xml version="1.0"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description
about="urn:mozilla:install-manifest"

em:name="GTG Task Button"
em:description="Easily transform a page into a task for Getting Things GNOME! with a single click."
em:creator="Izidor Matušov"

em:id="gtg@fritalk.com"
em:version="1.3"
em:homepageURL="http://gtgnome.net"

em:iconURL="chrome://gtgtask/content/icon.png" >
<Description about="urn:mozilla:install-manifest">
<em:id>gtg@fritalk.com</em:id>
<em:name>GTG Task Button</em:name>
<em:description>Easily transform a page into a task for Getting Things GNOME! with a single click."</em:description>
<em:creator>Izidor Matušov</em:creator>
<em:version>1.3</em:version>
<em:homepageURL>http://gtgnome.net</em:homepageURL>
<em:iconURL>chrome://gtgtask/content/icon.png</em:iconURL>
<em:localized>
<Description>
<em:locale>fr-FR</em:locale>
<em:name>GTG Task Button</em:name>
<em:description>Transforme d'un simple clic une page ou un email en tâche pour Getting Things GNOME!</em:description>
</Description>
</em:localized>

<!-- We need to unpack this extension to be able run external python script -->
<em:unpack>true</em:unpack>
Expand All @@ -23,13 +26,13 @@
<!-- Firefox -->
<em:targetApplication>
<Description em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion="3.0" em:maxVersion="22.0" />
em:minVersion="3.0" em:maxVersion="42.0" />
</em:targetApplication>

<!-- Thunderbird -->
<em:targetApplication>
<Description em:id="{3550f703-e582-4d05-9a08-453d09bdfdc6}"
em:minVersion="3.0" em:maxVersion="22.0" />
em:minVersion="3.0" em:maxVersion="32.0" />
</em:targetApplication>

</Description>
Expand Down

0 comments on commit 983108e

Please sign in to comment.