[Marble-bugs] [marble] [Bug 321773] New: Webpopups are untranslatable

Yuri Chornoivan yurchor at ukr.net
Sat Jun 29 18:55:05 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=321773

            Bug ID: 321773
           Summary: Webpopups are untranslatable
    Classification: Unclassified
           Product: marble
           Version: 1.6.0 (KDE 4.11.0)
          Platform: Other
               URL: http://docs.kde.org/development/uk/kdeedu/marble/searc
                    h-2.png
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: yurchor at ukr.net

Scripty does not extract messages from /src/lib/webpopup HTML files and even if
the messages are extracted translations are not used.

The snippet that has been used to extract messages (patch to Messages.sh):

for fname in src/lib/webpopup/*.html; do
safe_fname=$(printf '%s\n' "$fname" | sed 's/[\&/]/\\&/g')
cat $fname \
  | tr -d '\n' \
  | sed -e 's/<style>.*<\/style>//' -e 's/<link rel[ a-z=":,./]*>//g' \
        -e 's/<!--[- "&'\''./0-9:;<=>A-Z_a-z]*-->[\t ]*/\n/g' \
        -e 's/<[A-Za-z0-9]*\( [a-z:]*=\"[-A-Za-z0-9:/_.% ]*\"\)*>[\t ]*/\n/g' \
        -e 's/<\/[A-Za-z0-9]*>[\t ]*/\n/g' -e 's/%[a-zA-Z!\{\}]*%//g'\
  | sed -e 's/^ *//' -e 's/ *$//' -e 's/^ $//' -e '/^$/d' \
  | sed -e 's/^\(.*\)$/\/\/i18n: file .\/'$safe_fname'\ni18n(\"\1\");/' \
  >> rc.cpp
done

Reproducible: Always

Steps to Reproduce:
1. Choose "Satellite View" map in any localized version of Marble.
2. Left-click on arbitrary city on the map.
Actual Results:  
Partially translated popup

Expected Results:  
Complete translation of the popup

Thanks for fixing this bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list