summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-01 11:00:12 +0800
committerraveit65 <[email protected]>2019-07-01 12:53:07 +0200
commit83fa9ede5c267fdd7ddca3f70801b838ee348190 (patch)
treee1411d07fd0069419320f5808bf076ab91ea4b72
parent61d19c0b626fef76a5d3df496bb292dcbca4bda4 (diff)
downloadcaja-83fa9ede5c267fdd7ddca3f70801b838ee348190.tar.bz2
caja-83fa9ede5c267fdd7ddca3f70801b838ee348190.tar.xz
create msgstr for data/browser.xml
-rw-r--r--data/Makefile.am8
-rw-r--r--data/browser.xml75
-rw-r--r--data/browser.xml.in75
-rw-r--r--its/browser.its11
-rw-r--r--its/browser.loc7
-rw-r--r--po/POTFILES.in2
6 files changed, 99 insertions, 79 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 92d6e824..09dc2509 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -2,7 +2,8 @@ NULL =
xml_in_files = caja.xml.in
xml_files = $(xml_in_files:.xml.in=.xml)
-$(xml_files): $(xml_in_files)
+
+%.xml: %.xml.in
$(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
desktopdir = $(datadir)/applications
@@ -30,13 +31,13 @@ org.mate.freedesktop.FileManager1.service: org.mate.freedesktop.FileManager1.ser
$(AM_V_GEN) sed -e "s|\@bindir\@|$(bindir)|" $< > $@
cajadatadir = $(datadir)/caja
-
+cajadata_in_files = browser.xml.in
cajadata_DATA = \
browser.xml \
caja-extras.placeholder \
caja-suggested.placeholder \
caja.css \
- caja-desktop.css \
+ caja-desktop.css \
$(NULL)
# app data file
@@ -52,6 +53,7 @@ EXTRA_DIST = $(cajadata_DATA) \
caja.css \
freedesktop-dbus-interfaces.xml \
$(xml_in_files) \
+ $(cajadata_in_files) \
$(desktop_in_files) \
$(service_in_files) \
$(appdata_in_files) \
diff --git a/data/browser.xml b/data/browser.xml
deleted file mode 100644
index 19b8350e..00000000
--- a/data/browser.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0"?>
-<categories>
- <category name="patterns" _display_name="_Patterns" image="backgrounds.png"
- columns="5" mode="directory" path="caja/patterns" type="property/bgimage"
- _description="Drag a pattern tile to an object to change it">
- <pattern _display_name="Blue Ridge" filename="blue_ridge"/>
- <pattern _display_name="Blue Rough" filename="blue_gray_rough"/>
- <pattern _display_name="Blue Type" filename="blue_type"/>
- <pattern _display_name="Brushed Metal" filename="brushed_metal"/>
- <pattern _display_name="Burlap" filename="burlap"/>
- <pattern _display_name="Camouflage" filename="camouflage"/>
- <pattern _display_name="Chalk" filename="chalk"/>
- <pattern _display_name="Cork" filename="cork"/>
- <pattern _display_name="Countertop" filename="countertop"/>
- <pattern _display_name="Dark MATE" filename="dark-mate"/>
- <pattern _display_name="Dots" filename="dots"/>
- <pattern _display_name="Fibers" filename="fibers"/>
- <pattern _display_name="Fleur De Lis" filename="fleur_de_lis"/>
- <pattern _display_name="Floral" filename="floral"/>
- <pattern _display_name="Fossil" filename="fossil"/>
- <pattern _display_name="MATE" filename="mate"/>
- <pattern _display_name="Green Weave" filename="green_weave"/>
- <pattern _display_name="Ice" filename="ice"/>
- <pattern _display_name="Manila Paper" filename="manila_paper"/>
- <pattern _display_name="Moss Ridge" filename="moss_ridge"/>
- <pattern _display_name="Numbers" filename="numbers"/>
- <pattern _display_name="Ocean Strips" filename="ocean_stripes"/>
- <pattern _display_name="Purple Marble" filename="purple_marble"/>
- <pattern _display_name="Ridged Paper" filename="ridged_paper"/>
- <pattern _display_name="Rough Paper" filename="rough_paper"/>
- <pattern _display_name="Sky Ridge" filename="sky_ridge"/>
- <pattern _display_name="Snow Ridge" filename="snow_ridge"/>
- <pattern _display_name="Stucco" filename="stucco"/>
- <pattern _display_name="Terracotta" filename="terracotta"/>
- <pattern _display_name="Wavy White" filename="wavy_white"/>
- </category>
-
- <category name="colors" _display_name="C_olors" image="colors.png" columns="5" mode="inline" type="application/x-color" _description="Drag a color to an object to change it to that color">
- <color _name="Mango">#E0D656</color>
- <color _name="Orange">#D2AB50</color>
- <color _name="Tangerine">#C6864B</color>
- <color _name="Grapefruit">#BB6247</color>
- <color _name="Ruby">#AD3841</color>
- <color _name="Pale Blue">#5BA7CF</color>
- <color _name="Sky">#3978A7</color>
- <color _name="Danube">#184A7F</color>
- <color _name="Indigo">#3E4985</color>
- <color _name="Violet">#65498C</color>
- <color _name="Sea Foam">#CCFFCC</color>
- <color _name="Leaf">#66CC66</color>
- <color _name="Deep Teal">#457263</color>
- <color _name="Dark Cork">#63654A</color>
- <color _name="Mud">#805932</color>
- <color _name="Fire Engine">#E53B1A</color>
- <color _name="Envy">#2C821E</color>
- <color _name="Azul">#1822CA</color>
- <color _name="Lemon">#F6E118</color>
- <color _name="Bubble Gum">#D050A4</color>
- <color _name="White">#FFFFFF</color>
- <color _name="Apparition">#E5E5E5</color>
- <color _name="Silver">#C9C9C9</color>
- <color _name="Concrete">#AFAFAF</color>
- <color _name="Shale">#747474</color>
- <color _name="Granite">#6F6F6F</color>
- <color _name="Eclipse">#525252</color>
- <color _name="Charcoal">#323232</color>
- <color _name="Onyx">#222222</color>
- <color _name="Black">#000000</color>
- </category>
-
- <category name="emblems" _display_name="_Emblems" image="emblems.png" columns="6" mode="directory" path="caja/emblems" type="property/keyword" _description="Drag an emblem to an object to add it to the object">
- <!-- translators: this is the name of an emblem -->
- <emblem _display_name="Erase" filename="erase"/>
- </category>
-</categories>
diff --git a/data/browser.xml.in b/data/browser.xml.in
new file mode 100644
index 00000000..86921652
--- /dev/null
+++ b/data/browser.xml.in
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<categories>
+ <category name="patterns" display_name="_Patterns" image="backgrounds.png"
+ columns="5" mode="directory" path="caja/patterns" type="property/bgimage"
+ description="Drag a pattern tile to an object to change it">
+ <pattern display_name="Blue Ridge" filename="blue_ridge"/>
+ <pattern display_name="Blue Rough" filename="blue_gray_rough"/>
+ <pattern display_name="Blue Type" filename="blue_type"/>
+ <pattern display_name="Brushed Metal" filename="brushed_metal"/>
+ <pattern display_name="Burlap" filename="burlap"/>
+ <pattern display_name="Camouflage" filename="camouflage"/>
+ <pattern display_name="Chalk" filename="chalk"/>
+ <pattern display_name="Cork" filename="cork"/>
+ <pattern display_name="Countertop" filename="countertop"/>
+ <pattern display_name="Dark MATE" filename="dark-mate"/>
+ <pattern display_name="Dots" filename="dots"/>
+ <pattern display_name="Fibers" filename="fibers"/>
+ <pattern display_name="Fleur De Lis" filename="fleur_de_lis"/>
+ <pattern display_name="Floral" filename="floral"/>
+ <pattern display_name="Fossil" filename="fossil"/>
+ <pattern display_name="MATE" filename="mate"/>
+ <pattern display_name="Green Weave" filename="green_weave"/>
+ <pattern display_name="Ice" filename="ice"/>
+ <pattern display_name="Manila Paper" filename="manila_paper"/>
+ <pattern display_name="Moss Ridge" filename="moss_ridge"/>
+ <pattern display_name="Numbers" filename="numbers"/>
+ <pattern display_name="Ocean Strips" filename="ocean_stripes"/>
+ <pattern display_name="Purple Marble" filename="purple_marble"/>
+ <pattern display_name="Ridged Paper" filename="ridged_paper"/>
+ <pattern display_name="Rough Paper" filename="rough_paper"/>
+ <pattern display_name="Sky Ridge" filename="sky_ridge"/>
+ <pattern display_name="Snow Ridge" filename="snow_ridge"/>
+ <pattern display_name="Stucco" filename="stucco"/>
+ <pattern display_name="Terracotta" filename="terracotta"/>
+ <pattern display_name="Wavy White" filename="wavy_white"/>
+ </category>
+
+ <category name="colors" display_name="C_olors" image="colors.png" columns="5" mode="inline" type="application/x-color" description="Drag a color to an object to change it to that color">
+ <color name="Mango">#E0D656</color>
+ <color name="Orange">#D2AB50</color>
+ <color name="Tangerine">#C6864B</color>
+ <color name="Grapefruit">#BB6247</color>
+ <color name="Ruby">#AD3841</color>
+ <color name="Pale Blue">#5BA7CF</color>
+ <color name="Sky">#3978A7</color>
+ <color name="Danube">#184A7F</color>
+ <color name="Indigo">#3E4985</color>
+ <color name="Violet">#65498C</color>
+ <color name="Sea Foam">#CCFFCC</color>
+ <color name="Leaf">#66CC66</color>
+ <color name="Deep Teal">#457263</color>
+ <color name="Dark Cork">#63654A</color>
+ <color name="Mud">#805932</color>
+ <color name="Fire Engine">#E53B1A</color>
+ <color name="Envy">#2C821E</color>
+ <color name="Azul">#1822CA</color>
+ <color name="Lemon">#F6E118</color>
+ <color name="Bubble Gum">#D050A4</color>
+ <color name="White">#FFFFFF</color>
+ <color name="Apparition">#E5E5E5</color>
+ <color name="Silver">#C9C9C9</color>
+ <color name="Concrete">#AFAFAF</color>
+ <color name="Shale">#747474</color>
+ <color name="Granite">#6F6F6F</color>
+ <color name="Eclipse">#525252</color>
+ <color name="Charcoal">#323232</color>
+ <color name="Onyx">#222222</color>
+ <color name="Black">#000000</color>
+ </category>
+
+ <category name="emblems" display_name="_Emblems" image="emblems.png" columns="6" mode="directory" path="caja/emblems" type="property/keyword" description="Drag an emblem to an object to add it to the object">
+ <!-- translators: this is the name of an emblem -->
+ <emblem display_name="Erase" filename="erase"/>
+ </category>
+</categories>
diff --git a/its/browser.its b/its/browser.its
new file mode 100644
index 00000000..163cca01
--- /dev/null
+++ b/its/browser.its
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<its:rules xmlns:its="http://www.w3.org/2005/11/its"
+ xmlns:gt="https://www.gnu.org/s/gettext/ns/its/extensions/1.0"
+ version="2.0">
+ <its:translateRule selector="/categories" translate="no"/>
+ <its:translateRule selector="//category/@display_name" translate="yes"/>
+ <its:translateRule selector="//category/@description" translate="yes"/>
+ <its:translateRule selector="//category/pattern/@display_name" translate="yes"/>
+ <its:translateRule selector="//category/color/@name" translate="yes"/>
+ <its:translateRule selector="//category/emblem/@display_name" translate="yes"/>
+</its:rules>
diff --git a/its/browser.loc b/its/browser.loc
new file mode 100644
index 00000000..0cd34816
--- /dev/null
+++ b/its/browser.loc
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<locatingRules>
+ <locatingRule name="Browser" pattern="*.xml">
+ <documentRule localName="categories" target="browser.its"/>
+ </locatingRule>
+</locatingRules>
+
diff --git a/po/POTFILES.in b/po/POTFILES.in
index f9b43db1..c77d550e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,6 @@
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
-data/browser.xml
+data/browser.xml.in
data/caja.appdata.xml.in
data/caja-autorun-software.desktop.in
data/caja-browser.desktop.in