Skip to content

Commit

Permalink
[tests] fix TestPOUtils.General
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Mar 9, 2015
1 parent 7441270 commit b03001c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/utils/test/TestPOUtils.cpp
Expand Up @@ -24,11 +24,12 @@

#include "gtest/gtest.h"


TEST(TestPOUtils, General)
{
CPODocument a;

EXPECT_TRUE(a.LoadFile(XBMC_REF_FILE_PATH("/language/Spanish/strings.po")));
EXPECT_TRUE(a.LoadFile(XBMC_REF_FILE_PATH("xbmc/utils/test/data/language/Spanish/strings.po")));

EXPECT_TRUE(a.GetNextEntry());
EXPECT_EQ(ID_FOUND, a.GetEntryType());
Expand Down
26 changes: 26 additions & 0 deletions xbmc/utils/test/data/language/Spanish/strings.po
@@ -0,0 +1,26 @@
# Kodi Media Center language file
msgid ""
msgstr ""
"Project-Id-Version: XBMC Main\n"
"Report-Msgid-Bugs-To: http://trac.xbmc.org/\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: Spanish (http://www.transifex.com/projects/p/xbmc-main/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgctxt "#0"
msgid "Programs"
msgstr "Programas"

msgctxt "#1"
msgid "Pictures"
msgstr "Imágenes"

msgctxt "#2"
msgid "Music"
msgstr "Música"

0 comments on commit b03001c

Please sign in to comment.