It seems like my installation doesn't allow my .po file to be imported.

Everytime I try to import a .po file I'm getting the following error:

The translation file [some_language.po] appears to have a missing or malformed header.

What kind of header is it referring to? My .po file simply consists of strings, nothing more:

msgid "My Settings"
msgstr "Meine Einstellungen"

msgid "Logout"
msgstr "Ausloggen"

I've checked if safe mode was on, but this isn't the case (so this is ok). My memory_limit is set to 128M (which should be more than enough).

Comments

knalstaaf’s picture

This block of code (the very "header") at the top is mandatory (you can copy-paste and modify this):

# LANGUAGE translation of PROJECT
# Copyright (c) YEAR NAME <EMAIL@ADDRESS>
#
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2013-10-24 11:16+0200\n"
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"