* How to merge two po files from different versions?
@ 2019-05-07 9:23 znavko
2019-05-07 9:26 ` znavko
0 siblings, 1 reply; 9+ messages in thread
From: znavko @ 2019-05-07 9:23 UTC (permalink / raw)
To: help-guix
Hello! I want to merge my two files: https://gitgud.io/znavko/guix-manual-ru-exp
The latest is guix-manual-1.0.0-pre3.ru.po, so the lines there should rest untouched.
But that file lacks some lines I had in guix-manual-1.0.0-pre3.ru_RU.po.
For example the guix-manual-1.0.0-pre3.ru
lacks translation on line 7564:
7564: #. type: Plain text
#: doc/guix.texi:3402
msgid "The garbage collector has a set of known @dfn{roots}: any file under @file{/gnu/store}
...
But guix-manual-1.0.0-pre3.ru_RU.po
has translation of this text on line 10698:
10698: #. type: Plain text
#: doc/guix.texi:3389 doc/guix.texi:3402
msgid ""
"The garbage collector has a set of known @dfn{roots}: any file under @file{/"
...
Those two files differ with endline symbols. My old guix-manual-1.0.0-pre3.ru_RU.po has many lines in each message, but the new file guix-manual-1.0.0-pre3.ru has msgid texts in one long line.
The simple 'msgcat *.po > new.po' is not correct, cause the line numbering breaks in a new file.
Please, how to transfer translated strings from the guix-manual-1.0.0-pre3.ru_RU.po into guix-manual-1.0.0-pre3.ru not breaking the latter?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to merge two po files from different versions?
2019-05-07 9:23 How to merge two po files from different versions? znavko
@ 2019-05-07 9:26 ` znavko
2019-05-07 14:19 ` pelzflorian (Florian Pelz)
2019-05-07 14:58 ` znavko
0 siblings, 2 replies; 9+ messages in thread
From: znavko @ 2019-05-07 9:26 UTC (permalink / raw)
To: help-guix
Here it is my repository with both files: https://gitgud.io/znavko/guix-manual-ru-exp
May 7, 2019 9:23 AM, znavko@disroot.org wrote:
> Hello! I want to merge my two files: https://gitgud.io/znavko/guix-manual-ru-exp
> The latest is guix-manual-1.0.0-pre3.ru.po, so the lines there should rest untouched.
> But that file lacks some lines I had in guix-manual-1.0.0-pre3.ru_RU.po.
>
> For example the guix-manual-1.0.0-pre3.ru
> lacks translation on line 7564:
> 7564: #. type: Plain text
> #: doc/guix.texi:3402
> msgid "The garbage collector has a set of known @dfn{roots}: any file under @file{/gnu/store}
> ...
> But guix-manual-1.0.0-pre3.ru_RU.po
> has translation of this text on line 10698:
> 10698: #. type: Plain text
> #: doc/guix.texi:3389 doc/guix.texi:3402
> msgid ""
> "The garbage collector has a set of known @dfn{roots}: any file under @file{/"
> ...
> Those two files differ with endline symbols. My old guix-manual-1.0.0-pre3.ru_RU.po has many lines
> in each message, but the new file guix-manual-1.0.0-pre3.ru has msgid texts in one long line.
>
> The simple 'msgcat *.po > new.po' is not correct, cause the line numbering breaks in a new file.
> Please, how to transfer translated strings from the guix-manual-1.0.0-pre3.ru_RU.po into
> guix-manual-1.0.0-pre3.ru not breaking the latter?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to merge two po files from different versions?
2019-05-07 9:26 ` znavko
@ 2019-05-07 14:19 ` pelzflorian (Florian Pelz)
2019-05-07 14:58 ` znavko
1 sibling, 0 replies; 9+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-05-07 14:19 UTC (permalink / raw)
To: znavko; +Cc: help-guix
On Tue, May 07, 2019 at 09:26:13AM +0000, znavko@disroot.org wrote:
> > The simple 'msgcat *.po > new.po' is not correct, cause the line numbering breaks in a new file.
> > Please, how to transfer translated strings from the guix-manual-1.0.0-pre3.ru_RU.po into
> > guix-manual-1.0.0-pre3.ru not breaking the latter?
>
I do not understand what the issue is with line numbers.
Does this work?
msgcat --no-wrap *.po > new.po
msgmerge -U --no-wrap --previous --lang=ru new.po guix-manual-1.0.0-pre3.ru.po
Regards,
Florian
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to merge two po files from different versions?
2019-05-07 9:26 ` znavko
2019-05-07 14:19 ` pelzflorian (Florian Pelz)
@ 2019-05-07 14:58 ` znavko
2019-05-07 15:15 ` pelzflorian (Florian Pelz)
2019-05-07 15:37 ` znavko
1 sibling, 2 replies; 9+ messages in thread
From: znavko @ 2019-05-07 14:58 UTC (permalink / raw)
To: pelzflorian (Florian Pelz); +Cc: help-guix
No, sorry. Your commands not work. That msgid from line 7564 rests untranslated, so it did not transfered from my guix-manual-1.0.0-pre3.ru_RU.po.
Ooh la la!
May 7, 2019 2:19 PM, "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> wrote:
> On Tue, May 07, 2019 at 09:26:13AM +0000, znavko@disroot.org wrote:
>
>> The simple 'msgcat *.po > new.po' is not correct, cause the line numbering breaks in a new file.
>> Please, how to transfer translated strings from the guix-manual-1.0.0-pre3.ru_RU.po into
>> guix-manual-1.0.0-pre3.ru not breaking the latter?
>
> I do not understand what the issue is with line numbers.
>
> Does this work?
>
> msgcat --no-wrap *.po > new.po
> msgmerge -U --no-wrap --previous --lang=ru new.po guix-manual-1.0.0-pre3.ru.po
>
> Regards,
> Florian
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to merge two po files from different versions?
2019-05-07 14:58 ` znavko
@ 2019-05-07 15:15 ` pelzflorian (Florian Pelz)
2019-05-07 15:37 ` znavko
1 sibling, 0 replies; 9+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-05-07 15:15 UTC (permalink / raw)
To: znavko; +Cc: help-guix
On Tue, May 07, 2019 at 02:58:41PM +0000, znavko@disroot.org wrote:
> No, sorry. Your commands not work. That msgid from line 7564 rests untranslated, so it did not transfered from my guix-manual-1.0.0-pre3.ru_RU.po.
> Ooh la la!
>
I do not see which one is missing in new.po. I do not understand how
you count line numbers. Can you tell me the doc/guix.texi:?? line
number above the msgid?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to merge two po files from different versions?
2019-05-07 14:58 ` znavko
2019-05-07 15:15 ` pelzflorian (Florian Pelz)
@ 2019-05-07 15:37 ` znavko
2019-05-07 15:49 ` pelzflorian (Florian Pelz)
2019-05-07 15:55 ` znavko
1 sibling, 2 replies; 9+ messages in thread
From: znavko @ 2019-05-07 15:37 UTC (permalink / raw)
To: pelzflorian (Florian Pelz); +Cc: help-guix
This is screenshot of both files http://0x0.st/zTjx.png
the guix-manual-1.0.0-pre3.ru.po rests untranslated after your commands on line
#. type: Plain text
#: doc/guix.texi:3402
msgid "The garbage collector has a set of known @dfn{roots}: any file under @file{/gnu/store} reachable from a root is considered @dfn{live} and cannot be deleted; any other file is considered @dfn{dead} and may be deleted. The set of garbage collector roots (``GC roots'' for short) includes default user profiles; by default, the symlinks under @file{/var/guix/gcroots} represent these GC roots. New GC roots can be added with @command{guix build --root}, for example (@pxref{Invoking guix build}). The @command{guix gc --list-roots} command lists them."
msgstr ""
and about 4k other lines (about 500 messages).
Yes, this line has another place in the manual than guix-manual-1.0.0-pre3.ru_RU.po has, but the msgid content is the same.
I want to merge messages that have equal content but different places in manual:
new file it is 'doc/guix.texi:3402'
but the old translated file was 'doc/guix.texi:3389 doc/guix.texi:3402'
May 7, 2019 3:15 PM, "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> wrote:
> On Tue, May 07, 2019 at 02:58:41PM +0000, znavko@disroot.org wrote:
>
>> No, sorry. Your commands not work. That msgid from line 7564 rests untranslated, so it did not
>> transfered from my guix-manual-1.0.0-pre3.ru_RU.po.
>> Ooh la la!
>
> I do not see which one is missing in new.po. I do not understand how
> you count line numbers. Can you tell me the doc/guix.texi:?? line
> number above the msgid?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to merge two po files from different versions?
2019-05-07 15:37 ` znavko
@ 2019-05-07 15:49 ` pelzflorian (Florian Pelz)
2019-05-07 15:55 ` znavko
1 sibling, 0 replies; 9+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-05-07 15:49 UTC (permalink / raw)
To: znavko; +Cc: help-guix
On Tue, May 07, 2019 at 03:37:58PM +0000, znavko@disroot.org wrote:
> This is screenshot of both files http://0x0.st/zTjx.png
> the guix-manual-1.0.0-pre3.ru.po rests untranslated after your commands on line
> #. type: Plain text
> #: doc/guix.texi:3402
> msgid "The garbage collector has a set of known @dfn{roots}: any file under @file{/gnu/store} reachable from a root is considered @dfn{live} and cannot be deleted; any other file is considered @dfn{dead} and may be deleted. The set of garbage collector roots (``GC roots'' for short) includes default user profiles; by default, the symlinks under @file{/var/guix/gcroots} represent these GC roots. New GC roots can be added with @command{guix build --root}, for example (@pxref{Invoking guix build}). The @command{guix gc --list-roots} command lists them."
> msgstr ""
>
This one is translated in the resulting new.po for me. Note that
new.po contains the new file.
> and about 4k other lines (about 500 messages).
> Yes, this line has another place in the manual than guix-manual-1.0.0-pre3.ru_RU.po has, but the msgid content is the same.
>
> I want to merge messages that have equal content but different places in manual:
> new file it is 'doc/guix.texi:3402'
> but the old translated file was 'doc/guix.texi:3389 doc/guix.texi:3402'
>
>
msgmerge considers only content, line number is not relevant for
msgmerge or gettext in general.
Regards,
Florian
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to merge two po files from different versions?
2019-05-07 15:37 ` znavko
2019-05-07 15:49 ` pelzflorian (Florian Pelz)
@ 2019-05-07 15:55 ` znavko
2019-05-07 17:21 ` pelzflorian (Florian Pelz)
1 sibling, 1 reply; 9+ messages in thread
From: znavko @ 2019-05-07 15:55 UTC (permalink / raw)
To: pelzflorian (Florian Pelz); +Cc: help-guix
Thank you for your comments. I'll continue to translate the new.po renaming it as necessary.
Hope, TP will accept it with no problems.
May 7, 2019 3:50 PM, "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> wrote:
> On Tue, May 07, 2019 at 03:37:58PM +0000, znavko@disroot.org wrote:
>
>> This is screenshot of both files http://0x0.st/zTjx.png
>> the guix-manual-1.0.0-pre3.ru.po rests untranslated after your commands on line
>> #. type: Plain text
>> #: doc/guix.texi:3402
>> msgid "The garbage collector has a set of known @dfn{roots}: any file under @file{/gnu/store}
>> reachable from a root is considered @dfn{live} and cannot be deleted; any other file is considered
>> @dfn{dead} and may be deleted. The set of garbage collector roots (``GC roots'' for short) includes
>> default user profiles; by default, the symlinks under @file{/var/guix/gcroots} represent these GC
>> roots. New GC roots can be added with @command{guix build --root}, for example (@pxref{Invoking
>> guix build}). The @command{guix gc --list-roots} command lists them."
>> msgstr ""
>
> This one is translated in the resulting new.po for me. Note that
> new.po contains the new file.
>
>> and about 4k other lines (about 500 messages).
>> Yes, this line has another place in the manual than guix-manual-1.0.0-pre3.ru_RU.po has, but the
>> msgid content is the same.
>>
>> I want to merge messages that have equal content but different places in manual:
>> new file it is 'doc/guix.texi:3402'
>> but the old translated file was 'doc/guix.texi:3389 doc/guix.texi:3402'
>
> msgmerge considers only content, line number is not relevant for
> msgmerge or gettext in general.
>
> Regards,
> Florian
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to merge two po files from different versions?
2019-05-07 15:55 ` znavko
@ 2019-05-07 17:21 ` pelzflorian (Florian Pelz)
0 siblings, 0 replies; 9+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-05-07 17:21 UTC (permalink / raw)
To: znavko; +Cc: help-guix
On Tue, May 07, 2019 at 03:55:54PM +0000, znavko@disroot.org wrote:
> Thank you for your comments. I'll continue to translate the new.po renaming it as necessary.
> Hope, TP will accept it with no problems.
>
>
It should not cause problems with the TP. new.po has only 28 newly
translated messages however compared to guix-manual-1.0.0-pre3.ru.po.
Regards,
Florian
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-05-07 17:22 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07 9:23 How to merge two po files from different versions? znavko
2019-05-07 9:26 ` znavko
2019-05-07 14:19 ` pelzflorian (Florian Pelz)
2019-05-07 14:58 ` znavko
2019-05-07 15:15 ` pelzflorian (Florian Pelz)
2019-05-07 15:37 ` znavko
2019-05-07 15:49 ` pelzflorian (Florian Pelz)
2019-05-07 15:55 ` znavko
2019-05-07 17:21 ` pelzflorian (Florian Pelz)
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.