A translatable empty string will be replaced with po file header

Bug #1585458 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Converged
Fix Released
Critical
Po-Hsu Lin

Bug Description

When generating a pot file, header information will be generated and assigned to an empty string.

Therefore if we're making the empty string translatable, it will be replaced by the header. Please refer to the screenshot for this issue.

Quote from the gettext tool document [1]

"An empty untranslated-string is reserved to contain the header entry with the meta information (see Header Entry). This header entry should be the first entry of the file. The empty untranslated-string is reserved for this purpose and MUST NOT be used anywhere else."

[1] https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html

Related branches

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For checkbox converged, the only translatable string is:

checkbox-touch$ grep -r 'i18n.tr("")' *
components/CbtDialog.qml: title: i18n.tr("")

Changed in checkbox-converged:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
milestone: none → 1.3
Changed in checkbox-converged:
status: In Progress → Fix Committed
importance: Undecided → Critical
Pierre Equoy (pieq)
Changed in checkbox-converged:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.