Add support for multi-line msgid

This commit is contained in:
Mattias Lundell
2017-05-29 11:36:18 +02:00
parent 2c51ed2000
commit 4a52c7709d
4 changed files with 94 additions and 44 deletions

View File

@@ -32,8 +32,8 @@ func TestGettersSetters(t *testing.T) {
func TestPackageFunctions(t *testing.T) {
// Set PO content
str := `
msgid ""
msgstr ""
# msgid ""
# msgstr ""
# Initial comment
# Headers below
"Language: en\n"
@@ -79,7 +79,7 @@ msgstr "Some random translation in a context"
msgid "More"
msgstr "More translation"
`
`
// Create Locales directory on default location
dirname := path.Clean("/tmp" + string(os.PathSeparator) + "en_US")
@@ -157,7 +157,7 @@ msgstr[0] "This one is the singular: %s"
msgstr[1] "This one is the plural: %s"
msgstr[2] "And this is the second plural form: %s"
`
`
// Create Locales directory on default location
dirname := path.Clean(library + string(os.PathSeparator) + "en_US")