[gtksourceview] Add translation context. Fixes bug #629281



commit 3832c15af907cfbe7175fcd5c10966c5cf58ac67
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Apr 12 14:44:25 2011 +0200

    Add translation context. Fixes bug #629281

 data/language-specs/R.lang    |    1 +
 data/language-specs/css.lang  |    1 +
 data/language-specs/java.lang |    2 ++
 data/language-specs/po.lang   |   15 +++++++--------
 data/language-specs/ruby.lang |    3 ++-
 5 files changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/data/language-specs/R.lang b/data/language-specs/R.lang
index 4ad7580..252ad65 100644
--- a/data/language-specs/R.lang
+++ b/data/language-specs/R.lang
@@ -21,6 +21,7 @@
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 -->
+<!-- Translators: It is the section for a set of languages related for this purpose -->
 <language id="r" _name="R" version="2.0" _section="Scientific">
   <metadata>
     <property name="mimetypes">text/x-R</property>
diff --git a/data/language-specs/css.lang b/data/language-specs/css.lang
index 6caf4af..28fedb9 100644
--- a/data/language-specs/css.lang
+++ b/data/language-specs/css.lang
@@ -50,6 +50,7 @@
     <style id="color" _name="Color" map-to="def:base-n-integer"/>
     <style id="others-3" _name="Others 3"/>
     <style id="function" _name="Function" map-to="def:function"/>
+    <!-- Translator: it is a type of number -->
     <style id="decimal" _name="Decimal" map-to="def:decimal"/>
     <style id="dimension" _name="Dimension" map-to="def:floating-point"/>
     <style id="known-property-values" _name="Known Property Value" map-to="def:type"/>
diff --git a/data/language-specs/java.lang b/data/language-specs/java.lang
index dcfc87f..a4db65f 100644
--- a/data/language-specs/java.lang
+++ b/data/language-specs/java.lang
@@ -37,6 +37,8 @@
     <style id="escaped-character" _name="Escaped Character" map-to="def:special-char"/>
     <style id="string" _name="String" map-to="def:string"/>
     <style id="char" _name="Character" map-to="def:character"/>
+    <!-- Translators: refered to some specific keywords of the language that
+         allow to get external functionalities -->
     <style id="external" _name="External" map-to="def:preprocessor"/>
     <style id="declaration" _name="Declaration" map-to="def:type"/>
     <style id="storage-class" _name="Storage Class" map-to="def:type"/>
diff --git a/data/language-specs/po.lang b/data/language-specs/po.lang
index 8772d46..bb1573b 100644
--- a/data/language-specs/po.lang
+++ b/data/language-specs/po.lang
@@ -34,8 +34,7 @@
     <style id="string" _name="String" map-to="def:string"/>
     <style id="fuzzy" _name="Fuzzy" map-to="def:note"/>
     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
-    <!-- FIXME make it some nice name and mark it translatable -->
-    <style id="special" _name="Special" map-to="def:special-char"/>
+    <style id="format" _name="String Format" map-to="def:special-char"/>
   </styles>
 
   <definitions>
@@ -47,14 +46,14 @@
         <context ref="def:line-continue"/>
         <context ref="def:email-address"/>
         <context ref="def:net-address"/>
-        <context id="mnemonic" style-ref="special">
+        <context id="mnemonic" style-ref="format">
           <match>[&amp;_][\p{L}\p{Nd}]</match>
         </context>
-        <context id="tag" style-ref="special">
-	  <match>&lt;[a-zA-Z\=\"\/ ]+&gt;</match>
-	</context>
-        <context ref="python:format" style-ref="special"/>
-        <context ref="c:printf" style-ref="special"/>
+        <context id="tag" style-ref="format">
+          <match>&lt;[a-zA-Z\=\"\/ ]+&gt;</match>
+        </context>
+        <context ref="python:format" style-ref="format"/>
+        <context ref="c:printf" style-ref="format"/>
       </include>
     </context>
     <context id="format" style-ref="comment" end-at-line-end="true">
diff --git a/data/language-specs/ruby.lang b/data/language-specs/ruby.lang
index a880298..7fb21dd 100644
--- a/data/language-specs/ruby.lang
+++ b/data/language-specs/ruby.lang
@@ -31,7 +31,7 @@
   </metadata>
 
   <styles>
-    <style id="escape"               _name="Escaped Character"      map-to="def:special-char"/>
+    <style id="escape"               _name="Escaped Character"     map-to="def:special-char"/>
     <style id="comment"              _name="Comment"               map-to="def:comment"/>
     <style id="attribute-definition" _name="Attribute Definition"  map-to="def:statement"/>
     <style id="module-handler"       _name="Module handler"        map-to="def:preprocessor"/>
@@ -43,6 +43,7 @@
     <style id="base-n-integer"       _name="Base-N number"         map-to="def:base-n-integer"/>
     <style id="numeric-literal"      _name="Numeric literal"       map-to="def:base-n-integer"/>
     <style id="string"               _name="String"                map-to="def:string"/>
+    <!-- Translators: functions that are provided in the language -->
     <style id="builtin"              _name="Builtin"               map-to="def:type"/>
     <style id="constant"             _name="Constant"              map-to="def:type"/>
     <style id="symbol"               _name="Symbol"                map-to="def:string"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]