mirego / accent

The first developer-oriented translation tool. True asynchronous flow between translators and your team.
https://www.accent.reviews
BSD 3-Clause "New" or "Revised" License
1.31k stars 100 forks source link

[Gettext] Header broken #115

Closed MeikelLP closed 5 years ago

MeikelLP commented 5 years ago

When exporting the strings as gettext file the header is broken:

msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION"
"Report-Msgid-Bugs-To: "
"POT-Creation-Date: 2019-08-13 08:28+0200"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>"
"Language-Team: LANGUAGE <LL@li.org>"
"Language: de"
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=CHARSET"
"Content-Transfer-Encoding: 8bit"

In the msgstr each "string" requires to end with a \n else I get an error like this:

xgettext: present charset "CHARSETContent-Transfer-Encoding:" is not a portable encoding name

when trying to xgettext ... -j with an existing file.

This might be an issue in https://github.com/elixir-lang/gettext/ but it's annoying in this app :)

simonprev commented 5 years ago

Can you give me the file that was synced to have this header?

MeikelLP commented 5 years ago

here you go

# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-13 11:32+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: Assets/_INTERNAL_/Scripts/Editor/Attributes/BulletAttrInspector.cs:10
msgid "When this object touches another that has the script DestroyForPoints, the Player will get a point."
msgstr "Wenn dieses Objekt ein anderes Objekt mit dem Skript DestroyForPoints berührt, erhält der Spieler einen Punkt."
simonprev commented 5 years ago

Fixed with https://github.com/mirego/accent/commit/b992ac521590d20555e98ada9328dfd86a129fd3

MeikelLP commented 5 years ago

@simonprev Do you know when the docker image will be updated?