FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » The localisation could be much faster if ...
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon11.gif  The localisation could be much faster if ... [message #4592] Wed, 31 July 2002 20:20 Go to next message
vidaubannais is currently offline  vidaubannais   Germany
Messages: 23
Registered: July 2002
Karma: 0
Junior Member
FUD is able to compile as well as to optimize the msg files we edit during L18N process. However we could improve greatly this procedure if the following were implemented:

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 Confused

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.

Voila, whith a minimum effort I think a PHP guy could fix this out?
Re: The localisation could be much faster if ... [message #4675 is a reply to message #4592] Fri, 02 August 2002 14:43 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
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 Confused



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 &#39;


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How could I make the user able to change language on the fly?
Next Topic: Most stable/functional version?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 11 21:17:15 GMT 2024

Total time taken to generate the page: 0.10807 seconds