#6 Please remove leading/trailing spaces
Opened 6 years ago by rluzynski. Modified 6 years ago

Some terms appear in multiple places, sometimes with leading/trailing spaces, sometimes without. This makes them appear twice in the *.pot file and translators will have to translate them twice.

Examples:

#: users/Fedora_Cheat_Cube_Users.svg:912
msgid "user "

#: users/Fedora_Cheat_Cube_Users.svg:916
#: users/Fedora_Cheat_Cube_Users.svg:930
msgid "user"

#: users/Fedora_Cheat_Cube_Users.svg:1006
msgid "directory "

#: users/Fedora_Cheat_Cube_Users.svg:1010
#: users/Fedora_Cheat_Cube_Users.svg:1062
msgid "directory"

#: users/Fedora_Cheat_Cube_Users.svg:1052
#: users/Fedora_Cheat_Cube_Users.svg:1064
#: users/Fedora_Cheat_Cube_Users.svg:1076
msgid "dest"

#: users/Fedora_Cheat_Cube_Users.svg:1072
msgid "dest "

… and more. Is the space really necessary? What about putting it as a separate string?

Hm… what about languages which do not use spaces? (Chinese?) What about making a single space (" ") a translatable string?


Hi,

I know this issue, but these spaces are needed. For example, arguments are in italic and separated from the rest of the sentence, so we need spaces between them.

But the idea of spaces separated from the rest still very interesting. I will investigate

Thank you for your help

Is it possible that in some languages those words would translate differently based on space or usage reasons?

Definitely yes, @bex, this is what I was going to say. In fusional and agglutinative languages the correct form of "user" or "directory" depends on the context: whether it is login as a user or you are the user or this is a user's name or copy the directory or from the directory or to the directory etc. Therefore it is not recommended to attempt to construct a sentence as a concatenation of words, this often does not work when translated. As much as possible the sentence should be delivered to translators as the whole.

There are probably more such cases in this project and I'd be happy to discuss it more thoroughly but it requires more time and space than this bug report.

Login to comment on this ticket.

Metadata