PO Files

Megan

Posts: 10

Joined: Fri Feb 20, 2009 9:36 am

Post Wed Dec 30, 2009 10:01 am

PO Files

Hello,

I'm trying to translate my first PO file, but I'm experiencing some difficulty. When I create a project and add the PO file, it automatically uses the "PO Files" filter, however I get an error "msgid not found before msgstr" when the file tries to load.

It's not a super huge file, so I looked over the whole thing in notepad, and I cannot find any instance where msgid does not precede msgstr. At the client's suggestion I also downloaded Poedit from <http://www.poedit.net/>, and the file opens fine within this application.

Are there any tools out there to help me identify this problem? I suppose I can send the file back to the client as well, but I would like to know for sure that it is a problem with the file they are providing me rather than a bug in Lingobit or another factor that I'm not aware of.

Thank you,
Megan

Megan

Posts: 10

Joined: Fri Feb 20, 2009 9:36 am

Post Wed Dec 30, 2009 2:08 pm

Re: PO Files

Alright, I solved my own problem!

The problem consisted of some code at the top of the file, see below. The empty "msgid" and "msgstr"strings were the main problem, as well as some of the data in quotes below it. To fix this, I added "#" at the beginning of these strings, so that Lingobit picks up this invalid text as comments and can parse the file properly.

[code]
# 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.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-09 15:50+0100\n"
"PO-Revision-Date: 2009-12-22 16:50+0100\n"
"Last-Translator: \n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"

##############################################################
##Comments Here XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX##
##############################################################
#: C:\XXX
#: C:\XXX
msgid "Commentaires"
msgstr "Comments"
[/code]

Michael Trent

Posts: 64

Joined: Tue Feb 24, 2009 6:41 am

Post Wed Jan 13, 2010 9:35 am

Re: PO Files

Hello Megan,

We fixed the problem with PO files localization. No it localizes files created with POEdit.

The fix is available in 6.0.5830 and later builds.

Best Regards,
Michael

klmn746

Posts: 8

Joined: Fri Sep 03, 2010 6:48 pm

Post Sat Sep 04, 2010 4:39 am

timberland work shoes_02

Don’t warry about the price quality,<a href="http://www.708timberland-shoes.com">timberland work shoes</a>offer nike shoes with appropriate price,and we get the profit from the money exchange rate.As a new shoes seller,we are making every effort to build up our credit and draw attention form customers all over the world so that we can get returned customers.Top quality is our advertisements. In the price limit we manufacture goods of best quality as far as possible. So ,<a href="http://www.708timberland-shoes.com">timberland work shoes</a> is a wonderful choice for you.
[url=http://www.708jordan-shoes.com/][size=2]cheap jordan shoes[/size][/url]

ugg968542

Posts: 3

Joined: Wed Aug 04, 2010 4:23 am

Post Sun Sep 05, 2010 10:06 am

Cut-price Ugg Classic tall boots

2.Cut-price Ugg Classic tall<a href="http://www.australiasuggboots.com">ugg bag</a>
You will become more fashionable classics, you wear sheepskin boot high, it is proposed to solve this production Australia.A snow boots lace, lace, includes wooden bead fashion into touch. Snow boots with elastic tape to control, it is very important to women, it is the most popular reasons, but also give it a very good market prospects. Do not hesitate to get snow boots UK now!

Description:
- Classic cheap snow level is at a new fashion colors and patterns, will increase your life with

Wardrobe.
- Popular style is the real double-face sheepskin is durable and extra comfortable.
- This is already a favorite woman is one of several styles.
- Snow boots made from the classic 5815 high quality 100% natural Australian sheepskin.
- "Classic" outsole, lightweight EVA is flexible and has broad traction.

This ugg classic boots high-level snow <a href="http://www.australiasuggboots.com">ugg cardy boots</a>, available in many species, next to the black, chocolate, Chestnut, sand we
Other high-level snow classic light green, red and pink snow classic top classic top snow you, hope you like it!

Return to Source Code Localization

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.
Software Localization Tool - Lingobit Localizer