Hi,

On Tue, Jun 20, 2006 at 01:40:16AM -0500, Bruno Wolff III wrote:
> There is a problem in that simple variable substitution seems to always
> get done. This causes unexpected results when a $ is the first character of
> a string and the simple substitution happens before the complex
> substitution. (Which typically results in an empty string.)
> 
> Another related issue is that with complex substitution there isn't a way
> to get $ or | into the resulting string. It would be nice to define some
> way to get those strings. For the | case, it would be sufficient to take out
> the code that removes all of the extra |s. This (removing extra |s to simplify
> things for WML coders) doesn't really seem all that useful of a feature. For
> $s we could use a special character other than $ or | to get $ without much
> trouble.

I have also trouble understanding variable expansion. According to
http://www.wesnoth.org/wiki/VariablesWML
| is not required if there a following space after the variable and the space
is not eaten.
(Examples are from de.po files.)

But how about:
#: data/scenarios/multiplayer/2p_Wesbowl.cfg:332
#: data/scenarios/multiplayer/2p_Wesbowl.cfg:609
msgid "Should I pass the ball to $passto.type ($xloc,$yloc)?"

(separated by "," and ")")?

Other separators I found are "'", "-", "«", ".", "?". Other translations have
probably more ...

If these separators are valid (without |), how about this space and dash:

#: data/campaigns/Under_the_Burning_Suns/scenarios/12_Final.cfg:627
#: data/campaigns/Under_the_Burning_Suns/scenarios/12_Final.cfg:637
msgid "Nym, Zhul, $ally_name , you shouldn't have."
msgstr "Nym, Zhul, $ally_name - ihr hättet nicht kommen sollen."

Similar (and inconsistent):
#: data/campaigns/Under_the_Burning_Suns/scenarios/8_Frying_Pan.cfg:5342
msgid "Not now $ally_name, I'm busy."
msgstr "Nicht jetzt, $ally_name , ich bin beschäftigt."

Jens

_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to