[gtranslator] Add ; and # to detect tags. Fixes bug #609615.



commit 7278dfad530c1b496c0f3a7d5be3aeaaa77c511b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Feb 11 12:14:55 2010 +0100

    Add ; and # to detect tags. Fixes bug #609615.

 data/po.lang                                 |    2 +-
 plugins/insert-tags/gtr-insert-tags-plugin.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/po.lang b/data/po.lang
index 72b1036..1ece414 100644
--- a/data/po.lang
+++ b/data/po.lang
@@ -41,7 +41,7 @@
           <match>[&amp;_][a-zA-Z]</match>
         </context>
         <context style-ref="tag">
-	  <match>&lt;[0-9a-zA-Z=.:_?\"/\- ]+&gt;</match>
+	  <match>&lt;[0-9a-zA-Z=.:;_#?\"/\- ]+&gt;</match>
 	</context>
         <context ref="python:format" style-ref="special-variable"/>
         <context ref="c:printf"/>
diff --git a/plugins/insert-tags/gtr-insert-tags-plugin.c b/plugins/insert-tags/gtr-insert-tags-plugin.c
index e56d7f4..bb16dac 100644
--- a/plugins/insert-tags/gtr-insert-tags-plugin.c
+++ b/plugins/insert-tags/gtr-insert-tags-plugin.c
@@ -218,7 +218,7 @@ showed_message_cb (GtrTab * tab, GtrMsg * msg, GtrWindow * window)
   /*
    * Regular expression
    */
-  regex = g_regex_new ("<[-0-9a-zA-Z=.:_?\"/ ]+>", 0, 0, NULL);
+  regex = g_regex_new ("<[-0-9a-zA-Z=.:;_#?\"/ ]+>", 0, 0, NULL);
   g_regex_match (regex, msgid, 0, &match_info);
   while (g_match_info_matches (match_info))
     {



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