After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 697451 - Problem with translations, please I need describe some strings
Problem with translations, please I need describe some strings
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2013-04-06 19:55 UTC by Stanper
Modified: 2013-10-25 11:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
uri to URI (1.22 KB, patch)
2013-09-16 16:24 UTC, Ondrej Holy
committed Details | Review
translators comments improvements (1.98 KB, patch)
2013-09-17 15:07 UTC, Ondrej Holy
committed Details | Review

Description Stanper 2013-04-06 19:55:14 UTC
Please, describe me: 

1.) What are represents both variables 

#: ../daemon/gvfsafpvolume.c:145
#, fuzzy, c-format
msgid "Couldn't load %s on %s"

==================================

2.) What is mean the word "flat" 

#: ../daemon/gvfsafpvolume.c:1023
#, fuzzy
msgid "Volume is flat and doesn't support directories"

==================================

3.) Where is shown next string

#: ../daemon/gvfsafpvolume.c:2009
#, fuzzy
msgid "Range lock conflict exists"

==================================

4.) And what are doing functions "copy directory over directory" and "move directory over directory"

#: ../daemon/gvfsbackendafp.c:274
#: ../daemon/gvfsbackendburn.c:875
#: ../daemon/gvfsbackendftp.c:1544
#: ../daemon/gvfsbackendobexftp.c:1803
#, fuzzy
msgid "Can't copy directory over directory"


#: ../daemon/gvfsbackendafp.c:475
#: ../daemon/gvfsbackendsftp.c:4259
#: ../daemon/gvfsbackendsmb.c:2157
#, fuzzy
msgid "Can't move directory over directory"

Thanks.
Comment 1 Pavol Klačanský 2013-09-13 09:16:43 UTC
Also, why is this translatable?

#: ../daemon/gvfsbackendafpbrowse.c:465
#, fuzzy, c-format
msgid "%s"
Comment 2 Pavol Klačanský 2013-09-13 09:22:13 UTC
why is uri lower case? usually it is written as URI

#: ../daemon/gvfsbackendmtp.c:657
#, fuzzy
msgid "Malformed host uri."

#: ../daemon/gvfsbackendmtp.c:647
#, fuzzy
msgid "Unexpected host uri format."
Comment 3 Ondrej Holy 2013-09-16 16:19:24 UTC
(In reply to comment #0)
> Please, describe me: 
> 
> 1.) What are represents both variables 
> 
> #: ../daemon/gvfsafpvolume.c:145
> #, fuzzy, c-format
> msgid "Couldn't load %s on %s"
 
There is explanation in the code:
/* Translators: first %s is volumename and second servername */
 
> 2.) What is mean the word "flat" 
> 
> #: ../daemon/gvfsafpvolume.c:1023
> #, fuzzy
> msgid "Volume is flat and doesn't support directories"
 
Flat probably means that the volume doesn't support directories (all files are in a root), the message comes from the original reference guide:
https://developer.apple.com/library/mac/documentation/Networking/Reference/AFP_Reference/Reference/reference.html#//apple_ref/c/econst/kFPFlatVol

> 3.) Where is shown next string
> 
> #: ../daemon/gvfsafpvolume.c:2009
> #, fuzzy
> msgid "Range lock conflict exists"

It is another error message like "Permission denied" or "Not enough space on volume" shown e.g. at Nautilus, when the error occurs.

> 4.) And what are doing functions "copy directory over directory" and "move
> directory over directory"
> 
> #: ../daemon/gvfsbackendafp.c:274
> #: ../daemon/gvfsbackendburn.c:875
> #: ../daemon/gvfsbackendftp.c:1544
> #: ../daemon/gvfsbackendobexftp.c:1803
> #, fuzzy
> msgid "Can't copy directory over directory"

You have for example directories "/A" and "/B" and you have try to do "gvfs-copy /B /A", so you are trying to copy directory over (another existing) directory (trying to overwrite or marge with another directory), what isn't possible in some cases.

> #: ../daemon/gvfsbackendafp.c:475
> #: ../daemon/gvfsbackendsftp.c:4259
> #: ../daemon/gvfsbackendsmb.c:2157
> #, fuzzy
> msgid "Can't move directory over directory"

dtto

(In reply to comment #1)
> Also, why is this translatable?
> 
> #: ../daemon/gvfsbackendafpbrowse.c:465
> #, fuzzy, c-format
> msgid "%s"

There have been additional text before, so it is leftover currently.

(In reply to comment #2)
> why is uri lower case? usually it is written as URI
> 
> #: ../daemon/gvfsbackendmtp.c:657
> #, fuzzy
> msgid "Malformed host uri."
> 
> #: ../daemon/gvfsbackendmtp.c:647
> #, fuzzy
> msgid "Unexpected host uri format."

It doesn't have any special reason I suppose, it is just typo.
Comment 4 Ondrej Holy 2013-09-16 16:24:35 UTC
Created attachment 255041 [details] [review]
uri to URI
Comment 5 Pavol Klačanský 2013-09-17 13:49:24 UTC
(In reply to comment #3)
> There is explanation in the code:
> /* Translators: first %s is volumename and second servername */
it is on wrong line, hence does not display in po file

> It is another error message like "Permission denied" or "Not enough space on
> volume" shown e.g. at Nautilus, when the error occurs.
> 
Can you please elaborate? What does "range lock" do?

Thank you
Comment 6 Ondrej Holy 2013-09-17 15:07:45 UTC
Created attachment 255109 [details] [review]
translators comments improvements

(In reply to comment #5)
> (In reply to comment #3)
> > There is explanation in the code:
> > /* Translators: first %s is volumename and second servername */
> it is on wrong line, hence does not display in po file

Ok, attached patch to fix.

> > It is another error message like "Permission denied" or "Not enough space on
> > volume" shown e.g. at Nautilus, when the error occurs.
> > 
> Can you please elaborate? What does "range lock" do?

"Some or all of the requested range is locked by another user; a lock range conflict exists."
https://developer.apple.com/library/mac/documentation/Networking/Reference/AFP_Reference/Reference/reference.html#//apple_ref/c/econst/kFPLockErr

"Locking a range of bytes prevents other AFP clients from reading or writing data within the specified range. If an AFP client locks a byte range, that range is reserved for exclusive manipulation by the client that placed the lock."
https://developer.apple.com/library/mac/documentation/networking/conceptual/afp/UsingForkCommands/UsingForkCommands.html
Comment 7 Pavol Klačanský 2013-09-17 15:23:36 UTC
cheers
Comment 8 Alexander Larsson 2013-09-26 11:35:49 UTC
Review of attachment 255041 [details] [review]:

ok
Comment 9 Alexander Larsson 2013-09-26 11:36:22 UTC
Review of attachment 255109 [details] [review]:

ack
Comment 10 Ondrej Holy 2013-09-26 11:43:16 UTC
Comment on attachment 255109 [details] [review]
translators comments improvements

commit 37a32f8b9d112683b9f9870fe73f9b37040a2b51
Comment 11 Ondrej Holy 2013-09-26 11:43:31 UTC
Comment on attachment 255041 [details] [review]
uri to URI

commit 233faf72d10f9b60b4e0f33a281ac48b043cc28d
Comment 12 Ondrej Holy 2013-09-26 12:57:41 UTC
Comment on attachment 255041 [details] [review]
uri to URI

Reverted due to string freeze.
Comment 13 Ondrej Holy 2013-10-25 11:36:53 UTC
Comment on attachment 255041 [details] [review]
uri to URI

commit e26b4c1741ffc8c99389c0b3a80b2c3c223f9dee