[gtranslator] Add ' as recognised char for tags.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Add ' as recognised char for tags.
- Date: Wed, 17 Mar 2010 10:07:00 +0000 (UTC)
commit bb04a6383d7efb22e133c410585323c42b456c9b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Mar 17 11:06:22 2010 +0100
Add ' as recognised char for tags.
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 1ece414..ffb5418 100644
--- a/data/po.lang
+++ b/data/po.lang
@@ -41,7 +41,7 @@
<match>[&_][a-zA-Z]</match>
</context>
<context style-ref="tag">
- <match><[0-9a-zA-Z=.:;_#?\"/\- ]+></match>
+ <match><[0-9a-zA-Z=.:;_#?'\"/\- ]+></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 bb16dac..7b6f19d 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]