Re: The localisation could be much faster if ... [message #4675 is a reply to message #4592] |
Fri, 02 August 2002 14:43 |
Ilia
Messages: 13241 Registered: January 2002
Karma:
|
Senior Member Administrator Core Developer |
|
|
Quote: |
1) When 2 strings are duplicated, the compiler script simply says in a very inpleasant message "a message is duplicated at line XXX".
a) This line is NOT the ligne from the msg file and the concerned file (concidering that it is not a completly funny number from I don't know where) is not even mentioned. The newby could have real problems and spend a lot of time trying to figure out what bloody message is replicated (believe me, I have done it). I think a little something extra (e.g. specifying the name of the file or the real line number in the msg file) would be excellent and would prevent the guy starting the translation from droping out thinking it is tooooo complicated
|
Hrm, the error seems pretty detailed to me, it says which file the duplication occured on and on what line.
Here is an example error message, I got when I made a duplicate entry inside the msg file.
duplicated message: search_sorting in
/home/forum2/src/install/forum_data/thm/default/i18n/english/msg on line #896,
previous entry found on line #895 in
home/forum2/src/install/forum_data/thm/default/i18n/english/msg
Seems pretty clear to me.
Quote: |
2) The script could (I don't know how) be able to detect special characters to be escaped (only <'> as far as I can see) - However the triky part is that this character must not be escaped everywhere - The reason being that some of the strings are going to be "copied/passed" in HTML, some will be put within some PHP code which are not going to be very happy in meeting a character <'> in the middle of a string.
|
Special characters such as ' should be represented by their equivalent HTML codes, for example instead of ' use '
FUDforum Core Developer
|
|
|