diff options
author | Andras Timar <atimar@suse.com> | 2011-09-30 23:47:55 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-09-30 23:49:38 +0200 |
commit | a91a7567e7a2ee3db87b0f9a9523be3f55ac93b2 (patch) | |
tree | 026fcc3d011b90235f8925db0c31f593f556b1bb /l10ntools/source/xrmlex.l | |
parent | upgrade to the newer extension description scheme (diff) | |
download | core-a91a7567e7a2ee3db87b0f9a9523be3f55ac93b2.tar.gz core-a91a7567e7a2ee3db87b0f9a9523be3f55ac93b2.zip |
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.l | 25 |
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 ); +} |