Yea we need to get better about that, I'm wondering if we can add a jenkins hook to catch this.
I dont' know what is jenkins hook, but i can do it. Once per day, for example. Or, betrer way, devlopers should do it.
Simple workflow:
1. commit (big or small) to master branch.
2. someone or something run lang/update_pot.sh
3. commit changed cataclysm-dda.pot to master branch.
Absolutely, that's the plan with translations. As translations are added, we'll merge them into the main repository.
Good.
You'll need to be more specific, I'm not sure what you mean.
Here [u]simple[/u] example from gettext doc:
[code] In C programs strings are often used within calls of functions from
the `printf' family. The special thing about these format strings is
that they can contain format specifiers introduced with `%'. Assume we
have the code
printf (gettext ("String `%s' has %d characters\n"), s, strlen (s));
A possible German translation for the above string might be:
"%d Zeichen lang ist die Zeichenkette `%s'"
A C programmer, even if he cannot speak German, will recognize that
there is something wrong here. The order of the two format specifiers
is changed but of course the arguments in the `printf’ don’t have.
This will most probably lead to problems because now the length of the
string is regarded as the address.
To prevent errors at runtime caused by translations the msgfmt' tool can check statically whether the arguments in the original and the translation string match in type and number. If this is not the case and the
-c’ option has been passed to msgfmt',
msgfmt’ will give an
error and refuse to produce a MO file. Thus consequent use of `msgfmt
-c’ will catch the error, so that it cannot cause cause problems at
runtime.
If the word order in the above German translation would be correct one
would have to write
"%2$d Zeichen lang ist die Zeichenkette `%1$s'"
The routines in `msgfmt’ know about this special notation.[/code]
Balanced against this, the current system does everything we need it to, what features are missing?
It's about future. Project become bigger and more complicated. It is possible that(i hope not) in the future will need add more flexible build system, but it is harder to do than it is now. So, if you need to add build system, i can do it. If you don't need than. It's good.
----
As i understand, i can make branch on github and my(Russian) translations will be accepted. That's good. Thank you.