Werner F. Bruhin | 14 May 2007 18:40
Picon
Favicon

Re: [poedit-users] word count in PO files

Hi Tibor,

Based on what you sent I did something in Python, could probably be done 
better if I know how to use the "re" module, but anyhow it is close enough.

I copied the poedit list in case others are interested in this too or 
maybe someone could create this a patch for poEdit to have something 
like this as tool/menu option.

Best regards
Werner

Python version:
pofile = file(r'some.po', 'r')

wordcount = 0
charcount = 0
netcharcount = 0

nottocount = '0123456789-=.,;:'

for line in pofile:
    if line[0:6] == 'msgid ':
        text = line[7:]
        for x in nottocount:
            text = text.replace(x, '')

        wordcount += len(text.split())
        charcount += len(text)
        netcharcount += len(text.replace(' ', ''))
(Continue reading)

koger | 25 May 2007 00:38
Favicon

[poedit-users] backslash quote

Hi

I have extracted a string from source, which has " character's. When I open the
po file in poedit, poedit shows \" instead of just ". Is there a way to make
poedit only show "?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Vaclav Slavik | 25 May 2007 14:12
Gravatar

Re: [poedit-users] backslash quote

koger wrote:
> I have extracted a string from source, which has " character's.
> When I open the po file in poedit, poedit shows \" instead of just
> ". Is there a way to make poedit only show "?

No. Please file a bug for it -- arguably, it's a usability bug.

thanks,
Vaclav

--

-- 
PGP key: 0x465264C9, available from http://pgp.mit.edu/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Poedit-users mailing list
Poedit-users@...
https://lists.sourceforge.net/lists/listinfo/poedit-users
David Prieto | 29 May 2007 11:42
Picon
Gravatar

[poedit-users] Expression lookup in TM?

Hi,

I've started using Poedit just a couple of days ago and I have to say
it's a very good replacement for some propietary solutions that I used
back in the day.

However, with the last one I used I could select a piece of text (from
the original string, for example) and look it up in the translation
memory, so I was able to see how that specific expression had been
previously translated.

Is that, or something similar, possible in Poedit? If not, do you think
I should the devel-list to ask for that feature?

Regards,

David.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Olivier Sannier | 29 May 2007 18:18
Picon
Favicon
Gravatar

Re: [poedit-users] Expression lookup in TM?

David Prieto wrote:
> Is that, or something similar, possible in Poedit? If not, do you think
> I should the devel-list to ask for that feature?
>   

You can always open a second instance of poEdit on the same catalog and 
use the Find dialog to do something similar to this.

Regards
Olivier

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
David Prieto | 29 May 2007 18:35
Picon
Gravatar

Re: [poedit-users] Expression lookup in TM?

Hi Olivier,

You can always open a second instance of poEdit on the same catalog and use the Find dialog to do something similar to this.

I think I don't follow you; even if you open a second instance, poEdit will only look for whole entries, not specific expressions, right?

I mean, If I have to translate the sentence: "Backup failed: could not create temporary backup in %s", I can look for whole sentences that are similar to it, but I can't select the word "backup" and check how it was previously translated, even in sentences dissimilar to the current one, right?
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Poedit-users mailing list
Poedit-users@...
https://lists.sourceforge.net/lists/listinfo/poedit-users
Olivier Sannier | 29 May 2007 18:43
Picon
Favicon
Gravatar

Re: [poedit-users] Expression lookup in TM?

David Prieto wrote:
> Hi Olivier,
>
>> You can always open a second instance of poEdit on the same catalog and 
>> use the Find dialog to do something similar to this.
>>     
>
> I think I don't follow you; even if you open a second instance, poEdit 
> will only look for whole entries, not specific expressions, right?
>
> I mean, If I have to translate the sentence: "/Backup failed: could 
> not create temporary backup in %s/", I can look for whole sentences 
> that are similar to it, but I can't select the word "/backup/" and 
> check how it was previously translated, even in sentences dissimilar 
> to the current one, right?
Why not?
Search for backup, tick the box to say that you only want to search in 
"source" text and it should show you the entries that contain backup. 
Then it is up to you to figure out which word in the translation was 
used for "backup". No software can ever figure out a word to word match 
for a translation as there is not always one word for another.

Cheers
Olivier

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
David Prieto | 29 May 2007 18:56
Picon
Gravatar

Re: [poedit-users] Expression lookup in TM?

> Search for backup, tick the box to say that you only want to search in 
> "source" text and it should show you the entries that contain backup.

The problem with that -if I'm not mistaken, which might be the case- is
that would only search "backup" in the text I want to translate, not the
whole translation memory. Am I right?

I would like to be able to select a given expression and get a list of
previously translated entries (from all documents in the TM) that
contain that word or expression.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Olivier Sannier | 29 May 2007 19:04
Picon
Favicon
Gravatar

Re: [poedit-users] Expression lookup in TM?

David Prieto wrote:
>> Search for backup, tick the box to say that you only want to search in 
>> "source" text and it should show you the entries that contain backup.
>>     
>
> The problem with that -if I'm not mistaken, which might be the case- is
> that would only search "backup" in the text I want to translate, not the
> whole translation memory. Am I right?
>   
Nope, here is what I just tried:
Open a catalog
Select whichever entry I want
Select the word I want
Press Ctrl+C
Press Ctrl+F
Press Ctrl+V
Uncheck the "Find in translations" checkbox
Click Next

Here it finds the very first entry that has the selection I pasted in it.

> I would like to be able to select a given expression and get a list of
> previously translated entries (from all documents in the TM) that
> contain that word or expression.
>   
Hum, searching in the entire translation memory, I'm not sure. Searching 
in the entire current catalog, that works well.

Cheers
Olivier

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
David Prieto | 29 May 2007 19:25
Picon
Gravatar

Re: [poedit-users] Expression lookup in TM?

Hi, thanks for your reply

> Hum, searching in the entire translation memory, I'm not sure. Searching 
> in the entire current catalog, that works well.

Well, the search tool works well when you want to search in the current
catalog, that's right. But there are situations where it would be useful
to search in the entire TM.

Just imagine the current catalog is untranslated -for example, you want
to translate an application that has not been translated to your
language before- and you need to know how a specific expression was
translated by other people, in different projects, to keep coherence.

You could select that expression -comprising one or several words- in
the original field, right-click it and choose "look up expression". Then
a window would pop up, showing entries from all the TM that contain that
selected expression, or similar ones. The exact ones first, of course.

Do you think that would be a feature worth having?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Gmane