Kaydet (Commit) 1a029665 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Caolán McNamara

tdf#114873: localize Letter, fax and agenda wizards

Since we use contextual messages, we need to concatenate:
- context
- EOT character
- the message itself
see https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html

A priori, regression from 00657aef

Change-Id: Ie3e781e30ce09f0121afff2f0eb0769b1fbd2114
Reviewed-on: https://gerrit.libreoffice.org/47521Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJean-Baptiste Faure <jbfaure@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 25206db2
...@@ -20,7 +20,10 @@ gettext.bindtextdomain('wiz', unohelper.fileUrlToSystemPath( ...@@ -20,7 +20,10 @@ gettext.bindtextdomain('wiz', unohelper.fileUrlToSystemPath(
gettext.textdomain('wiz') gettext.textdomain('wiz')
def NC_(context, string): def NC_(context, string):
return gettext.gettext(string) # Contextual strings are stored with the concatenation of
# the context, a EOT byte, and the original string, instead of the original string
# see https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html
return gettext.gettext(context + chr(4) + string)
# common section # common section
RID_COMMON_START_0 = NC_("RID_COMMON_START_0", "The directory '%1' could not be created.<BR>There may not be enough space left on your hard disk.") RID_COMMON_START_0 = NC_("RID_COMMON_START_0", "The directory '%1' could not be created.<BR>There may not be enough space left on your hard disk.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment