Skip to content

Commit

Permalink
Improve translations of TagFix_BadKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Famlam committed Dec 28, 2024
1 parent 55bd6e1 commit 7dc0772
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions plugins/TagFix_BadKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ def init(self, logger):
Plugin.init(self, logger)
doc = dict(
detail = T_(
'''The key of tag contains characters not recommended. The key is
composed of alphanumeric characters: 0-9, a-z (preferably lower case),
separator '_' or ':'. See
'''The key of the tag contains characters of which the use is discouraged.
It should be composed of alphanumeric characters: 0-9, a-z (preferably lower case),
the separator '_' or ':'. See
[Any_tags_you_like#Syntactic_conventions_for_new_tags](https://wiki.openstreetmap.org/wiki/Any_tags_you_like#Syntactic_conventions_for_new_tags).'''),
fix = T_(
'''Check the key tag, and correct.'''),
'''Check the key, and correct it.'''),
trap = T_(
'''There certainly false positives.'''))
'''There are certainly false positives.'''))
self.errors[3050] = self.def_class(item = 3050, level = 1, tags = ['tag', 'fix:chair'],
title = T_('Bad key'),
title = T_('Key with uncommon character'),
**doc)
self.errors[30502] = self.def_class(item = 3050, level = 3, tags = ['tag', 'fix:chair'],
title = T_('Bad key'),
title = T_('Key with uncommon character'),
**doc)
self.errors[30501] = self.def_class(item = 3050, level = 1, tags = ['tag', 'fix:chair'],
title = T_('Bad key suffix'),
title = T_('Key suffix with uncommon character'),
**doc)

import re
Expand Down

0 comments on commit 7dc0772

Please sign in to comment.