« Return to Thread: Translatable string mystery

Re: Translatable string mystery

by Jerome :: Rate this Message:

Reply to Author | View in Thread

> When I was testing the filter problems i had, I found an untranslated
> string. But there was no such string in my sv.po! Started to search for
> it in the source files and found out that two almost identical code
> parts create different output to gramps.pot.

True, references (src/Filters/Rules/Note/_MatchesRegexpOf.py,
src/Filters/Rules/Note/_MatchesSubstringOf.py) are not missing on
POTFILE.in !!!

Note, I do not know what is the difference *for users* between <RegExp>
and <substring> ? I thought 'Regexp' was only used on Sidebar filter
(but seems not !). There is few rules which are loaded
(/objects/__init__.py) but not used on filter editor (rules based on
regexp). They have translated strings but will not be displayed.
(invert !)

> but it is in the source.

Why an untranslated string ? I don't know ...




Peter Landgren a écrit :

>
>
> Hi,
>
> When I was testing the filter problems i had, I found an untranslated
> string. But there was no such string in my sv.po! Started to search for
> it in the source files and found out that two almost identical code
> parts create different output to gramps.pot.
>
> So in the source files the second lines for the description variable are
> treated different.
>
> src/Filters/Rules/Note/_MatchesRegexpOf.py:
>
> class MatchesRegexpOf(Rule):
>
> labels = [ _('Regular expression:')]
>
> name = _('Notes containing <regular expression>')
>
> description = _("Matches notes who contain text "
>
> "matching a regular expression")
>
> category = _('General filters')
>
> and
>
> src/Filters/Rules/Note/_MatchesSubstringOf.py
>
> class MatchesSubstringOf(Rule):
>
> """Notes having notes containing <subtring>"""
>
> labels = [ _('Substring:')]
>
> name = _('Notes containing <substring>')
>
> description = _("Matches notes who contain text "
>
> "matching a substring")
>
> category = _('General filters')
>
> In gramps.pot though the string "matching a substring" is not included
>
> in #: ../src/Filters/Rules/Note/_MatchesRegexpOf.py:46????
>
> #: ../src/Filters/Rules/Note/_MatchesSubstringOf.py:45
>
> msgid "Notes containing <substring>"
>
> msgstr ""
>
> #: ../src/Filters/Rules/Note/_MatchesSubstringOf.py:46
>
> msgid "Matches notes who contain text matching a substring"
>
> msgstr ""
>
> #: ../src/Filters/Rules/Note/_MatchesRegexpOf.py:45
>
> msgid "Notes containing <regular expression>"
>
> msgstr ""
>
> #: ../src/Filters/Rules/Note/_MatchesRegexpOf.py:46
>
> msgid "Matches notes who contain text "
>
> msgstr ""
>
> but it is in the source.
>
> Can anyone come up with an hint of what's going on?
>
> Or am I not seeing what I should see?
>
> /Peter
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@...
> https://lists.sourceforge.net/lists/listinfo/gramps-devel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

 « Return to Thread: Translatable string mystery