https://bugs.kde.org/show_bug.cgi?id=444376
Bug ID: 444376 Summary: msgctxt for 'Predefined' is NOT correctly implemented, the translation doesn't show in the GIAO DIỆN NGƯỜI DÙNG Product: krita Version: 5.0.0-beta1 Platform: Other OS: Other Status: REPORTED Severity: normal Priority: NOR Component: Translation Assignee: krita-bugs-n...@kde.org Reporter: hoangduytran1...@gmail.com Target Milestone: --- SUMMARY STEPS TO REPRODUCE 1. Load the attached krita.po into an editor, say vscode, or vi 2. Search to find 'msgid.*Predefined' to locate the key in question, the current content of this entry is: #: plugins/paintops/libpaintop/kis_brush_selection_widget.cpp:49 #, kde-format msgctxt "Predefined Brush tip mode" msgid "Predefined" msgstr "Định Trước" 3. Open an command line window and run the MO compilation line, using: msgfmt -o $KRITA_MO_FILE $KRITA_PO_FILE (Note: edit your 'rc' file (says: .bashrc if you are using BASH shell) to make sure the two keys: export KRITA_MO_FILE=<path to the MO file of the krita executable: (mine is: KRITA_MO_FILE=/Applications/krita_5.app/Contents/Resources/locale/vi/LC_MESSAGES/krita.mo) export KRITA_PO_FILE=<path to the attached PO file> (mine is: KRITA_PO_FILE=/Users/hoangduytran/Dev/tran/krita/vi-kde/trunk/l10n-kf5/vi/messages/krita/krita.po) make sure to reload the changes in the .bashrc (. ./.bashrc) 4. Open Krita app, open a new document of any size/type, click on the icon Edit Brush Setting in the tool bar (You'll probably need to change the 'General->Tools->Tool Options Location from 'In Docker' to 'In Toolbar' first, and restart Krita) 5. In the 'Brush Editor', select a brush (press '<' on the left to show brush presets), select (y) Screentone moire) brush, on the right, you should see tabs 'Auto, Predefined, Text'. 6. Now switch the UI to Vietnamese using Settings->Switch Application Language->Primary Language to 'Vietnamese', and restart Krita 7. After Krita loaded and went back to 'Brush Editor' as describe above, you still see the 'Predefined' in English. 8. In the krita.po editor, remove the 'msgctxt' line for the 'Predefined', recompile the changes using 'msgfmt -o ...' described above 9. Reload krita and go back to 'Brush Editor', you should now see the translation in Vietnamese as 'Định Trước'. OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION The above running shows that either 'msgctxt' for 'Predefined' key has not yet implemented correctly or the existence of 'msgctxt' should not be there. -- You are receiving this mail because: You are watching all bug changes.