Dear Developers,

if you are introducing new strings to KiCAD with an alternating part than 
please think of all the translators.

Something like the following should be avoided if parts of the string are 
determined during applications runtime:
    wxString msg = _( "Delete everything on layer " ) + 
GetBoard()->GetLayerName( aLayer );
    
Instead, please favour something like the following, if possible:
    wxString msg;
    msg.Printf(_( "Delete everything on layer %s" ), GetBoard()->GetLayerName( 
aLayer ));

The printf-style provides a more flexible construct and allows to have a 
different order of words in the translation, which is sometimes necessary to 
provide a valid translation for the entire string.
In this example the translator is then not forced to put the layer name at the 
end of the sentence if a printf is used.

Thanks in advance.

In the name of all KiCAD-Translators :)
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to