summaryrefslogtreecommitdiff
path: root/l10ntools/source/xrmlex.l
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2011-09-30 23:47:55 +0200
committerAndras Timar <atimar@suse.com>2011-09-30 23:49:38 +0200
commita91a7567e7a2ee3db87b0f9a9523be3f55ac93b2 (patch)
tree026fcc3d011b90235f8925db0c31f593f556b1bb /l10ntools/source/xrmlex.l
parentca2235e871582fe3957d4d18173bb033d1384cd8 (diff)
extract strings for l10n from description.xml files
Merging is to be implemented...
Diffstat (limited to 'l10ntools/source/xrmlex.l')
-rw-r--r--l10ntools/source/xrmlex.l25
1 files changed, 25 insertions, 0 deletions
diff --git a/l10ntools/source/xrmlex.l b/l10ntools/source/xrmlex.l
index de5b5dfa9a37..b7dccbd3d8f5 100644
--- a/l10ntools/source/xrmlex.l
+++ b/l10ntools/source/xrmlex.l
@@ -99,8 +99,33 @@ int bText=0;
WorkOnTokenSet( XRM_TEXT_END, yytext );
}
+"<display-name>" {
+ WorkOnTokenSet( DESC_DISPLAY_NAME_START , yytext );
+}
+
+"</display-name>" {
+ WorkOnTokenSet( DESC_DISPLAY_NAME_END, yytext );
+}
+"<name "[^\>]*lang[^\>]*\> {
+ WorkOnTokenSet( DESC_TEXT_START , yytext );
+}
+
+"</name>" {
+ WorkOnTokenSet( DESC_TEXT_END, yytext );
+}
+"<extension-description>" {
+ WorkOnTokenSet( DESC_EXTENSION_DESCRIPTION_START , yytext );
+}
+
+"</extension-description>" {
+ WorkOnTokenSet( DESC_EXTENSION_DESCRIPTION_END , yytext );
+}
+
+"<src "[^\>]*lang[^\>]*\> {
+ WorkOnTokenSet( DESC_EXTENSION_DESCRIPTION_SRC , yytext );
+}