Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor output formatting issues #19

Open
okellogg opened this issue Jun 14, 2023 · 0 comments
Open

Minor output formatting issues #19

okellogg opened this issue Jun 14, 2023 · 0 comments

Comments

@okellogg
Copy link

okellogg commented Jun 14, 2023

Nice tool!
I found two small issues.

  1. Linebreak between msgid/msgstr pairs is not preserved

Example input:

#: desktop/MigrateShortcuts.cpp:72 src/ShortcutActions.cpp:33
#, kde-format
msgid "Launch Spectacle"
msgstr ""

#: desktop/MigrateShortcuts.cpp:77 src/ShortcutActions.cpp:39
#, kde-format
msgid "Capture Entire Desktop"
msgstr ""

#: desktop/MigrateShortcuts.cpp:82 src/ShortcutActions.cpp:45

Generated output:

#: desktop/MigrateShortcuts.cpp:72 src/ShortcutActions.cpp:33
#, kde-format
msgid "Launch Spectacle"
msgstr "Lanĉu Spektaklon"
#: desktop/MigrateShortcuts.cpp:77 src/ShortcutActions.cpp:39
#, kde-format
msgid "Capture Entire Desktop"
msgstr "Kaptu Tutan Labortablon"
#: desktop/MigrateShortcuts.cpp:82 src/ShortcutActions.cpp:45
  1. On numbered format specifiers (%1), a space is inserted between % and the number in the translated msgstr

Examples:

#: src/ExportManager.cpp:326
#, kde-format
msgid "QImageWriter cannot write image: %1"
msgstr "QImageWriter ne povas skribi bildon: % 1"

#: src/Gui/RecordingView.qml:65
#, kde-format
msgid ""
"Recording:\n"
"%1"
msgstr ""
"Registrado:\n"
"% 1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant